* bug#6439: `bkqt` <- eval-last-sexp return value => bkqt
@ 2010-06-16 17:59 MON KEY
2011-07-03 2:01 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: MON KEY @ 2010-06-16 17:59 UTC (permalink / raw
To: 6439
With point after the following:
`bkqt`
`eval-last-sexp' returns => bkqt
e.g.
(progn
(insert "`bkqt`")
(apply 'eval-last-sexp '(nil)))
Likewise, there is this weird behavior:
(progn
(insert
"\n\(progn\n"
" \(insert \"`bkqt`\"\)\n"
" \(apply 'eval-last-sexp '\(nil\)\)\)\n`\n")
(apply 'eval-last-sexp '(nil)))
Why does evaluating the grave char evaluate the sexp preceding it but also does
something like this:
(with-temp-buffer (insert "`````") (apply 'eval-last-sexp '(nil)))
Which signals an EOF?
Whereas this something like this doesn't:
(with-temp-buffer (insert "`,(quote nil)`````") (apply 'eval-last-sexp '(nil)))
--
/s_p\
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#6439: `bkqt` <- eval-last-sexp return value => bkqt
2010-06-16 17:59 bug#6439: `bkqt` <- eval-last-sexp return value => bkqt MON KEY
@ 2011-07-03 2:01 ` Lars Magne Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-07-03 2:01 UTC (permalink / raw
To: MON KEY; +Cc: 6439
MON KEY <monkey@sandpframing.com> writes:
> With point after the following:
>
> `bkqt`
>
> `eval-last-sexp' returns => bkqt
>
> e.g.
>
> (progn
> (insert "`bkqt`")
> (apply 'eval-last-sexp '(nil)))
I don't think recursive calls to `eval-last-sexp' are particularly
useful.
The command does some minor Do What I Mean to make it more useful, and
that means that you can make it return odd values if you're doing
something Nobody Could Possibly Mean.
So I don't think this is a bug.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-03 2:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-16 17:59 bug#6439: `bkqt` <- eval-last-sexp return value => bkqt MON KEY
2011-07-03 2:01 ` Lars Magne Ingebrigtsen
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.