From: Lars Hansen <lists@soem.dk>
Cc: emacs-pretest-bug@gnu.org, wohler@newt.com,
Luc Teirlinck <teirllm@dms.auburn.edu>,
rms@gnu.org, emacs-devel@gnu.org
Subject: Re: with-temp-buffer and undo
Date: Fri, 12 May 2006 19:47:35 +0200 [thread overview]
Message-ID: <4464CA37.3020208@soem.dk> (raw)
In-Reply-To: <87fyjftkim.fsf-monnier+emacs@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 322 bytes --]
Stefan Monnier wrote:
>>! `(let ((,temp-buffer (generate-new-buffer " *temp*"))
>>! (buffer-undo-list t))
>>
>>
>
>Buffer whose name start with a space have their undo disabled by default.
>I.e. someone thought of that years ago already,
>
>
Then my previous patch can be simplified.
Any objections?
[-- Attachment #2: with-temp-file.diff --]
[-- Type: text/x-patch, Size: 1498 bytes --]
*** desktop.el.~1.99.~ 2006-02-19 15:43:52.000000000 +0100
--- desktop.el 2006-05-12 19:42:09.642918747 +0200
***************
*** 763,773 ****
(setq locals (cdr locals)))
ll)))
(buffer-list)))
! (eager desktop-restore-eager)
! (buf (get-buffer-create "*desktop*")))
! (set-buffer buf)
! (erase-buffer)
!
(insert
";; -*- mode: emacs-lisp; coding: emacs-mule; -*-\n"
desktop-header
--- 763,770 ----
(setq locals (cdr locals)))
ll)))
(buffer-list)))
! (eager desktop-restore-eager))
! (with-temp-buffer
(insert
";; -*- mode: emacs-lisp; coding: emacs-mule; -*-\n"
desktop-header
***************
*** 801,807 ****
info)
(setq default-directory dirname)
(let ((coding-system-for-write 'emacs-mule))
! (write-region (point-min) (point-max) filename nil 'nomessage))))
(setq desktop-dirname dirname))
;; ----------------------------------------------------------------------------
--- 798,804 ----
info)
(setq default-directory dirname)
(let ((coding-system-for-write 'emacs-mule))
! (write-region (point-min) (point-max) filename nil 'nomessage)))))
(setq desktop-dirname dirname))
;; ----------------------------------------------------------------------------
[-- Attachment #3: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2006-05-12 17:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <24090.1146238861@olgas.newt.com>
[not found] ` <E1FZupW-00010U-IX@fencepost.gnu.org>
[not found] ` <87slngh3wu.fsf@olgas.newt.com>
[not found] ` <E1FeP3s-0002OD-U0@fencepost.gnu.org>
[not found] ` <200605120450.k4C4ovkM019797@jane.dms.auburn.edu>
[not found] ` <44643259.3050302@soem.dk>
2006-05-12 10:50 ` with-temp-buffer and undo [was: Big desktop undo buffer crashes Emacs] Lars Hansen
2006-05-12 11:28 ` Eli Zaretskii
2006-05-12 11:41 ` Andreas Schwab
2006-05-12 12:03 ` Lars Hansen
2006-05-12 13:56 ` with-temp-buffer and undo Stefan Monnier
2006-05-12 17:30 ` Lars Hansen
2006-05-12 17:47 ` Lars Hansen [this message]
2006-05-12 17:50 ` Bill Wohler
2006-05-21 20:36 ` Bill Wohler
2006-05-13 4:53 ` Richard Stallman
2006-05-13 4:52 ` with-temp-buffer and undo [was: Big desktop undo buffer crashes Emacs] Richard Stallman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4464CA37.3020208@soem.dk \
--to=lists@soem.dk \
--cc=emacs-devel@gnu.org \
--cc=emacs-pretest-bug@gnu.org \
--cc=rms@gnu.org \
--cc=teirllm@dms.auburn.edu \
--cc=wohler@newt.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.