unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Vladimir Alexiev" <vladimir@sirma.bg>
To: "'Chong Yidong'" <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org
Subject: RE: [PATCH] woman.el (woman-file-name): custom option `woman-use-file-directly'
Date: Mon, 10 Jan 2011 10:24:39 +0200	[thread overview]
Message-ID: <000f01cbb09f$d39c36f0$7ad4a4d0$@bg> (raw)
In-Reply-To: <87fwt1eome.fsf@stupidchicken.com>

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




  parent reply	other threads:[~2011-01-10  8:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-25  9:46 [PATCH] woman.el (woman-file-name): custom option `woman-use-file-directly' Vladimir Alexiev
2011-01-09 21:47 ` Chong Yidong
2011-01-10  2:12   ` Stefan Monnier
2011-01-10  8:24   ` Vladimir Alexiev [this message]
2011-02-15  8:27     ` [PATCH] woman.el (woman-file-name): custom option `woman-file-name-option' Vladimir Alexiev

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='000f01cbb09f$d39c36f0$7ad4a4d0$@bg' \
    --to=vladimir@sirma.bg \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    /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).