unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* completion-auto-help
@ 2005-11-11  1:30 Drew Adams
  2005-11-11  4:55 ` completion-auto-help Stefan Monnier
  0 siblings, 1 reply; 16+ messages in thread
From: Drew Adams @ 2005-11-11  1:30 UTC (permalink / raw)


1. Question:

The doc string for `completion-auto-help' says this:

 Non-nil means automatically provide help for invalid completion input.

The Elisp manual says this about it:

 If this variable is non-`nil', the completion commands
 automatically display a list of possible completions whenever
 nothing can be completed because the next character is not
 uniquely determined.

In neither case are different non-nil values distinguished. So, I don't
understand this code in complete.el:

(if (or (eq completion-auto-help t)
        (and completion-auto-help
             (eq last-command this-command))
        (eq mode 'help))

The second arg to `or' can only be evaluated if `completion-auto-help' is
not `t', and that second arg tests whether it is non-nil.

Am I missing something - is there some special treatment somewhere for
non-nil, non-t value? (That's what the second arg seems to be doing.) I see
no other occurrences of `completion-auto-help' anywhere in the Lisp code
that distinguish different non-nil values.


2. New feature proposal - How about allowing for an
"always-display-*Completions*' behavior:

 - t means what it means now
 - nil means what it means now
 - other means this:

Display *Completions* right from the beginning (empty minibuffer input).
Display it as long as the minibuffer contents match more than one
completion.

IOW, with this value, the user would not need to hit `TAB' to display
*Completions*. (S)he would see the list of completions whenever there are
more than one. There is currently no way to make `completing-read',
`read-file-name' etc. display *Completions* from the outset.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2005-11-26 11:20 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-11  1:30 completion-auto-help Drew Adams
2005-11-11  4:55 ` completion-auto-help Stefan Monnier
2005-11-11 17:47   ` completion-auto-help Drew Adams
2005-11-11 18:39     ` completion-auto-help Drew Adams
2005-11-11 19:10     ` completion-auto-help Stefan Monnier
2005-11-11 19:32       ` completion-auto-help Drew Adams
2005-11-11 21:53         ` completion-auto-help Drew Adams
2005-11-11 22:43           ` completion-auto-help Drew Adams
2005-11-13 20:42             ` completion-auto-help Stefan Monnier
2005-11-13 21:06               ` completion-auto-help Drew Adams
2005-11-13 23:09                 ` completion-auto-help Stefan Monnier
2005-11-13 23:40                   ` completion-auto-help Drew Adams
2005-11-19 12:10       ` completion-auto-help Eli Zaretskii
2005-11-20 23:23         ` completion-auto-help Richard M. Stallman
2005-11-26 11:20           ` completion-auto-help Eli Zaretskii
2005-11-12  3:38   ` completion-auto-help Richard M. Stallman

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