From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.bugs Subject: bug#29763: New Feature: Remove unneeded eval-expression in minibuffer-history Date: Sun, 17 Dec 2017 23:13:17 -0500 Message-ID: Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="001a113e1ea8b7c02a05609593dd" X-Trace: blaine.gmane.org 1513570397 27075 195.159.176.226 (18 Dec 2017 04:13:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 18 Dec 2017 04:13:17 +0000 (UTC) To: 29763@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 18 05:13:13 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eQmng-0006k6-2m for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Dec 2017 05:13:12 +0100 Original-Received: from localhost ([::1]:56663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQmpe-0004HC-E2 for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Dec 2017 23:15:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQmpW-0004H5-GO for bug-gnu-emacs@gnu.org; Sun, 17 Dec 2017 23:15:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQmpS-0001an-Fs for bug-gnu-emacs@gnu.org; Sun, 17 Dec 2017 23:15:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59079) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eQmpS-0001ad-Al for bug-gnu-emacs@gnu.org; Sun, 17 Dec 2017 23:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eQmpS-0007el-2J for bug-gnu-emacs@gnu.org; Sun, 17 Dec 2017 23:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Weiner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Dec 2017 04:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29763 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151357044229329 (code B ref -1); Mon, 18 Dec 2017 04:15:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Dec 2017 04:14:02 +0000 Original-Received: from localhost ([127.0.0.1]:39527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eQmoU-0007cz-7v for submit@debbugs.gnu.org; Sun, 17 Dec 2017 23:14:02 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34175) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eQmoS-0007cP-R0 for submit@debbugs.gnu.org; Sun, 17 Dec 2017 23:14:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQmoM-0000zT-8o for submit@debbugs.gnu.org; Sun, 17 Dec 2017 23:13:55 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42983) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eQmoM-0000zE-3p for submit@debbugs.gnu.org; Sun, 17 Dec 2017 23:13:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQmoK-0003h2-Uj for bug-gnu-emacs@gnu.org; Sun, 17 Dec 2017 23:13:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQmoG-0000xJ-VP for bug-gnu-emacs@gnu.org; Sun, 17 Dec 2017 23:13:52 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQmoG-0000xA-R3 for bug-gnu-emacs@gnu.org; Sun, 17 Dec 2017 23:13:48 -0500 Original-Received: from mail-qt0-f175.google.com ([209.85.216.175]:42221) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1eQmoG-0008Md-Il for bug-gnu-emacs@gnu.org; Sun, 17 Dec 2017 23:13:48 -0500 Original-Received: by mail-qt0-f175.google.com with SMTP id g9so18565804qth.9 for ; Sun, 17 Dec 2017 20:13:48 -0800 (PST) X-Gm-Message-State: AKGB3mIRh+TlAHHd7YDlK6o8r1M3zsHTWcD9z0KqFOeu0FjHRtuTmjox RLSoaNTUPBI1Dg5lVPr7E/l1jNbOf3vRWDMJ92Y= X-Google-Smtp-Source: ACJfBotyws5sYAuxch1zlPACVVPHue1pXu2KyvgFyJA+k/6q/J9drWzcnWjp+MXID+kxqjRoyuwwf/fdUJ6AQHlphlg= X-Received: by 10.237.37.162 with SMTP id x31mr34967134qtc.58.1513570428232; Sun, 17 Dec 2017 20:13:48 -0800 (PST) Original-Received: by 10.200.55.124 with HTTP; Sun, 17 Dec 2017 20:13:17 -0800 (PST) X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:141213 Archived-At: --001a113e1ea8b7c02a05609593dd Content-Type: multipart/alternative; boundary="001a113e1ea8b7c02705609593db" --001a113e1ea8b7c02705609593db Content-Type: text/plain; charset="UTF-8" For as long as I can remember, I have wanted the minibuffer history to strip the eval-expression wrapper around expressions that I enter by invoking eval-expression with M-:. I want this because the wrapper adds a lot of visual noise when searching for a specific expression and makes it much harder to edit the expression and get trailing parentheses right. So if I enter: M-: (/ 1.0 9) RET then C-x ESC ESC shows me: (eval-expression (quote (/ 1.0 9)) nil nil 127) but I want to see just the expression that I want to reuse or edit: (/ 1.0 9) This small patch against Emacs 27.0.50 gives me that; it does the same removal for commands already in the history if you load the change in the middle of an Emacs session. Please consider adding it to Emacs; it is already improving my productivity. Bob --001a113e1ea8b7c02705609593db Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
= For as long as I can rememb= er, I have wanted the minibuffer history to
strip the eval-expression= wrapper around expressions that I enter by
invoking eval-expression with= M-:.=C2=A0 I want this because the wrapper
adds a lot of visual noise wh= en searching for a specific expression and
makes it much harder to edit t= he expression and get trailing parentheses right.

