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

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

eval-last-sexp -> syntax error -> deletes rest of buffer!


From: David Reitter
Subject: eval-last-sexp -> syntax error -> deletes rest of buffer!
Date: Thu, 2 Jun 2005 00:33:51 +0100

Place the following in the middle of a buffer (with text following):

`[(,test ,)]

Set the point right after the (malformed) expression and hit C-x C-e.
You will find that an error is correctly reported (invalid-read- syntax ")"), but that the complete rest of the buffer (after the point) IS DELETED.

Annoyingly, undo doesn't bring it back, nor is the deleted part of the buffer properly killed and put into the killring.


This happens on today's CVS build. The bug has been around for a while.





In GNU Emacs 22.0.50.1 (powerpc-apple-darwin8.1.0)
of 2005-06-01 on madonna
Distributor `Apple Computers', version 10.4.1
configured using `configure '--without-x' '--prefix=/usr/local''

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: nil
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Major mode: Debugger

Minor modes in effect:
  encoded-kbd-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  tooltip-mode: t
  auto-compression-mode: t
  menu-bar-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  line-number-mode: t
  next-error-follow-minor-mode:  Fol

Recent input:
M-v <escape> x c l i p - <backspace> <tab> y <tab>
<return> <down-mouse-1> <mouse-1> <escape> x <up> <return>
<down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1> <left>
<right> C-x C-e <help-echo> <menu-bar> <help-menu>
<report-emacs-bug>

Recent messages:
Loading tool-bar...done
Loading image...done
For information about the GNU Project and its goals, type C-h C-p.
Loading encoded-kb...done
call-interactively: End of buffer
Mark set [2 times]
Loading debug...done
Entering debugger...
Loading help-mode...done
Loading emacsbug...done





reply via email to

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