From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Vladimir Alexiev" Newsgroups: gmane.emacs.devel Subject: RE: [PATCH] woman.el (woman-file-name): custom option `woman-use-file-directly' Date: Mon, 10 Jan 2011 10:24:39 +0200 Organization: Sirma Group Corp Message-ID: <000f01cbb09f$d39c36f0$7ad4a4d0$@bg> References: <001d01cba418$9b8fbd10$d2af3730$@bg> <87fwt1eome.fsf@stupidchicken.com> Reply-To: vladimir@sirma.bg NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1294658959 18030 80.91.229.12 (10 Jan 2011 11:29:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 10 Jan 2011 11:29:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Chong Yidong'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 10 12:29:15 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 1PcFw2-0003XZ-UQ for ged-emacs-devel@m.gmane.org; Mon, 10 Jan 2011 12:29:15 +0100 Original-Received: from localhost ([127.0.0.1]:38002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcFw2-0005II-43 for ged-emacs-devel@m.gmane.org; Mon, 10 Jan 2011 06:29:14 -0500 Original-Received: from [140.186.70.92] (port=53560 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcD1k-00020j-J0 for emacs-devel@gnu.org; Mon, 10 Jan 2011 03:22:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcD1j-0004du-8D for emacs-devel@gnu.org; Mon, 10 Jan 2011 03:22:56 -0500 Original-Received: from pmx.sirma.bg ([62.213.161.134]:5899) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcD1i-0004dD-LU for emacs-devel@gnu.org; Mon, 10 Jan 2011 03:22:55 -0500 Original-Received: from pmx.sirma.bg (localhost [127.0.0.1]) by pmx.sirma.bg (Sirma mail system) with ESMTP id C8F3424002; Mon, 10 Jan 2011 10:22:49 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sirma.bg; h= reply-to:from:to:cc:references:in-reply-to:subject:date: message-id:mime-version:content-type:content-transfer-encoding; q= dns/txt; s=s1024; bh=eMcFz5BPm0g8HDYoMRB1n6ODZa4=; b=bx3GGlHSoD1 +rkonJ1WyG1cZNIbVHvDwC6RZkFqkfx9pVLPQsh9eGLxRRwcIeMxGZbbMy3i/xK6 lJ/tX1G22Q3+UnlLtSdmGG3EU5AHmfBByeNrBSvLnaPcHKjdHBA+SCtJUdaA4i1n vh2E9T6M0RuPeyXfjKYvmYJ+OnFhep0Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=sirma.bg; q=dns; s=s1024; b=YaYXf J0sPF1wPzYUgt55+4yzDKeAr5bIlZCMOILqSHkTle0Q+6LQJF33JlAASDSluyqFm iBRbB7BvCkJubWGf/ZfGWQnuUxL4iFWKFv4bet02l0AkHAlfIKpdQPRuV4gL/xBD g8UrLpkGd9dcRsLrbO8AbpxE9U5+YOGUPHLl6o= Original-Received: from vlado (unknown [192.168.129.111]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by pmx.sirma.bg (Sirma mail system) with ESMTP id C1A1B24001; Mon, 10 Jan 2011 10:22:49 +0200 (EET) In-Reply-To: <87fwt1eome.fsf@stupidchicken.com> X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcuwRs6Raajw/v7gRBKVjpZjWLAX7wAU2fqg Content-Language: en-us X-detected-operating-system: by eggs.gnu.org: Linux 2.6? (barebone, rare!) X-Mailman-Approved-At: Mon, 10 Jan 2011 06:29:06 -0500 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:134404 Archived-At: > 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. Oops, I didn't see this arg. I think it makes sense to integrate my option with the RE-CACHE arg, = since if you want to re-cache you'll likely want to select explicitly. Renaming to woman-file-name-option: (defcustom woman-file-name-option nil "Whether to use the cached list of topics, and whether to select = automatically if multiple files match a requested topic. The values are such that they can be entered as interactive prefix = argument to the (woman) command." :type '(choice (const :tag "Use first file, cached (default)" nil) ; = TODO: changes the current default, is this ok? (const :tag "Use first file, cached (M-1)" 1) (const :tag "Use last file, cached (M-0)" 0) (const :tag "Select file using completion, cached (C-u)" '(4)) (const :tag "Re-cache, Use first file (M--1)" -1) (const :tag " Re-cache, Use last file, re-cache (M--)" '-) (const :tag " Re-cache, Select file using completion (C-u C-u)" 16) :group 'woman-interface) (woman &optional TOPIC ARG) "Browse UN*X man page for TOPIC (Without using external Man program). The major browsing mode used is essentially the standard Man mode. Choose the filename for the man page, based on the topic selected from=20 the directories specified in `woman-manpath' and `woman-path'. The directory expansions and topics are cached for speed. The prefix argument ARG determines whether to use the cached list of = topics,=20 and whether to select automatically if multiple files match a requested = topic. It is interpreted as the choices for `woman-file-name-option': customize = it to see what they mean. No argument means use the current value of `woman-file-name-option'." ;; And similarly for (woman-file-name)