* lisp/man.el (Man-completion-table): Fix the lambda case.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 1 Dec 2011 19:38:24 +0000 (14:38 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 1 Dec 2011 19:38:24 +0000 (14:38 -0500)
Fixes: debbugs:10168

lisp/ChangeLog
lisp/man.el

index 9a03b9a..ded8cc0 100644 (file)
@@ -1,3 +1,7 @@
+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):
index 0d991a7..c9ba64b 100644 (file)
@@ -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))