all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Glenn Morris <rgm@gnu.org>
Cc: Eli Zaretskii <eliz@gnu.org>,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	emacs-devel@gnu.org
Subject: Re: Warnings about keymaps
Date: Sat, 19 Sep 2009 09:04:28 +0900	[thread overview]
Message-ID: <87tyyzzto3.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <ykzl8rgaaw.fsf@fencepost.gnu.org>

Glenn Morris writes:
 > Stefan Monnier wrote:

 > > That's unrelated: defconst only says that the variable's binding won't
 > > change, not that the object it is bound to is immutable.
 > 
 > I don't understand that distinction. I just read the doc of defconst:
 > 
 >     The intent is that neither programs nor users should ever change
 >     this value.

It's the same distinction as between "const *" and "* const" in C.
The value of the variable is a constant object, but that object may be
mutable if it is a container.  Under this definition, if you were
implementing Emacs Lisp in Emacs Lisp, it would make sense to
implement the obarray as a defconst.  (You probably already knew that,
but your question literally says "that distinction", not "why you make
that distinction".)

I would like to know "why?" though.  XEmacs's docstring says "The
intent is that programs do not change this value, but users may."  The
awkward expression of the Emacs docstring suggests that the XEmacs
version is indeed the original.  Can somebody explain why it was
changed?  Is Emacs moving toward true constants?  (Eg, in r/o memory?)





  reply	other threads:[~2009-09-19  0:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-11  9:04 Warnings about keymaps Eli Zaretskii
2009-09-11 17:34 ` Glenn Morris
2009-09-11 17:43 ` Stefan Monnier
2009-09-14 19:10   ` Glenn Morris
2009-09-14 21:46     ` Stefan Monnier
2009-09-15  2:45       ` Glenn Morris
2009-09-15 13:40         ` Stefan Monnier
2009-09-17  7:32           ` Glenn Morris
2009-09-17 14:02             ` Stefan Monnier
2009-09-18 22:25               ` Glenn Morris
2009-09-19  0:04                 ` Stephen J. Turnbull [this message]
2009-09-19  0:43                 ` Stefan Monnier
2009-09-15 15:13       ` Richard Stallman

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=87tyyzzto3.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rgm@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.