unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Robert J. Chassell" <bob@rattlesnake.com>
To: emacs-devel@gnu.org
Subject: Re: You can set this variable in your initialization file.
Date: Mon, 31 Mar 2008 01:23:58 +0000 (UTC)	[thread overview]
Message-ID: <m1Jg8kg-002K4NC@rattlesnake.com> (raw)
In-Reply-To: <f7ccd24b0803301217q32135bb8g707f71dca6543f75@mail.gmail.com> (lekktu@gmail.com)

    >    Many variables cannot usefully be set in the .emacs file and yet C-h v
    >    keeps telling me "You can set this variable in your initialization
    >    file".
    >
    >  I don't know of any.

For example, in my .emacs file I can set `noninteractive'

    noninteractive is a variable defined in `C source code'.
    Its value is t

although I set it back since I am running in an interactive terminal.

I can also set `minibuffer-completion-predicate'

    minibuffer-completion-predicate is a variable defined in `C source code'.
    Its value is t

(Setting seems crazy to me -- but I can set.  Perhaps `usefully'
is the appropriate word.  What other variables should not be
customized, although they can be?)

    Maybe we should put these links only on variables
    where the first character of the documentation string
    is `*'?

I don't know; I think not:  the documentation says the `*' may
disappear and I don't know how often it is still used.  Indeed,
(info "(emacs)Examining")     calls `*' an "obsolete indicator".

    Also I expected that at least part of this text
    (e.g. "set this variable") would lead to visiting
    the initialization file using `(find-file user-init-file)'.

Most often an init file is your .emacs file, so it seemed better to
direct novices to its documention, "The Init File, `~/.emacs'" in
(info "(emacs)Init File")

However, you are right to see the advantage of
    (when user-init-file (find-file user-init-file))
for `set' in the phrase `You can set this variable in your
initialization file.'  (That way, we still direct novices to
documention by focusing them on `initialization file'.)  I would find
the file when there is a user-init-file but display a plain `set' when
there is not one.  How would you do that with minimal change to
lisp/help-fns.el?

--
    Robert J. Chassell                          GnuPG Key ID: 004B4AC8
    bob@rattlesnake.com                         bob@gnu.org
    http://www.rattlesnake.com                  http://www.teak.cc





  reply	other threads:[~2008-03-31  1:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-30  5:06 You can set this variable in your initialization file Stefan Monnier
2008-03-30 12:03 ` Robert J. Chassell
2008-03-30 19:17   ` Juanma Barranquero
2008-03-31  1:23     ` Robert J. Chassell [this message]
2008-03-31  2:06       ` Stefan Monnier
2008-03-31  8:15       ` Juanma Barranquero
2008-03-30 22:27   ` Stefan Monnier
2008-03-30 22:48   ` Juri Linkov
2008-03-30 23:30     ` Juanma Barranquero
2008-03-30 23:59       ` Juri Linkov
2008-03-31  0:17         ` Juanma Barranquero
2008-03-31 19:50 ` Glenn Morris
2008-04-02 15:17 ` Chong Yidong

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=m1Jg8kg-002K4NC@rattlesnake.com \
    --to=bob@rattlesnake.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).