GNU bug report logs - #10495
24.0.92; pp-eval-last-sexp doesn't work on a `symbol' in quotes

Previous Next

Package: emacs;

Reported by: michael_heerdegen <at> web.de

Date: Fri, 13 Jan 2012 18:51:01 UTC

Severity: minor

Tags: confirmed

Found in version 24.0.92

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: 10495 <at> debbugs.gnu.org
Subject: bug#10495: 24.0.92; pp-eval-last-sexp doesn't work on a `symbol' in quotes
Date: Wed, 20 Jan 2021 18:47:07 +0100
Michael Heerdegen <michael_heerdegen <at> web.de> writes:

> the command `eval-last-sexp' has a very useful feature: Having point at
> a symbol (or a sexp) that is enclosed in `...'  (think of the manual or
> docstrings), the sorrounded quotes are ignored so that evaluation of it
> works.
>
> OTOH, `pp-eval-last-sexp' doesn't have this feature.  I think it really
> really should, I can't see any disadvantage.

Makes sense to me -- you don't happen to have a patch for this?  :-)

> Besides: IMHO it's a pity that pp.el is not described in any manual (or
> is it? - didn't find something).
>
> At least, the header of pp.el should describe how to use it.  E.g. just
> tell the user to do
>
>      (global-set-key [?\C-x ?\C-e] 'pp-eval-last-sexp)
>      (global-set-key [?\M-:] 'pp-eval-expression)
>
> or something like that.

Are there any cases where using the pp version of eval-last-sexp (etc)
would be awkward?  If not, adding a comment like that (and mentioning
the pp commands in the manual) sounds like a good idea.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 1 year and 156 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.