summaryrefslogtreecommitdiff
path: root/lisp/textmodes/reftex-index.el
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2022-11-18 15:48:22 +0100
committerStefan Kangas <stefankangas@gmail.com>2022-11-18 16:02:19 +0100
commitba485eb949ddec53b1d7b5d78f3fcfbe2be60d7d (patch)
treeaee24e35b156969e2450699b3d02621bcec3375e /lisp/textmodes/reftex-index.el
parentc116d9f74c8fc81a7e98b1519fa300998a8a15c3 (diff)
downloademacs-ba485eb949ddec53b1d7b5d78f3fcfbe2be60d7d.tar.gz
; Fix typos
Diffstat (limited to 'lisp/textmodes/reftex-index.el')
-rw-r--r--lisp/textmodes/reftex-index.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/textmodes/reftex-index.el b/lisp/textmodes/reftex-index.el
index 075ad666b3d..38d6ebe7e6f 100644
--- a/lisp/textmodes/reftex-index.el
+++ b/lisp/textmodes/reftex-index.el
@@ -1807,7 +1807,7 @@ With optional arg ALLOW-NEWLINE, allow single newline between words."
(defun reftex-index-phrases-find-dup-re (phrase &optional sub)
"Return a regexp which matches variations of PHRASE (with additional space).
When SUB ins non-nil, the regexp will also match when PHRASE is a subphrase
-of another phrase. The regexp works lonly in the phrase buffer."
+of another phrase. The regexp works only in the phrase buffer."
(concat (if sub "^\\S-?\t\\([^\t\n]*" "^\\S-?\t")
(mapconcat #'regexp-quote (split-string phrase) " +")
(if sub "[^\t\n]*\\)\\([\t\n]\\|$\\)" " *\\([\t\n]\\|$\\)")))