From: "Drew Adams" <drew.adams@oracle.com>
To: "'Paul R'" <paul.r.ml@gmail.com>, "'emacs- devel'" <emacs-devel@gnu.org>
Subject: RE: Usability suggestion : completion for M-:
Date: Wed, 9 Apr 2008 14:20:39 -0700 [thread overview]
Message-ID: <003901c89a87$8f7cea90$c2b22382@us.oracle.com> (raw)
In-Reply-To: <87d4oy7oar.fsf@gmail.com>
> * Drew believe that the whole M-: should evolve to something more
> like a interactive scratch in the context of current buffer, and
> that if TAB does not complete in scratch, it should not complete in
> M-:
To be specific, I said this:
> I would prefer to see M-: take on more of the
> character of a pop-up emacs-lisp-mode buffer:
> TAB, C-M-q, C-j,..., but with RET still causing
> eval... And I'd like to see M-: pretty-print the
> result (as in pp-eval-expression)
No need to "evolve to something more like" - it's easy enough to do. This is the
behavior in Icicles, for instance.
(defvar icicle-read-expression-map nil
"Icicle mode version of `read-expression-map'.
Several Emacs-Lisp mode key bindings are used.")
(unless icicle-read-expression-map
(let ((map (make-sparse-keymap)))
(define-key map "\M-\t" 'lisp-complete-symbol)
(define-key map "\t" 'lisp-indent-line)
(define-key map "\e\C-q" 'indent-sexp)
(define-key map "\e\t" 'lisp-complete-symbol)
(define-key map "\e\C-x" 'eval-defun)
(define-key map "\e\C-q" 'indent-pp-sexp)
;;(define-key map "\177" 'backward-delete-char-untabify)
(set-keymap-parent map minibuffer-local-map)
(setq icicle-read-expression-map map)))
(defun icicle-pp-eval-expression (expression) ; `M-:' in Icicle mode.
"Evaluate an Emacs-Lisp expression and pretty-print its value."
(interactive
(list (read-from-minibuffer "Eval: " nil
icicle-read-expression-map t 'read-expression-history)))
(pp-eval-expression expression))
next prev parent reply other threads:[~2008-04-09 21:20 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-13 17:30 Usability suggestion : completion for M-: paul r
2008-03-13 18:04 ` Lennart Borgman (gmail)
2008-03-13 21:16 ` Drew Adams
2008-03-13 21:32 ` paul r
2008-03-13 21:45 ` Lennart Borgman (gmail)
2008-03-13 23:32 ` Chong Yidong
2008-03-13 23:49 ` Drew Adams
2008-03-21 5:21 ` Drew Adams
2008-03-14 8:52 ` paul r
2008-03-15 21:36 ` Juri Linkov
2008-03-15 23:35 ` Drew Adams
2008-03-15 23:43 ` Lennart Borgman (gmail)
2008-03-16 8:12 ` Drew Adams
2008-03-16 11:00 ` paul r
2008-03-16 11:21 ` Ralf Angeli
2008-03-16 16:52 ` Drew Adams
2008-03-16 12:27 ` Lennart Borgman (gmail)
2008-03-16 16:50 ` Drew Adams
2008-03-16 0:17 ` Juri Linkov
2008-03-16 8:11 ` Drew Adams
2008-03-16 10:48 ` Andreas Schwab
2008-03-16 12:22 ` Lennart Borgman (gmail)
2008-03-16 13:36 ` Andreas Schwab
2008-03-16 10:56 ` paul r
2008-03-16 16:49 ` Drew Adams
2008-03-16 18:42 ` paul r
2008-03-16 19:56 ` Bastien
2008-03-16 20:22 ` David De La Harpe Golden
2008-03-17 2:52 ` Stefan Monnier
2008-03-17 4:07 ` Mike Mattie
2008-03-17 13:32 ` Stefan Monnier
2008-03-17 9:32 ` paul r
2008-03-17 19:16 ` Richard Stallman
2008-03-18 9:19 ` paul r
2008-03-19 2:53 ` Richard Stallman
2008-03-19 16:28 ` Stefan Monnier
2008-03-19 18:16 ` paul r
2008-03-19 19:25 ` Andreas Schwab
2008-03-16 18:49 ` paul r
2008-03-16 12:31 ` Lennart Borgman (gmail)
2008-03-16 16:50 ` Drew Adams
2008-03-16 20:06 ` Bastien Guerry
2008-03-22 21:14 ` Chong Yidong
2008-03-23 2:30 ` Juri Linkov
2008-03-23 5:54 ` Drew Adams
2008-04-09 20:42 ` Paul R
2008-04-09 21:20 ` Drew Adams [this message]
2008-04-10 23:12 ` Juri Linkov
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='003901c89a87$8f7cea90$c2b22382@us.oracle.com' \
--to=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=paul.r.ml@gmail.com \
/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.