From: Katsumi Yamaoka <yamaoka@jpl.org>
To: emacs-devel@gnu.org
Subject: insert-file-contents disables undo
Date: Thu, 24 Jul 2008 18:52:55 +0900 [thread overview]
Message-ID: <b4mhcafboco.fsf@jpl.org> (raw)
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.
next reply other threads:[~2008-07-24 9:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-24 9:52 Katsumi Yamaoka [this message]
2008-07-24 10:25 ` insert-file-contents disables undo 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
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b4mhcafboco.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=emacs-devel@gnu.org \
/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 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).