From: Pascal Bourguignon <pjb@informatimago.com>
Subject: Re: What's wrong with value?
Date: 06 Feb 2003 21:44:38 +0100 [thread overview]
Message-ID: <87znp93zrd.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: mailman.1580.1044557265.21513.help-gnu-emacs@gnu.org
Greg Hill <ghill@synergymicro.com> writes:
> Pascal,
>
> For whatever it's worth...
>
> I just pasted the code from your email into the scratch buffer in both
> Emacs-20 and Emacs-21, executed the defun of show, then
>
> (setq value :toto)
> (show value)
>
> and got
>
> ==> :toto
If you used eval-region, ok, I too get :toto. But with C-x C-e
(ie. eval-last-sexp), it's the value in the let of eval-last-sexp-1
that gets setq'ed, and it's that same value in that let that is passed
to my show function.
Since eval-region is a built-in, it should not shade any lisp variable
I guess. Perhaps eval-last-sexp-1 should be implemented with
eval-region avoiding any variables.
--
__Pascal_Bourguignon__ http://www.informatimago.com/
----------------------------------------------------------------------
There is a fault in reality. Do not adjust your minds. -- Salman Rushdie
next prev parent reply other threads:[~2003-02-06 20:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-06 16:50 What's wrong with value? Pascal Bourguignon
2003-02-06 17:05 ` Barry Margolin
2003-02-06 17:44 ` Jesper Harder
2003-02-06 18:28 ` David Kastrup
2003-02-06 20:31 ` Pascal Bourguignon
2003-02-06 18:47 ` Greg Hill
[not found] ` <mailman.1580.1044557265.21513.help-gnu-emacs@gnu.org>
2003-02-06 20:44 ` Pascal Bourguignon [this message]
2003-02-07 0:07 ` Greg Hill
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=87znp93zrd.fsf@thalassa.informatimago.com \
--to=pjb@informatimago.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 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.