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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: michael_heerdegen@HIDDEN; Keywords: confirmed; dated Fri, 13 Jan 2012 18:51:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) confirmed. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 10495 <at> debbugs.gnu.org:


Received: (at 10495) by debbugs.gnu.org; 20 Jan 2021 17:47:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 20 12:47:19 2021
Received: from localhost ([127.0.0.1]:56244 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1l2HZf-0000nS-4L
	for submit <at> debbugs.gnu.org; Wed, 20 Jan 2021 12:47:19 -0500
Received: from quimby.gnus.org ([95.216.78.240]:47566)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1l2HZd-0000iO-BE
 for 10495 <at> debbugs.gnu.org; Wed, 20 Jan 2021 12:47:17 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=nqCVu8n5nZRDn/3Bt3QmK1onmg/AFwsEMtmAJ/F3cBM=; b=oF3d5Vz71U4Tgdz0HxKPcEBrX+
 LiEgc4cR0z7pwQ0PEpElGOuHnMRbPq//qNJP41aAjG8S08ZlrJAQVYIm3g/hrwYVrhifeLG7dVdKF
 OCS5NkkeZsg3RrPbxbPCvJhNbAVHgO84lFIQPUC2nxtkFYa/yxT32Ri0wtShXM7HLHys=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1l2HZV-00024E-2A; Wed, 20 Jan 2021 18:47:11 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#10495: 24.0.92; pp-eval-last-sexp doesn't work on a
 `symbol' in quotes
References: <87k44v8mip.fsf@HIDDEN>
X-Now-Playing: Joe Jackson's _Live 1980-86 (2)_: "Memphis"
Date: Wed, 20 Jan 2021 18:47:07 +0100
In-Reply-To: <87k44v8mip.fsf@HIDDEN> (Michael Heerdegen's message of "Fri, 13
 Jan 2012 19:50:38 +0100")
Message-ID: <87im7rmrfo.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Michael Heerdegen <michael_heerdegen@HIDDEN> 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 t [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 10495
Cc: 10495 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Michael Heerdegen <michael_heerdegen@HIDDEN> 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10495; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Jan 2012 18:50:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 13 13:50:09 2012
Received: from localhost ([127.0.0.1]:56666 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RlmCW-0001kp-OC
	for submit <at> debbugs.gnu.org; Fri, 13 Jan 2012 13:50:09 -0500
Received: from eggs.gnu.org ([140.186.70.92]:43322)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <Michael_Heerdegen@HIDDEN>) id 1RlmCU-0001kj-Q3
	for submit <at> debbugs.gnu.org; Fri, 13 Jan 2012 13:50:07 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Michael_Heerdegen@HIDDEN>) id 1RlmBr-0003mD-3u
	for submit <at> debbugs.gnu.org; Fri, 13 Jan 2012 13:49:28 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_NONE, RCVD_IN_XBL,
	T_RP_MATCHES_RCVD autolearn=no version=3.3.2
Received: from lists.gnu.org ([140.186.70.17]:53027)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Michael_Heerdegen@HIDDEN>) id 1RlmBr-0003m8-2D
	for submit <at> debbugs.gnu.org; Fri, 13 Jan 2012 13:49:27 -0500
Received: from eggs.gnu.org ([140.186.70.92]:35431)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Michael_Heerdegen@HIDDEN>) id 1RlmBq-0004T6-1q
	for bug-gnu-emacs@HIDDEN; Fri, 13 Jan 2012 13:49:27 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Michael_Heerdegen@HIDDEN>) id 1RlmBk-0003l1-Ed
	for bug-gnu-emacs@HIDDEN; Fri, 13 Jan 2012 13:49:26 -0500
Received: from fmmailgate02.web.de ([217.72.192.227]:39835)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Michael_Heerdegen@HIDDEN>) id 1RlmBk-0003kn-84
	for bug-gnu-emacs@HIDDEN; Fri, 13 Jan 2012 13:49:20 -0500
Received: from moweb002.kundenserver.de (moweb002.kundenserver.de
	[172.19.20.108])
	by fmmailgate02.web.de (Postfix) with ESMTP id 2FA1B1BF93B39
	for <bug-gnu-emacs@HIDDEN>; Fri, 13 Jan 2012 19:49:19 +0100 (CET)
Received: from snow ([82.113.99.102]) by smtp.web.de (mrweb001) with ESMTPA
	(Nemesis) id 0Ldmkd-1SUhi92vid-00iqkF; Fri, 13 Jan 2012 19:49:18 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.0.92; pp-eval-last-sexp doesn't work on a `symbol' in quotes
Date: Fri, 13 Jan 2012 19:50:38 +0100
Message-ID: <87k44v8mip.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V02:K0:S/XB4lELJMJ+0KfoHHz07xPVCxp49x6dI9ENmPjUdCw
	UaJeh08Z8vtkcZnxm27hBLabfE8cWWRWcv/x2VpcmYF78Bn3HG
	uYeMis7LsB37ZAYfAweVbyVGjh713qmwmtYTov9JOghCNp4bn7
	+BnTQPCk2LZyMywIbkz5ToHpMwlsu07Zgvyw4U86JWX5tt5lTo
	I81SkTEwR6QltkUz5kr4Y668lMXn6oy0/Yu5zOrHio=
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: michael_heerdegen@HIDDEN
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

Hi,

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.  As a workaround, the
following works well for me:

  (fset #'pp-last-sexp (symbol-function 'preceding-sexp))


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.


Thanks,

Michael.


In GNU Emacs 24.0.92.1 (i486-pc-linux-gnu, GTK+ Version 3.2.3)
 of 2012-01-11 on zelenka, modified by Debian
 (emacs-snapshot package, version 1:20120111-1)
Windowing system distributor `The X.Org Foundation', version 11.0.11102902
configured using `configure  '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.0.92/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.0.92/site-lisp:/usr/share/emacs/site-lisp' '--without-compress-info' '--with-crt-dir=/usr/lib/i386-linux-gnu/' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-imagemagick=yes' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2''





Acknowledgement sent to michael_heerdegen@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#10495; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 20 Jan 2024 12:30:02 UTC

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