[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Big desktop undo buffer crashes Emacs
From: |
Lars Hansen |
Subject: |
Re: Big desktop undo buffer crashes Emacs |
Date: |
Fri, 12 May 2006 09:01:07 +0200 |
User-agent: |
Debian Thunderbird 1.0.2 (X11/20060423) |
Luc Teirlinck wrote:
>Is there any reason to keep this buffer hanging around
>consuming some memory and being user visible?
>
>
I don't think there is. I suggest to use with-temp-buffer (and
buffer-disable-undo)
Patch attached.
*** desktop.el.~1.99.~ 2006-02-19 15:43:52.000000000 +0100
--- desktop.el 2006-05-12 08:47:57.615841646 +0200
***************
*** 763,772 ****
(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"
--- 763,771 ----
(setq locals (cdr locals)))
ll)))
(buffer-list)))
! (eager desktop-restore-eager))
! (with-temp-buffer
! (buffer-disable-undo)
(insert
";; -*- mode: emacs-lisp; coding: emacs-mule; -*-\n"
***************
*** 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))
;;
----------------------------------------------------------------------------
--- 800,806 ----
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))
;;
----------------------------------------------------------------------------
- Re: with-temp-buffer and undo [was: Big desktop undo buffer crashes Emacs], (continued)
- Re: with-temp-buffer and undo, Stefan Monnier, 2006/05/12
- Re: with-temp-buffer and undo, Lars Hansen, 2006/05/12
- Re: with-temp-buffer and undo, Lars Hansen, 2006/05/12
- Re: with-temp-buffer and undo, Bill Wohler, 2006/05/12
- Re: with-temp-buffer and undo, Bill Wohler, 2006/05/21
- Re: with-temp-buffer and undo, Richard Stallman, 2006/05/13
- Re: with-temp-buffer and undo [was: Big desktop undo buffer crashes Emacs], Richard Stallman, 2006/05/13
- Re: Big desktop undo buffer crashes Emacs,
Lars Hansen <=