unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kelly Dean <kelly@prtime.org>
To: emacs-devel@gnu.org
Subject: Rant - Elisp terminology is deceptive
Date: Fri, 23 Jan 2015 02:59:12 +0000	[thread overview]
Message-ID: <mXBXpxhjBIyRxvcxGKdPMcai5a0wKO8nECrXiI5XzSa@local> (raw)

I wasted an hour today re-discovering the fact that (eval (car (get 'foo 'standard-value))), not (default-value 'foo), returns the default value of 'foo. I learned this lesson before, but the word ‟default” is so suggestive of meaning «default» that I forgot that it doesn't actually mean «default» in Emacs. I even remembered setq-default, but cognitive dissonance from the absurdity of its name prevented me from remembering that default-value has the same problem.

For the value of a symbol in the global context, how about using the word ‟global”?

Ask any normal English-speaker for an antonym of ‟local”. He won't say ‟default”. He'll say ‟remote” or ‟global” or some such.

Ask him for an antonym of ‟default”. He won't say ‟local”. He'll say ‟non-standard” or ‟customized” or some such.

Inflict Emacs upon him for a few months, then ask him what's the difference between a ‟standard value” and a ‟default value”. He won't know. Even after writing a thousand lines of Elisp.

Tell him that the default value of shift-select-mode is t. Then do (setq shift-select-mode nil), and ask him what the default value is. He'll say ‟t”, not ‟nil”. Ask him what changed, and he'll say shift-select-mode is no longer set to the default value. Then show him what (default-value shift-select-mode) returns, and he'll tell you it must be a bug.

Since ‟default” is already misused to mean «global», it can't be changed to mean «standard», since that would cause even more confusion. ‟Standard” can stay the way it is. ‟Buffer-local” can too. But please stop using the word ‟default” for «global»; use ‟global”. There's already precedence in Emacs: describe-variable calls it ‟global”.



             reply	other threads:[~2015-01-23  2:59 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-23  2:59 Kelly Dean [this message]
2015-01-23 20:15 ` Rant - Elisp terminology is deceptive Stefan Monnier
2015-01-24  0:41   ` Kelly Dean
2015-01-24  0:48     ` Óscar Fuentes
2015-01-24  3:28     ` Stephen J. Turnbull
2015-01-24  8:51       ` Eli Zaretskii
2015-01-24 10:32         ` Kelly Dean
2015-01-24 11:26           ` Eli Zaretskii
2015-01-24 10:30       ` Kelly Dean
2015-01-24 11:03         ` David Kastrup
2015-01-24 23:24           ` Kelly Dean
2015-01-25  9:16             ` David Kastrup
2015-01-26  3:52               ` Kelly Dean
2015-01-26  8:28                 ` Thien-Thi Nguyen
  -- strict thread matches above, loose matches on Subject: below --
2013-05-22  3:44 [PATCH] Desktop mode saves mark-ring too verbosely Kelly Dean
2013-11-23 13:40 ` Stefan Monnier
2015-01-21 12:11   ` Kelly Dean
2015-01-21 15:04     ` Stefan Monnier
2015-01-22  5:43       ` Kelly Dean
2015-01-22  8:20         ` Ivan Shmakov
2015-01-23 13:20           ` Kelly Dean
2015-01-23 14:09             ` Ivan Shmakov
2015-01-24  3:08             ` Stephen J. Turnbull
2015-01-24 23:30               ` Elisp terminology (was: Re: [PATCH] Desktop mode saves mark-ring too verbosely) Kelly Dean
2015-01-25  9:49                 ` Elisp terminology David Kastrup

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=mXBXpxhjBIyRxvcxGKdPMcai5a0wKO8nECrXiI5XzSa@local \
    --to=kelly@prtime.org \
    --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).