From: "Juanma Barranquero" <lekktu@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: defcustom and the stars.
Date: Thu, 4 Jan 2007 18:39:56 +0100 [thread overview]
Message-ID: <f7ccd24b0701040939sbe585efp80965b68eec64d0b@mail.gmail.com> (raw)
In-Reply-To: <EIENLHALHGIMHGDOLMIMMEAKCOAA.drew.adams@oracle.com>
On 1/4/07, Drew Adams <drew.adams@oracle.com> wrote:
> Sorry, I don't understand. The variable with that doc string (beginning "**") _is_ a user variable. It is intended to be a user variable.
Yes, I know.
> You raise, I imagine, a different issue: how to prevent a variable from becoming a user variable (changeable with `set-variable') if its doc string begins with `*', as in your defvar: "*Completions* window blah blah.".
No, I'm raising the fact that we have a convention that says: a
variable whose docstring starts with "*" is a user variable. So for
consistency, the docstring (without the asterisk) should *not* start
with an asterisk. Otherwise, you have:
(defvar my-var nil "**This* is a user variable.")
and some day you hurriedly modify it to:
(defvar my-var nil "*This* is not a user variable.")
and get an unwanted result. I'm not talking about programming now, but
about docstring conventions.
> then I think it is not worth pursuing
Not worth pursuing, how? As a convention, in elisp code, or how exactly?
> people can rephrase the text to avoid starting with `*' if they don't want `*' to indicate a user variable.
Yes, that's what I'm saying, only I'm adding that we should perhaps
explain in the docs: "Please take care the docstring *contents* does
not start with an asterisk."
> (In my case, I _do_ want it to indicate a user variable.)
I understood it the first time. In fact, I understood it on your
previous message. I usually have no trouble understanding your
messages. Pity the reverse is not true. Not your fault, of course.
/L/e/k/t/u
next prev parent reply other threads:[~2007-01-04 17:39 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-02 22:00 defcustom and the stars Michaël Cadilhac
2007-01-03 3:56 ` Stefan Monnier
2007-01-03 11:05 ` Michaël Cadilhac
2007-01-03 12:24 ` Juanma Barranquero
2007-01-03 12:49 ` Michaël Cadilhac
2007-01-03 13:08 ` Juanma Barranquero
2007-01-03 13:18 ` Michaël Cadilhac
2007-01-03 13:29 ` Juanma Barranquero
2007-01-03 13:43 ` Michaël Cadilhac
2007-01-03 13:57 ` Juanma Barranquero
2007-01-03 14:52 ` Michaël Cadilhac
2007-01-03 18:47 ` Juanma Barranquero
2007-01-03 20:57 ` Juanma Barranquero
2007-01-03 21:21 ` Michaël Cadilhac
2007-01-03 21:26 ` Juanma Barranquero
2007-01-04 2:31 ` Richard Stallman
2007-01-04 2:31 ` Richard Stallman
2007-01-04 7:34 ` Michaël Cadilhac
2007-01-04 17:08 ` Drew Adams
2007-01-04 19:28 ` Michaël Cadilhac
2007-01-04 22:13 ` Drew Adams
2007-01-04 22:50 ` Stuart D. Herring
2007-01-04 22:58 ` Drew Adams
2007-01-08 17:51 ` Stuart D. Herring
2007-01-08 18:09 ` Michaël Cadilhac
2007-01-08 18:32 ` Drew Adams
2007-01-08 18:46 ` Michaël Cadilhac
2007-01-08 20:50 ` Chris Moore
2007-01-09 4:21 ` Drew Adams
2007-01-09 18:32 ` Chris Moore
2007-01-09 22:56 ` Drew Adams
2007-01-10 15:15 ` Chris Moore
2007-01-10 16:19 ` Drew Adams
2007-01-10 18:44 ` Chris Moore
2007-01-10 18:47 ` Drew Adams
2007-01-08 18:26 ` Drew Adams
2007-01-05 6:36 ` Michaël Cadilhac
2007-01-05 15:15 ` Drew Adams
2007-01-04 22:33 ` Richard Stallman
2007-01-03 18:17 ` Eli Zaretskii
2007-01-03 18:34 ` Juanma Barranquero
2007-01-04 2:32 ` Richard Stallman
2007-01-04 16:57 ` Drew Adams
2007-01-04 17:10 ` Juanma Barranquero
2007-01-04 17:16 ` Drew Adams
2007-01-04 17:39 ` Juanma Barranquero [this message]
2007-01-04 18:22 ` Drew Adams
2007-01-04 19:30 ` Juanma Barranquero
2007-01-04 22:32 ` Drew Adams
2007-01-04 22:49 ` Drew Adams
2007-01-04 23:12 ` Juanma Barranquero
2007-01-05 1:01 ` Drew Adams
2007-01-05 1:09 ` Juanma Barranquero
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=f7ccd24b0701040939sbe585efp80965b68eec64d0b@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.