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
9505c3c7
Commit
9505c3c7
authored
Dec 01, 2011
by
Stefan Monnier
Browse files
* lisp/man.el (Man-completion-table): Fix the lambda case.
Fixes: debbugs:10168
parent
3360a3fc
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/man.el
lisp/man.el
+4
-2
No files found.
lisp/ChangeLog
View file @
9505c3c7
2011-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
* man.el (Man-completion-table): Fix the lambda case (bug#10168).
2011-12-01 Michael McNamara <mac@mail.brushroad.com>
* progmodes/verilog-mode.el (verilog-pretty-expr):
...
...
lisp/man.el
View file @
9505c3c7
...
...
@@ -754,8 +754,10 @@ POS defaults to `point'."
(
defun
Man-completion-table
(
string
pred
action
)
(
cond
((
eq
action
'lambda
)
(
not
(
string-match
"([^)]*\\'"
string
)))
;; This ends up returning t for pretty much any string, and hence leads to
;; spurious "complete but not unique" messages. And since `man' doesn't
;; require-match anyway, there's not point being clever.
;;((eq action 'lambda) (not (string-match "([^)]*\\'" string)))
((
equal
string
"-k"
)
;; Let SPC (minibuffer-complete-word) insert the space.
(
complete-with-action
action
'
(
"-k "
)
string
pred
))
...
...
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