GNU bug report logs -
#15233
pp-eval-expression: Signature parity with `eval-expression'
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15233 in the body.
You can then email your comments to 15233 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#15233
; Package
emacs
.
(Sun, 01 Sep 2013 12:06:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jambunathan K <kjambunathan <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 01 Sep 2013 12:06:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
eval-expression takes INSERT-VALUE. But `pp-eval-expression' doesn't.
But it should.
,----[ C-h f eval-expression RET ]
| eval-expression is an interactive compiled Lisp function in
| `simple.el'.
|
| It is bound to M-ESC :.
|
| (eval-expression EXP &optional INSERT-VALUE)
`----
,----[ C-h f pp-eval-expression RET ]
| pp-eval-expression is an interactive autoloaded compiled Lisp function
| in `pp.el'.
|
| It is bound to M-:.
|
| (pp-eval-expression EXPRESSION)
|
| Evaluate EXPRESSION and pretty-print its value.
| Also add the value to the front of the list in the variable `values'.
|
`----
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#15233
; Package
emacs
.
(Sun, 01 Sep 2013 15:24:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 15233 <at> debbugs.gnu.org (full text, mbox):
> eval-expression takes INSERT-VALUE. But `pp-eval-expression' doesn't.
> But it should.
FWIW -
Done 5 years ago in pp+.el (and probably suggested to Emacs Dev as well).
http://www.emacswiki.org/emacs-en/download/pp%2b.el
Other pp+.el enhancements to `pp-eval-expression', which Emacs could
consider or integrate:
* Does not use 'emacs-lisp-mode-hook'.
* Fontifies the result buffer, `*Pp Eval Output*'.
* Makes several EmacsLisp keybindings available while reading the
expression - uses a new keymap, 'pp-read-expression-map'.
You can use:
'C-M-q' to indent a sexp
'C-M-x' to eval a sexp
'TAB' to Lisp-indent
'M-TAB' to complete a Lisp symbol
* (With a prefix arg, inserts the pretty-printed result in the
current buffer.) With a negative prefix arg and a string result,
inserts it without enclosing double-quotes (`"').
* Respects new options 'pp-eval-expression-print-length' and
'pp-eval-expression-print-level', which control the print length
and print level. Respects 'eval-expression-debug-on-error'.
[FWIW2, I use (substitute-key-definition 'eval-expression
'pp-eval-expression
global-map).]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#15233
; Package
emacs
.
(Sun, 01 Sep 2013 16:06:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 15233 <at> debbugs.gnu.org (full text, mbox):
Drew Adams <drew.adams <at> oracle.com> writes:
>> eval-expression takes INSERT-VALUE. But `pp-eval-expression' doesn't.
>> But it should.
>
> FWIW -
>
> Done 5 years ago in pp+.el (and probably suggested to Emacs Dev as well).
> http://www.emacswiki.org/emacs-en/download/pp%2b.el
I haven't used pp+.el before. So consider two independent
upvotes... for this request.
To add to your list:
1. Undo in pp eval outputs. (There is a separate bug for that)
2. Linkify circular references. So that when I click on a circular
"reference" it takes me to the "site of definition".
----------------------------------------------------------------
The above two requests are not hypothetical requests.
The new `org-element.el' library lispifies an Org buffer and it uses
`:parent' pointers to boot. So, for complex outlines and for operations
that non-trivially manipulate the lisp tree, examining, manipulating and
persisting a lisp tree is a REAL need.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#15233
; Package
emacs
.
(Sun, 01 Sep 2013 16:07:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 15233 <at> debbugs.gnu.org (full text, mbox):
Drew Adams <drew.adams <at> oracle.com> writes:
> [FWIW2, I use (substitute-key-definition 'eval-expression
> 'pp-eval-expression
> global-map).]
Same here. I have this:
(global-set-key "\272" (quote pp-eval-expression)) ; M-:
which is but the same thing but expressed differently.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#15233
; Package
emacs
.
(Tue, 03 Sep 2013 01:45:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 15233 <at> debbugs.gnu.org (full text, mbox):
> (global-set-key "\272" (quote pp-eval-expression)) ; M-:
Please don't: "\272" is not M-: (except back in the world as it existed
20 years ago, maybe). Use [?\M-:] instead (M-: is not a plain
character, so it can't really be stored in a string).
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#15233
; Package
emacs
.
(Tue, 03 Sep 2013 02:19:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 15233 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>> (global-set-key "\272" (quote pp-eval-expression)) ; M-:
>
> Please don't:
Don't blame me, I didn't do it, Emacs did it.
I have a simple recipe for producing keybindings.
M-x global-set-key
M-x list-command-history
Copy and Paste
The above recipe works flawlessly. It is the most easiest way to
produce keybindings that I have known.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#15233
; Package
emacs
.
(Wed, 04 Sep 2013 15:49:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 15233 <at> debbugs.gnu.org (full text, mbox):
I prefer to use the `kbd' notation, e.g.
(global-set-key (kbd "M-:") 'pp-eval-expression)
because it's clear, regular, and doesn't require me to remember
that keys are internally represented as vectors, how to quote
modifiers, etc. If I'm not sure of the canonical representation of
something (e.g. "M-H-x or H-M-x?") I can easily check visually
with C-h c, or something like this to kill the correct form for me
(this quick version performs key translations, which isn't optimal):
(defun describe-key-name (key)
(interactive "kGenerate and kill `kbd' form for key: ")
(kill-new
(message "(kbd \"%s\")"
(help-key-description key nil))))
Josh
On Mon, Sep 2, 2013 at 7:20 PM, Jambunathan K <kjambunathan <at> gmail.com> wrote:
> Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>
>>> (global-set-key "\272" (quote pp-eval-expression)) ; M-:
>>
>> Please don't:
>
> Don't blame me, I didn't do it, Emacs did it.
>
> I have a simple recipe for producing keybindings.
>
> M-x global-set-key
> M-x list-command-history
> Copy and Paste
>
> The above recipe works flawlessly. It is the most easiest way to
> produce keybindings that I have known.
>
>
>
Reply sent
to
Jambunathan K <kjambunathan <at> gmail.com>
:
You have taken responsibility.
(Fri, 15 Nov 2013 04:19:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Jambunathan K <kjambunathan <at> gmail.com>
:
bug acknowledged by developer.
(Fri, 15 Nov 2013 04:19:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 15233-done <at> debbugs.gnu.org (full text, mbox):
OP here. Closing it.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 13 Dec 2013 12:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 247 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.