So if I enter:

=C2=A0 M-: (/ 1.0 9) RET
<= font face=3D"monospace, monospace">
then C-x ESC ESC shows me:=

=
=C2=A0 (eval-expression (quote (/ 1.0 9)) nil nil 127)

but I wa= nt to see just the expression that I want to reuse or edit:

=C2=A0= (/ 1.0 9)

This small patch against Emacs 27.0.50=C2=A0 gives me t= hat; it does the same
removal for commands already in the history if yo= u load the change in
the middle of an Emacs session.=C2=A0 Please conside= r adding it to Emacs; it is already improving my productivity.
=

Bob=
--001a113e1ea8b7c02705609593db-- --001a113e1ea8b7c02a05609593dd Content-Type: application/octet-stream; name="simple.el.patch" Content-Disposition: attachment; filename="simple.el.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_jbbop0hs0 KioqIHNpbXBsZS1vcmlnLmVsLmd6CTIwMTctMTItMTcgMjI6NTQ6NTAuMDAwMDAwMDAwIC0wNTAw Ci0tLSBzaW1wbGUuZWwuZ3oJMjAxNy0xMi0xNyAyMjo1NDo1MC4wMDAwMDAwMDAgLTA1MDAKKioq KioqKioqKioqKioqCioqKiAxNTYzLDE1NzIgKioqKgotLS0gMTU2MywxNTgwIC0tLS0KICAgICAg ICAgICAgICAgICAgICAgICAgICAoZXZhbC1leHByZXNzaW9uLXByaW50LWZvcm1hdCAoY2FyIHZh bHVlcykpKSkpCiAgICAgICAgICAgICh3aGVuIHN0ciAocHJpbmMgc3RyIG91dCkpKSkpKSkKICAK KyAoZGVmdW4gbWluaWJ1ZmZlci1oaXN0b3J5LWVkaXQtZWxlbWVudCAoZWx0KQorICAgIkF1dG9t YXRpY2FsbHkgc2ltcGxpZnkgRUxUIGlmIHBvc3NpYmxlLCBlLmcuIHJlbW92aW5nIGV2YWwtZXhw cmVzc2lvbi4iCisgICAob3IgKGFuZCAoY29uc3AgZWx0KSAoZXEgKGNhciBlbHQpICdldmFsLWV4 cHJlc3Npb24pCisgCSAgIDs7IFJlbW92ZSBldmFsLWV4cHJlc3Npb24gd3JhcHBlciBhbmQgbGVh dmUganVzdCB0aGUgZXhwcmVzc2lvbi4KKyAJICAgKGNhZGFkciBlbHQpKQorICAgICAgIGVsdCkp CisgCiAgKGRlZnVuIGVkaXQtYW5kLWV2YWwtY29tbWFuZCAocHJvbXB0IGNvbW1hbmQpCiAgICAi UHJvbXB0aW5nIHdpdGggUFJPTVBULCBsZXQgdXNlciBlZGl0IENPTU1BTkQgYW5kIGV2YWwgcmVz dWx0LgogIENPTU1BTkQgaXMgYSBMaXNwIGV4cHJlc3Npb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4cC1mbGFnIChtaW5pYnVmZmVyLWRlcHRoKSkKICAJICAgICAgKG5vdCBtaW5pYnVmZmVyLXJl dHVybmVkLXRvLXByZXNlbnQpKQo= --001a113e1ea8b7c02a05609593dd--