]> git.eshelyaron.com Git - emacs.git/commitdiff
(Man-completion-table): Modify regexp to include section names
authorJuri Linkov <juri@jurta.org>
Wed, 25 Nov 2009 21:16:58 +0000 (21:16 +0000)
committerJuri Linkov <juri@jurta.org>
Wed, 25 Nov 2009 21:16:58 +0000 (21:16 +0000)
to completion strings.  (Bug#3717)

lisp/ChangeLog
lisp/man.el

index 4b3fb327208f4f941d1c9342e73e6f8a31b4ea38..fd586757b34863be871db0a52922b98f25662660 100644 (file)
@@ -1,3 +1,8 @@
+2009-11-25  Juri Linkov  <juri@jurta.org>
+
+       * man.el (Man-completion-table): Modify regexp to include
+       section names to completion strings.  (Bug#3717)
+
 2009-11-25  Juri Linkov  <juri@jurta.org>
 
        Search recursively in gzipped files.  (Bug#4982)
index 364a5d248fcccd887deddf43bf3e7c46e71daecc..25ba3eb0638c8606c14830616f2f0f3294fc0a90 100644 (file)
@@ -770,7 +770,7 @@ POS defaults to `point'."
           (call-process manual-program nil '(t nil) nil
                         "-k" (concat "^" string))
         (goto-char (point-min))
-        (while (re-search-forward "^[^ \t\n]+" nil t)
+        (while (re-search-forward "^[^ \t\n]+\\(?: (.+?)\\)?" nil t)
           (push (match-string 0) table)))
         ;; Cache the table for later reuse.
         (setq Man-completion-cache (cons string table)))