Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4b6f7dc9
Commit
4b6f7dc9
authored
Aug 21, 2008
by
Chong Yidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(completion--try-word-completion): Disable partial-completion when
considering the addition of a space or hyphen.
parent
d7fa495a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
lisp/minibuffer.el
lisp/minibuffer.el
+3
-8
No files found.
lisp/minibuffer.el
View file @
4b6f7dc9
...
...
@@ -615,14 +615,9 @@ input if confirmed."
(
let
((
exts
'
(
" "
"-"
))
(
before
(
substring
string
0
point
))
(
after
(
substring
string
point
))
;; If the user hasn't entered any text yet, then she
;; presumably hits SPC to see the *completions*, but
;; partial-completion will often find a " " or a "-" to match.
;; So disable partial-completion in that situation.
(
completion-styles
(
or
(
and
(
equal
string
""
)
(
remove
'partial-completion
completion-styles
))
completion-styles
))
;; Disable partial-completion for this.
(
completion-styles
(
remove
'partial-completion
completion-styles
))
tem
)
(
while
(
and
exts
(
not
(
consp
tem
)))
(
setq
tem
(
completion-try-completion
...
...
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