emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pp-eval-expression should use read-expression-history


From: Drew Adams
Subject: pp-eval-expression should use read-expression-history
Date: Sat, 14 Oct 2006 08:55:41 -0700

emacs -Q

pp-eval-expression's interactive spec is this:
 (interactive "xPp-eval: ")

eval-expression's interactive spec is this:
  (interactive
   (list (read-from-minibuffer "Eval: "
                               nil read-expression-map t
                               'read-expression-history)
         current-prefix-arg))

pp-eval-expression should, like eval-expression, use
read-expression-history. Either it should use a similar interactive
spec, or, perhaps, the `x' flag should use the read-expression-history
generally.

I suspect that a common use case is to first use M-:, and then, if the
result is very long, to repeat the evaluation using
pp-eval-expression.  Users should be able to retrieve the previous
expression using M-p. (The *Messages* buffer truncates result values,
BTW, so users can't always retrieve it from there, and that is more
roundabout, anyway.)

I personally bind M-: to pp-eval-expression. I'm not sure why this
is not done by default, but there is probably some good reason.



In GNU Emacs 22.0.50.1 (i386-msvc-nt5.1.2600)
 of 2006-07-19 on BOS-CTHEWLAP2
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-msvc (12.00)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Dired by name

Minor modes in effect:
  encoded-kbd-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <menu-bar> <help-menu> <re
port-emacs-bug>

Recent messages:
(C:\Emacs-22-2006-07-19-Fran\bin\emacs.exe -q --no-site-file --debug-init
C:\drews-lisp-20)
Loading encoded-kb...done
For information about the GNU Project and its goals, type C-h C-p.
Loading dired...
Loading regexp-opt...done
Loading dired...done
Loading emacsbug...done





reply via email to

[Prev in Thread] Current Thread [Next in Thread]