unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4118: 23.1; eval-last-sexp-print-value is inconvenient
@ 2009-08-11 10:55 Eli Barzilay
  2009-08-12 20:57 ` Juri Linkov
  2016-06-15  0:35 ` Noam Postavsky
  0 siblings, 2 replies; 12+ messages in thread
From: Eli Barzilay @ 2009-08-11 10:55 UTC (permalink / raw)
  To: bug-gnu-emacs

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:


  `eval-last-sexp' is often useful with a prefix argument inside a
  buffer for all kinds of programmatic uses (for example, make a
  keyboard macro that massages some text into an S-expression, then
  use it to plant the result in the buffer).  This uses
  `eval-last-sexp-print-value', which will "helpfully" insert other
  junk into the buffer (the hex and the octal representations of the
  number).  This is cute to have on the echo area, but annoying for
  such use in macros.  It would be better to disable this extra output
  in the case of non-echo-area output.

  I have a rather simple solution -- redefine the
  `eval-last-sexp-print-value' function with an extra condition

      (let ((str (and (eq standard-output t) ; <--- HERE
                      (eval-expression-print-format value))))
	(if str (princ str)))

  which works reasonably well.



In GNU Emacs 23.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.14)
 of 2009-08-01 on winooski.ccs.neu.edu
Windowing system distributor `The X.Org Foundation', version 11.0.10300000
configured using `configure  '--prefix=/home/eli/bin/local/emacs-dir''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: POSIX
  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: en_US
  value of $XMODIFIERS: nil
  locale-coding-system: iso-latin-1-unix
  default-enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x r e p o <tab> r <tab> <return>

Recent messages:
Loading ~/MyEmacs/pre...done
Loading ~/EliEmacs/eliemacs...done
Loading ~/MyEmacs/post...done
Making completion list...






^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-06-15  0:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-11 10:55 bug#4118: 23.1; eval-last-sexp-print-value is inconvenient Eli Barzilay
2009-08-12 20:57 ` Juri Linkov
2009-08-13  1:18   ` Eli Barzilay
2009-08-13 23:33     ` Juri Linkov
2009-08-14  1:25       ` Eli Barzilay
2009-08-14 22:54         ` Juri Linkov
2009-08-15  1:38           ` Eli Barzilay
2009-08-15 23:16             ` Juri Linkov
2009-08-16  0:00               ` Eli Barzilay
2009-08-17  0:52                 ` Juri Linkov
2009-08-17  3:18                   ` Eli Barzilay
2016-06-15  0:35 ` Noam Postavsky

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).