From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: defcustom and the stars.
Date: Thu, 4 Jan 2007 10:22:02 -0800 [thread overview]
Message-ID: <EIENLHALHGIMHGDOLMIMKEALCOAA.drew.adams@oracle.com> (raw)
In-Reply-To: <f7ccd24b0701040939sbe585efp80965b68eec64d0b@mail.gmail.com>
> 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.
OK, yes, that is something different from what I wrote about.
I don't see such carelessness as a problem that can or should be cured by
program or convention. If you are saying that anyone who starts a doc string
with two asterisks, and later wants to change the var to a non-user variable
by deleting the leading asterisk, risks forgetting to remove both leading
asterisks, then I would say that that is a problem we should not worry
about.
We should not worry about it because 1) it is unlikely to occur and 2) if it
occurs, the consequences are not great and the effect will be seen soon
enough.
> > 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."
I don't think that's necessary, and it could even introduce confusion.
Unless we're worrying about modifying doc strings by program, which you said
you're not talking about here, I don't think there is a problem with saying
only that any doc string that starts with an asterisk indicates a
`set-variable' target.
> > (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.
It could be my fault, or, rather, it is at least partly my responsibility.
When I was 13, my math teacher taught us not to accept anything on guzzle
(i.e. without understanding). What he meant was that if I can't get someone
to understand, then it is mainly my fault: the main burden of teaching is on
the teacher (or arguer, prover), who needs to find some way to get the point
across. His immediate point was about formal proof, but the lesson was a
wider one.
Language is a hard nut to crack, however. Students (like me, here) also need
to try to understand. The burden-of-proof-is-on-the-teacher argument is best
viewed at the level of ideas (logic, arguments), not just at the level of
language.
I.e., I need to try to understand what you are saying, and it is what you
mean that needs to be convincing to me, not just the words you use to convey
it. I will try better to get your meaning.
BTW, I learned from a Japanese user of one of my libraries that Lisp code
can be a good way to get around the English barrier sometimes. Quite a bit
can be communicated using just sexps with end-line comments that indicate
results:
(toto) ; => 43
(foo bar) ; => t (EXPECTED nil)
That's obvious, perhaps, but I never imagined that an entire conversation
could be conducted that way. Lisp cum lingua franca!
next prev parent reply other threads:[~2007-01-04 18:22 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
2007-01-04 18:22 ` Drew Adams [this message]
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
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=EIENLHALHGIMHGDOLMIMKEALCOAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
/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).