unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] rename woman-always-choose-first-hit to woman-auto-first-match, and make first line of docstring stand on its own.
@ 2009-03-10 18:28 Eric Hanchrow
  0 siblings, 0 replies; only message in thread
From: Eric Hanchrow @ 2009-03-10 18:28 UTC (permalink / raw)
  To: emacs-devel; +Cc: Eric Hanchrow

---
 lisp/woman.el |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/lisp/woman.el b/lisp/woman.el
index a459f7c..c0512cf 100644
--- a/lisp/woman.el
+++ b/lisp/woman.el
@@ -654,11 +654,10 @@ of `woman-expand-locale' on `woman-locale' added, where they exist."
         ;; Non-locale-specific has lowest precedence.
         (add-to-list 'lst elem)))))
 
-(defcustom woman-always-choose-first-hit nil
-  "If t, and we find more than one file for the given topic,
-  simply return the first topic, without prompting.  This is
-convenient if you have two sets of man pages for one program, and
-always want to look at just one of them."
+(defcustom woman-auto-first-match nil
+  "If t, always return first file found.
+This is convenient if you have two sets of man pages for one
+program, and always want to look at just one of them."
   :type 'boolean
   :version "23.1"                    ; added woman-manpath-add-locales
   :group 'woman-interface
@@ -1351,7 +1350,7 @@ cache to be re-read."
       (cond
        ((null files) nil)		; no file found for topic.
        ((null (cdr files)) (car (car files))) ; only 1 file for topic.
-       (woman-always-choose-first-hit (car (car files))) ; user asked to never be prompted
+       (woman-auto-first-match (car (car files))) ; user asked to never be prompted
        (t
 	;; Multiple files for topic, so must select 1.
 	;; Unread the command event (TAB = ?\t = 9) that runs the command
-- 
1.6.2.rc1.20.g8c5b





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-10 18:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-10 18:28 [PATCH] rename woman-always-choose-first-hit to woman-auto-first-match, and make first line of docstring stand on its own Eric Hanchrow

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).