From: Drew Adams <drew.adams@oracle.com>
To: ndame <emacsuser@freemail.hu>, help-gnu-emacs@gnu.org
Subject: RE: Could eval-expression be in lisp mode?
Date: Fri, 6 Sep 2019 10:52:14 -0700 (PDT) [thread overview]
Message-ID: <86c4dcd4-f136-488d-8ae0-2c8322cbd9ac@default> (raw)
In-Reply-To: <Ax1qtA.Dno6h83aqjB.2sK2z06eZ4ROTwlTxstg@freemail.hu>
> I use eval-expression (M-:) a lot for quick scripts which work on a
> buffer and it's always annoying my usual elisp abbrevs, for example,
> are not available in the minibuffer when editing an expression.
>
> Which raises the question: why isn't the minibuffer in
> lisp-interaction-mode when using M-: ?
>
> Is there a drawback?
(FWIW, I never use `lisp-interaction-mode'. Even
for scratch buffers I use `emacs-lisp-mode'.)
Vanilla `M-:' does at least give you completion
with `TAB' and `M-TAB' (aka `ESC TAB').
I typically want the result in another buffer, in
`emacs-lisp-mode', but I also want to be able to
see it instead in a tooltip. And I want the command
to respect different print options (so I can have
different values from those for `eval-expression').
I bind `M-:' to `pp-eval-expression', from `pp+.el'.
(Actually, I use `icicle-pp-eval-expression.)
`pp-eval-expression' and other commands in `pp+.el'
read a Lisp expression using `pp-read-expression-map',
not `read-expression-map' (provides indentation and
defun-eval keys).
You can bind any keys you like (in either map),
to get whatever Lisp abbrev support you want.
https://www.emacswiki.org/emacs/PpPlus
prev parent reply other threads:[~2019-09-06 17:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-06 15:54 Could eval-expression be in lisp mode? ndame
2019-09-06 17:52 ` Drew Adams [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86c4dcd4-f136-488d-8ae0-2c8322cbd9ac@default \
--to=drew.adams@oracle.com \
--cc=emacsuser@freemail.hu \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.