mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-11 16:08:13 +00:00
(regexp-opt-group): Compute HALF2 properly.
This commit is contained in:
parent
34a463f1b1
commit
2afd5e90eb
@ -223,7 +223,10 @@ so we can use character sets rather than grouping parenthesis."
|
||||
;; particular letter and those that do not, and recurse on them.
|
||||
(let* ((char (char-to-string (string-to-char (car strings))))
|
||||
(half1 (all-completions char strings))
|
||||
(half2 (nthcdr (length half1) strings)))
|
||||
(half2 strings))
|
||||
;; Remove from HALF2 whatever is in HALF1.
|
||||
(dolist (elt half1)
|
||||
(setq half2 (delq elt half2)))
|
||||
(concat open-group
|
||||
(regexp-opt-group half1)
|
||||
"\\|" (regexp-opt-group half2)
|
||||
|
Loading…
Reference in New Issue
Block a user