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
fc21ed03
Commit
fc21ed03
authored
Dec 05, 1996
by
Karl Heuer
Browse files
(PC-do-completion): Remove text properties from
completions; also use string-equal instead of equal.
parent
086eac13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
lisp/complete.el
lisp/complete.el
+5
-4
No files found.
lisp/complete.el
View file @
fc21ed03
...
...
@@ -409,7 +409,9 @@ of `minibuffer-completion-table' and the minibuffer contents.")
(
setq
p
compl
)
(
while
p
(
and
(
string-match
regex
(
car
p
))
(
setq
poss
(
cons
(
car
p
)
poss
)))
(
progn
(
set-text-properties
0
(
length
(
car
p
))
'
()
(
car
p
))
(
setq
poss
(
cons
(
car
p
)
poss
))))
(
setq
p
(
cdr
p
)))))
;; Now we have a list of possible completions
...
...
@@ -463,7 +465,7 @@ of `minibuffer-completion-table' and the minibuffer contents.")
;; Is the actual string one of the possible completions?
(
setq
p
(
and
(
not
(
eq
mode
'help
))
poss
))
(
while
(
and
p
(
not
(
equal
(
car
p
)
basestr
)))
(
not
(
string-
equal
(
car
p
)
basestr
)))
(
setq
p
(
cdr
p
)))
(
and
p
(
null
mode
)
(
PC-temp-minibuffer-message
" [Complete, but not unique]"
))
...
...
@@ -507,8 +509,7 @@ of `minibuffer-completion-table' and the minibuffer contents.")
(
delete-char
1
)
(
setq
end
(
1-
end
))))
(
setq
improved
t
))
;; Use format to discard text properties.
(
insert
(
format
"%s"
(
substring
prefix
i
(
1+
i
))))
(
insert
(
substring
prefix
i
(
1+
i
)))
(
setq
end
(
1+
end
)))
(
setq
i
(
1+
i
)))
(
or
pt
(
equal
(
point
)
beg
)
...
...
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