unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* insert-file-contents disables undo
@ 2008-07-24  9:52 Katsumi Yamaoka
  2008-07-24 10:25 ` Miles Bader
  0 siblings, 1 reply; 7+ messages in thread
From: Katsumi Yamaoka @ 2008-07-24  9:52 UTC (permalink / raw)
  To: emacs-devel

Hi,

When performing `insert-file-contents' at the end of a buffer,
which is not empty, buffer's undo is disabled.  It happens only
with Emacs 23.

(with-temp-buffer
  (buffer-enable-undo)
  (insert "\n")
  (insert-file-contents "~/.emacs")
  buffer-undo-list)
 => t

I was troubled for months with this problem that sometimes
happened when writing a message draft, and I found the cause of
it today.  It happens when I perform `message-insert-signature'
which uses `insert-file-contents' to insert my ~/.signature file.
It is not only on me, is it?  Could someone repair it?

Thanks in advance.




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

end of thread, other threads:[~2008-07-24 22:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-24  9:52 insert-file-contents disables undo Katsumi Yamaoka
2008-07-24 10:25 ` Miles Bader
2008-07-24 13:02   ` Andreas Schwab
2008-07-24 22:10     ` Katsumi Yamaoka
2008-07-24 22:21       ` David Kastrup
2008-07-24 14:01   ` Stefan Monnier
2008-07-24 21:34     ` martin rudalics

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).