From: David Kastrup <dak@gnu.org>
Subject: Re: What's wrong with value?
Date: 06 Feb 2003 19:28:27 +0100 [thread overview]
Message-ID: <x5y94ttgac.fsf@lola.goethe.zz> (raw)
In-Reply-To: m3n0l95mof.fsf@defun.localdomain
Jesper Harder <harder@myrealbox.com> writes:
> Pascal Bourguignon <pjb@informatimago.com> writes:
>
> > What's happening with this symbol:
> >
> > (setq value :toto) ;; C-x C-e, :toto appears in Mini-buffer.
> > (show value) ;; But value has not been assigned!
> > ==> nil
> >
> > Note that while 'value is a method defined with eieio
>
> I don't think eieio is the culprit.
>
> Try it with a clean 'emacs -q --no-site-file' -- the same thing happens.
> Very mysterious!
(defun eval-last-sexp (eval-last-sexp-arg-internal)
"Evaluate sexp before point; print value in minibuffer.
Interactively, with prefix argument, print output into current buffer."
(interactive "P")
(if (null eval-expression-debug-on-error)
(eval-last-sexp-1 eval-last-sexp-arg-internal)
(let ((old-value (make-symbol "t")) new-value value)
(let ((debug-on-error old-value))
(setq value (eval-last-sexp-1 eval-last-sexp-arg-internal))
(setq new-value debug-on-error))
(unless (eq old-value new-value)
(setq debug-on-error new-value))
value)))
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2003-02-06 18:28 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 [this message]
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
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=x5y94ttgac.fsf@lola.goethe.zz \
--to=dak@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.