unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Cc: Alexander Klimov <alserkli@inbox.ru>, emacs-devel@gnu.org
Subject: Re: Emacs FAQ for Emacs 22.1
Date: Wed, 14 Dec 2005 14:00:32 +0100	[thread overview]
Message-ID: <85y82nkf4f.fsf@lola.goethe.zz> (raw)
In-Reply-To: <E1EmOvx-0006i1-6k@fencepost.gnu.org> (Richard M. Stallman's message of "Wed, 14 Dec 2005 00:12:09 -0500")

"Richard M. Stallman" <rms@gnu.org> writes:

>     If `M-x customize-variable' is the preferred method then probably we
>     should replace things like
>
>      Place the following Lisp form in your `.emacs' file:
>
> 	 (setq scroll-step 1)
>
>     with
>
>      Use M-x customize-variable to set scroll-step to 1
>
> I am not sure.  Perhaps either way is ok, or it may depend
> on the context.

While it depends in some manner on the context (the latter alternative
is certainly not helpful when talking about Lisp data structures and
programming practices), I think that with regard to .emacs forms, we
should generally prefer advertising Custom.  It saves us from dealing
with trouble from people who have in good faith used the wrong
set-form on some variable (when does one need to use setq-default?),
and who have, because of a lack of acquaintance with Lisp data
structures, used the wrong or illegal sexp on the right hand side of
stuff.

People who use setq should be comfortable with reading and
interpreting the documentation of variables.

So I think that in the Emacs manual, we should generally focus on
using customize.  There is nothing wrong with a chapter "how to
achieve things with Lisp in your .emacs by hand" or so (cars come with
service manuals, too), but for the general practice, I'd strongly
suggest we recommend using the knobs and dials provided for the user
where available instead of recommending fiddling with the engine
yourself.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

  parent reply	other threads:[~2005-12-14 13:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-13 15:10 Emacs FAQ for Emacs 22.1 Alexander Klimov
2005-12-13 17:39 ` Stefan Monnier
2005-12-13 20:49   ` Romain Francoise
2005-12-13 23:16 ` Luc Teirlinck
2005-12-13 23:37   ` David Kastrup
2005-12-13 23:47     ` Luc Teirlinck
2005-12-13 23:52       ` David Kastrup
2005-12-14 20:02       ` Richard M. Stallman
2005-12-14  5:12 ` Richard M. Stallman
2005-12-14  8:59   ` Romain Francoise
2005-12-14 19:21     ` Eli Zaretskii
2005-12-15  2:07     ` Richard M. Stallman
2005-12-14 13:00   ` David Kastrup [this message]
2005-12-14 18:31     ` Drew Adams
2005-12-14 13:05   ` David Kastrup
2005-12-15  2:08     ` Richard M. Stallman
  -- strict thread matches above, loose matches on Subject: below --
2005-12-10 21:30 Romain Francoise

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=85y82nkf4f.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=alserkli@inbox.ru \
    --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).