Commit 1e2d9ba1 authored by Juri Linkov's avatar Juri Linkov
Browse files

(Man-completion-table): Modify regexp to include section names

to completion strings.  (Bug#3717)
parent a1fadc6f
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)
......
......@@ -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)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment