45

bug#29763: New Feature: Remove unneeded eval-expression in minibuffer-hi

 6 years ago
source link: https://lists.gnu.org/archive/html/bug-gnu-emacs/2017-12/msg00645.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

bug#29763: New Feature: Remove unneeded eval-expression in minibuffer-hi


From: Robert Weiner
Subject: bug#29763: New Feature: Remove unneeded eval-expression in minibuffer-history
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)
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.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK