mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
(regexp-opt-group): Compute HALF2 properly.
This commit is contained in:
parent
34a463f1b1
commit
2afd5e90eb
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue