all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Documentation not clear for the Lisp function set-variable
Date: Tue, 28 Jun 2005 10:32:43 +0200	[thread overview]
Message-ID: <f7ccd24b05062801325ccc8fd3@mail.gmail.com> (raw)
In-Reply-To: <87vf3ztg62.fsf@jurta.org>

On 6/28/05, Juri Linkov <juri@jurta.org> wrote:

> Maybe set-variable should first try to complete non-obsolete aliases,
> and filter out obsolete aliases (but still accept them).

Completing to all non-obsolete variables and/or aliases should be
easy, but... [see below]

> The distinction
> between obsolete variables and aliases is essential.  Users should not
> see obsolete variables by default, but should be able to use them

...I don't buy this argument. Users do not go randomly typing chars
into `set-variable' just to see what variables they can set (at least,
I don't think that's the most common use pattern). IMO, the user does
M-x set-variable because he already knows the variable he wants to set
(and it's even likely he read the doc and knows whether it is obsolete
or not, though I'm willing to accept there are users who simply set a
variable because they read about it in an old doc somewhere) and
completion is just a help to do less typing. So in my view,
`set-variable' should not filter out any user variable, whether it is
an obsolete variable or an obsolete alias. I certainly would be very
pissed if I wanted to set `messages-buffer-max-lines' and had to type
it fully because `set-variable' had decided that `message-log-max' was
the way to go.

> (with possible notification about their obsoleteness).

That's another matter entirely.  I think is a good idea to warn about
the variable being obsolete.  But with the current `completing-read'
mechanism, that can no be easily and elegantly done while the user is
selecting the variable, only afterwards (unless I'm missing
something).

> Also it makes sense to introduce a new property byte-obsolete-face
> to mark obsolete faces, so completion would work similarly for
> customize-face.

I support the idea about byte-obsolete-face, but not for face
completion's sake, but because perhaps the byte-compiler could be
coaxed into giving warnings about old faces' uses.

Anyway, I'm not planning to delve into face completion (or customize),
so that's a matter for whomever wants to implement it to ponder.

-- 
                    /L/e/k/t/u

  reply	other threads:[~2005-06-28  8:32 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-19 11:14 Documentation not clear for the Lisp function set-variable Yoni Rabkin
2005-06-20  3:50 ` Richard Stallman
2005-06-20  8:21   ` Yoni Rabkin
2005-06-20  9:07   ` Juanma Barranquero
2005-06-21  2:00     ` Richard Stallman
2005-06-26 23:23   ` Juri Linkov
2005-06-27 13:04     ` Juanma Barranquero
2005-06-27 15:44       ` Juanma Barranquero
2005-06-27 16:09         ` Luc Teirlinck
2005-06-27 18:17           ` Juanma Barranquero
2005-06-27 18:45             ` Luc Teirlinck
2005-06-27 19:30               ` Juanma Barranquero
2005-06-28 18:47               ` Richard M. Stallman
2005-07-04  1:18                 ` Luc Teirlinck
2005-07-04 16:48                   ` Richard M. Stallman
2005-07-04 17:02                     ` David Kastrup
2005-07-05  1:42                     ` Luc Teirlinck
2005-07-05 16:12                       ` Richard M. Stallman
2005-07-07  1:54                         ` Luc Teirlinck
2005-07-07 21:30                           ` Richard M. Stallman
2005-06-28  0:07             ` Juri Linkov
2005-06-28  8:32               ` Juanma Barranquero [this message]
2005-06-28 23:45                 ` Juri Linkov
2005-06-29  9:14                   ` Juanma Barranquero
2005-06-29 23:57                     ` Juri Linkov
2005-06-30  8:16                       ` Juanma Barranquero
2005-06-30 16:55                         ` Luc Teirlinck
2005-06-30 19:34                           ` Juanma Barranquero
2005-07-01 23:57                           ` Juri Linkov
2005-07-02  4:11                             ` Luc Teirlinck
2005-06-28 18:47               ` Richard M. Stallman
2005-06-29  2:32                 ` Juanma Barranquero
2005-06-29 20:42                   ` Richard M. Stallman
2005-06-27 18:39       ` Eli Zaretskii
2005-06-27 18:49         ` Luc Teirlinck
2005-06-27 21:38         ` Juanma Barranquero
2005-06-28  4:37           ` Eli Zaretskii
2005-06-28  8:33             ` Juanma Barranquero
2005-06-28  4:17       ` Richard M. Stallman
2005-06-28  9:17         ` Juanma Barranquero
2005-06-28  9:26           ` Juanma Barranquero
2005-06-28 16:09           ` Stefan Monnier
2005-06-28 16:19             ` Juanma Barranquero
2005-06-29  3:43               ` Stefan Monnier
2005-06-29  9:18                 ` Juanma Barranquero
2005-06-29  3:59           ` Richard M. Stallman
2005-06-27 16:46     ` Richard M. Stallman

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7ccd24b05062801325ccc8fd3@mail.gmail.com \
    --to=lekktu@gmail.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.