From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Hanchrow Newsgroups: gmane.emacs.devel Subject: [PATCH] rename woman-always-choose-first-hit to woman-auto-first-match, and make first line of docstring stand on its own. Date: Tue, 10 Mar 2009 11:28:55 -0700 Message-ID: <1236709735-21222-1-git-send-email-eric.hanchrow@gmail.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1236709768 27253 80.91.229.12 (10 Mar 2009 18:29:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Mar 2009 18:29:28 +0000 (UTC) Cc: Eric Hanchrow To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 10 19:30:42 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lh6ij-0001DO-34 for ged-emacs-devel@m.gmane.org; Tue, 10 Mar 2009 19:30:29 +0100 Original-Received: from localhost ([127.0.0.1]:32960 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lh6hN-0002GW-5K for ged-emacs-devel@m.gmane.org; Tue, 10 Mar 2009 14:29:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lh6hJ-0002GN-CN for emacs-devel@gnu.org; Tue, 10 Mar 2009 14:29:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lh6hG-0002G7-SX for emacs-devel@gnu.org; Tue, 10 Mar 2009 14:29:00 -0400 Original-Received: from [199.232.76.173] (port=41425 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lh6hG-0002G4-Pb for emacs-devel@gnu.org; Tue, 10 Mar 2009 14:28:58 -0400 Original-Received: from smtp61.avvanta.com ([206.124.128.61]:42525 helo=mail.avvanta.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lh6hG-0003Dt-Ec for emacs-devel@gnu.org; Tue, 10 Mar 2009 14:28:58 -0400 Original-Received: from mail.avvanta.com (localhost.pops.p.blarg.net [127.0.0.1]) by mail.avvanta.com (Postfix) with ESMTP id 4B030276CE4; Tue, 10 Mar 2009 11:28:56 -0700 (PDT) Original-Received: from localhost.localdomain (q-static-138-125.avvanta.com [206.124.138.125]) by mail.avvanta.com (Postfix) with ESMTP id 09289276D70; Tue, 10 Mar 2009 11:28:56 -0700 (PDT) X-Mailer: git-send-email 1.6.2.rc1.20.g8c5b X-BlargAV-Status: No viruses detected, BlargAV v1.1 on localhost.pops.p.blarg.net X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109545 Archived-At: --- 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