GNU logs - #10495, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#10495: 24.0.92; pp-eval-last-sexp doesn't work on a `symbol' in quotes
Resent-From: Michael Heerdegen <michael_heerdegen@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 13 Jan 2012 18:51:01 +0000
Resent-Message-ID: <handler.10495.B.13264806096751 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 10495
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 10495 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Reply-To: michael_heerdegen@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.13264806096751
          (code B ref -1); Fri, 13 Jan 2012 18:51:01 +0000
Received: (at submit) by debbugs.gnu.org; 13 Jan 2012 18:50:09 +0000
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>
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-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
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''





Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.428 (Entity 5.428)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: michael_heerdegen@HIDDEN
Subject: bug#10495: Acknowledgement (24.0.92; pp-eval-last-sexp doesn't
 work on a `symbol' in quotes)
Message-ID: <handler.10495.B.13264806096751.ack <at> debbugs.gnu.org>
References: <87k44v8mip.fsf@HIDDEN>
X-Gnu-PR-Message: ack 10495
X-Gnu-PR-Package: emacs
Reply-To: 10495 <at> debbugs.gnu.org
Date: Fri, 13 Jan 2012 18:51:01 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 10495 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
10495: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D10495
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#10495: 24.0.92; pp-eval-last-sexp doesn't work on a `symbol' in quotes
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 20 Jan 2021 17:48:01 +0000
Resent-Message-ID: <handler.10495.B10495.16111648393087 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 10495
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Cc: 10495 <at> debbugs.gnu.org
Received: via spool by 10495-submit <at> debbugs.gnu.org id=B10495.16111648393087
          (code B ref 10495); Wed, 20 Jan 2021 17:48:01 +0000
Received: (at 10495) by debbugs.gnu.org; 20 Jan 2021 17:47:19 +0000
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>
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-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





Last modified: Wed, 20 Jan 2021 18:00:02 UTC

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