Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
31d24a4b
Commit
31d24a4b
authored
Mar 26, 2008
by
Johan Bockgård
Browse files
(PC-do-completion): Use regexp-quote.
parent
920fb2b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/complete.el
lisp/complete.el
+4
-2
No files found.
lisp/ChangeLog
View file @
31d24a4b
2008-03-26 Johan Bockg$(Q)[(Brd <bojohan@gnu.org>
* complete.el (PC-do-completion): Use regexp-quote.
2008-03-26 Dan Nicolaescu <dann@ics.uci.edu>
* vc-cvs.el (vc-cvs-parse-status, vc-cvs-after-dir-status): Detect
...
...
lisp/complete.el
View file @
31d24a4b
...
...
@@ -621,8 +621,10 @@ GOTO-END is non-nil, however, it instead replaces up to END."
(
match-string
2
str
)
"[A-Za-z0-9]*[^A-Za-z0-9]"
))
p
(
1+
(
length
(
match-string
1
str
))))))
(
setq
regex
(
concat
"\\`"
(
mapconcat
#'
list
str
"[^-]*-"
))
p
1
))))
(
setq
regex
(
concat
"\\`"
(
mapconcat
(
lambda
(
c
)
(
regexp-quote
(
string
c
)))
str
"[^-]*-"
))
p
1
))))
(
when
p
;; Use all-completions to do an initial cull. This is a big win,
;; since all-completions is written in C!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment