changeset 108677:7a38217041bb

* lisp/man.el (Man-completion-table): Let the user type "-k ".
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 31 May 2010 12:16:02 -0400
parents 3a80fc3735bf
children 46728260f484
files lisp/ChangeLog lisp/man.el
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Mon May 31 17:24:46 2010 +0200
+++ b/lisp/ChangeLog	Mon May 31 12:16:02 2010 -0400
@@ -1,3 +1,7 @@
+2010-05-31  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* man.el (Man-completion-table): Let the user type "-k " (bug#6319).
+
 2010-05-31  Drew Adams  <drew.adams@oracle.com>
 
 	* files.el (directory-files-no-dot-files-regexp): Doc fix (bug#6298).
@@ -12,14 +16,13 @@
 	* ansi-color.el: Delete unused escape sequences (Bug#6085).
 	(ansi-color-drop-regexp): New constant.
 	(ansi-color-apply, ansi-color-filter-region)
-	(ansi-color-apply-on-region): Delete unrecognized control
-	sequences.
+	(ansi-color-apply-on-region): Delete unrecognized control sequences.
 	(ansi-color-apply): Build string list before calling concat.
 
 2010-05-27  Chong Yidong  <cyd@stupidchicken.com>
 
-	* progmodes/verilog-mode.el (verilog-type-font-keywords): Use
-	font-lock-constant-face, not obsolete font-lock-reference-face.
+	* progmodes/verilog-mode.el (verilog-type-font-keywords):
+	Use font-lock-constant-face, not obsolete font-lock-reference-face.
 
 2010-05-27  Masatake YAMATO  <yamato@redhat.com>
 
--- a/lisp/man.el	Mon May 31 17:24:46 2010 +0200
+++ b/lisp/man.el	Mon May 31 12:16:02 2010 -0400
@@ -754,6 +754,9 @@
   (cond
    ((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))
    (t
     (let ((table (cdr Man-completion-cache))
           (section nil)