From: Wolfgang Jenkner <wjenkner@inode.at>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: 13160@debbugs.gnu.org, Kevin Ryde <user42@zip.com.au>
Subject: bug#13160: 24.3.50; [PATCH] man page completion support beyond man-db
Date: Sun, 06 Jan 2013 20:27:56 +0100 [thread overview]
Message-ID: <85fw2em6n3.fsf@iznogoud.viz> (raw)
In-Reply-To: <856247krc6.fsf@iznogoud.viz>
On Mon, Dec 24 2012, Stefan Monnier wrote:
> The fact that the cache is preserved between runs of M-x man is
> probably more a misfeature, since it means that the cache is never
> refreshed (i.e. gets out of date after "aptitude upgrade").
Given that and the fact that indefinitely keeping around large lists
(like Man-completion-cache holding the completion of an empty prefix) is
bad, why not preventing this (the first hunk is the fix you proposed in
http://permalink.gmane.org/gmane.emacs.bugs/68945).
Wolfgang
-- >8 --
Subject: [PATCH] * lisp/man.el (Man-completion-table): Reset cache to nil.
(man): Bind Man-completion-cache to nil, thus clarifying that it is not meant
to be persistent. (Bug#13160)
---
lisp/man.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/man.el b/lisp/man.el
index 847917d8..8210d63 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -815,6 +815,7 @@ POS defaults to `point'."
(call-process manual-program nil '(t nil) nil
"-k" (concat "^" prefix))))
(goto-char (point-min))
+ (setq table nil)
(while (re-search-forward "^\\([^ \t\n]+\\)\\(?: ?\\((.+?)\\)\\(?:[ \t]+- \\(.*\\)\\)?\\)?" nil t)
(push (propertize (concat (match-string 1) (match-string 2))
'help-echo (match-string 3))
@@ -891,6 +892,7 @@ names or descriptions. The pattern argument is usually an
;; ("man -k" is case-insensitive similarly, so the
;; table has everything available to complete)
(completion-ignore-case t)
+ Man-completion-cache
(input (completing-read
(format "Manual entry%s"
(if (string= default-entry "")
--
1.8.0.2
next prev parent reply other threads:[~2013-01-06 19:27 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-12 19:16 bug#13160: 24.3.50; [PATCH] man page completion support beyond man-db Wolfgang Jenkner
2012-12-12 19:31 ` Glenn Morris
2012-12-12 20:30 ` Stefan Monnier
2012-12-14 21:19 ` Kevin Ryde
2012-12-14 21:35 ` Wolfgang Jenkner
2012-12-15 0:59 ` Kevin Ryde
2012-12-16 18:07 ` Wolfgang Jenkner
2012-12-22 15:27 ` Wolfgang Jenkner
2012-12-22 17:11 ` Stefan Monnier
2012-12-22 17:58 ` Wolfgang Jenkner
2012-12-23 13:46 ` Stefan Monnier
2012-12-23 19:49 ` Wolfgang Jenkner
2012-12-23 20:59 ` Wolfgang Jenkner
2012-12-24 0:00 ` Stefan Monnier
2013-01-06 19:27 ` Wolfgang Jenkner [this message]
2012-12-24 1:20 ` Stefan Monnier
2012-12-24 2:23 ` Wolfgang Jenkner
2012-12-24 4:34 ` Stefan Monnier
2013-01-06 19:48 ` Wolfgang Jenkner
2013-01-10 15:01 ` Stefan Monnier
2012-12-30 0:10 ` Kevin Ryde
2012-12-23 0:16 ` Kevin Ryde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85fw2em6n3.fsf@iznogoud.viz \
--to=wjenkner@inode.at \
--cc=13160@debbugs.gnu.org \
--cc=monnier@IRO.UMontreal.CA \
--cc=user42@zip.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).