emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [PATCH] woman.el (woman-file-name): custom option `woman-use-file-di


From: Vladimir Alexiev
Subject: RE: [PATCH] woman.el (woman-file-name): custom option `woman-use-file-directly'
Date: Mon, 10 Jan 2011 10:24:39 +0200

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]