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
f15ca944
Commit
f15ca944
authored
Jul 05, 2007
by
Stefan Monnier
Browse files
(PC-do-complete-and-exit): Add support for the new
`confirm-only' confirmation mode.
parent
9db1942d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/complete.el
lisp/complete.el
+13
-3
No files found.
lisp/ChangeLog
View file @
f15ca944
2007-07-05 Stefan Monnier <monnier@iro.umontreal.ca>
* complete.el (PC-do-complete-and-exit): Add support for the new
`confirm-only' confirmation mode.
2007-07-05 Chong Yidong <cyd@stupidchicken.com>
* cus-edit.el (custom-commands): New variable.
...
...
lisp/complete.el
View file @
f15ca944
...
...
@@ -328,14 +328,24 @@ See `PC-complete' for details."
(
PC-do-complete-and-exit
)))
(
defun
PC-do-complete-and-exit
()
(
if
(
=
(
point-max
)
(
minibuffer-prompt-end
))
; Duplicate the "bug" that Info-menu relies on...
(
exit-minibuffer
)
(
cond
((
=
(
point-max
)
(
minibuffer-prompt-end
))
;; Duplicate the "bug" that Info-menu relies on...
(
exit-minibuffer
))
((
eq
minibuffer-completion-confirm
'confirm-only
)
(
if
(
or
(
eq
last-command
this-command
)
(
test-completion
(
field-string
)
minibuffer-completion-table
minibuffer-completion-predicate
))
(
exit-minibuffer
)
(
PC-temp-minibuffer-message
" [Confirm]"
)))
(
t
(
let
((
flag
(
PC-do-completion
'exit
)))
(
and
flag
(
if
(
or
(
eq
flag
'complete
)
(
not
minibuffer-completion-confirm
))
(
exit-minibuffer
)
(
PC-temp-minibuffer-message
" [Confirm]"
))))))
(
PC-temp-minibuffer-message
" [Confirm]"
))))))
)
(
defun
PC-completion-help
()
...
...
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