From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29763: New Feature: Remove unneeded eval-expression in minibuffer-history Date: Mon, 18 Dec 2017 17:46:32 +0200 Message-ID: <83wp1kox7r.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1513611973 12617 195.159.176.226 (18 Dec 2017 15:46:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 18 Dec 2017 15:46:13 +0000 (UTC) Cc: 29763@debbugs.gnu.org To: rswgnu@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 18 16:46:09 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 1eQxcH-0002oZ-2t for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Dec 2017 16:46:09 +0100 Original-Received: from localhost ([::1]:49995 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQxeC-0005hb-B4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Dec 2017 10:48:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQxdD-00050T-5y for bug-gnu-emacs@gnu.org; Mon, 18 Dec 2017 10:47:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQxd9-0005qZ-1U for bug-gnu-emacs@gnu.org; Mon, 18 Dec 2017 10:47:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60287) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eQxd8-0005pr-F1 for bug-gnu-emacs@gnu.org; Mon, 18 Dec 2017 10:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eQxd8-0002bW-5T for bug-gnu-emacs@gnu.org; Mon, 18 Dec 2017 10:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Dec 2017 15:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29763 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29763-submit@debbugs.gnu.org id=B29763.15136119999976 (code B ref 29763); Mon, 18 Dec 2017 15:47:02 +0000 Original-Received: (at 29763) by debbugs.gnu.org; 18 Dec 2017 15:46:39 +0000 Original-Received: from localhost ([127.0.0.1]:40735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eQxcl-0002aq-K9 for submit@debbugs.gnu.org; Mon, 18 Dec 2017 10:46:39 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eQxci-0002ab-Gd for 29763@debbugs.gnu.org; Mon, 18 Dec 2017 10:46:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQxcZ-0005H6-C2 for 29763@debbugs.gnu.org; Mon, 18 Dec 2017 10:46:31 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQxcZ-0005Fz-7Z; Mon, 18 Dec 2017 10:46:27 -0500 Original-Received: from [176.228.60.248] (port=1297 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eQxcX-00027j-KN; Mon, 18 Dec 2017 10:46:25 -0500 In-reply-to: (message from Robert Weiner on Sun, 17 Dec 2017 23:13:17 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:141217 Archived-At: > From: Robert Weiner > Date: Sun, 17 Dec 2017 23:13:17 -0500 > > 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) Hmm... why is this particular command (M-:) being singled out? We have a uniform behavior of "C-x ESC ESC" with all the commands: they are stored and displayed as the equivalent Lisp expressions. E.g.: C-x C-f ~/foo/bar RET C-x ESC ESC -| Redo: (find-file "~/foo/bar" t) or even M-x set-variable RET auto-hscroll-mode RER current-line RET Cx ESC ESC -| Redo: (set-variable (quote auto-hscroll-mode) (quote current-line) nil) Moreover, "M-x list-command-history" also shows the above expanded forms. One could argue whether showing Lisp instead of something similar to what the user actually typed is a good idea, whether it's educational or not, but this is very old and consistent behavior. If we are going to change that, I think the change should affect more than just M-:, and should probably be an optional feature.