From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] woman.el (woman-file-name): custom option `woman-use-file-directly' Date: Sun, 09 Jan 2011 16:47:05 -0500 Message-ID: <87fwt1eome.fsf@stupidchicken.com> References: <001d01cba418$9b8fbd10$d2af3730$@bg> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1294609646 23065 80.91.229.12 (9 Jan 2011 21:47:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 9 Jan 2011 21:47:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: vladimir@sirma.bg Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 09 22:47:20 2011 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.69) (envelope-from ) id 1Pc36d-0006jt-Ep for ged-emacs-devel@m.gmane.org; Sun, 09 Jan 2011 22:47:19 +0100 Original-Received: from localhost ([127.0.0.1]:34076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pc36c-0002xm-QX for ged-emacs-devel@m.gmane.org; Sun, 09 Jan 2011 16:47:18 -0500 Original-Received: from [140.186.70.92] (port=60654 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pc36X-0002x6-Pp for emacs-devel@gnu.org; Sun, 09 Jan 2011 16:47:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pc36W-0005gE-JT for emacs-devel@gnu.org; Sun, 09 Jan 2011 16:47:13 -0500 Original-Received: from vm-emlprdomr-06.its.yale.edu ([130.132.50.147]:47948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pc36W-0005g3-Ha for emacs-devel@gnu.org; Sun, 09 Jan 2011 16:47:12 -0500 Original-Received: from furball (dhcp128036014040.central.yale.edu [128.36.14.40]) (authenticated bits=0) by vm-emlprdomr-06.its.yale.edu (8.14.4/8.14.4) with ESMTP id p09Ll4i4021045 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 9 Jan 2011 16:47:05 -0500 Original-Received: by furball (Postfix, from userid 1000) id 35B72162004; Sun, 9 Jan 2011 16:47:05 -0500 (EST) In-Reply-To: <001d01cba418$9b8fbd10$d2af3730$@bg> (Vladimir Alexiev's message of "Sat, 25 Dec 2010 11:46:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.147 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:134394 Archived-At: "Vladimir Alexiev" writes: > Sometimes a system may have several versions of man pages. E.g. my > cygwin installation has these for "ls": > - c:/cygwin/usr/man/man1/ls.1 -- ls (fileutils) 4.1 (April 2001) > - c:/cygwin/usr/share/man/man1/ls.1.gz -- GNU coreutils 8.5 (June 2010) > In this case woman.el asks you to select one. > This is distracting if you are in the middle of something and want to > quickly refer to man, and don't care about the particular version. > > I attach a small patch for woman.el that fixes this. > > It's less than 20 lines (I've signed a GPL waiver before, but that was > like 10 years ago). This is along the right lines, but there ought to be a way to interactively get woman to view the other versions. Unfortunately, the prefix arg for M-x woman is already used to toggle the RE-CACHE arg. Maybe a prefix arg should re-cache in addition to changing the `woman-use-file-directly' effect. I don't think the former functionality is commonly used, anyway.