|
From: | Kevin Rodgers |
Subject: | Re: Keep losing work in non-file-visiting buffers |
Date: | Fri, 05 Dec 2003 11:26:46 -0700 |
User-agent: | Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
sebyte wrote:
once again i've spoken too soon. things are much better but still not perfect. there are buffers in use that don't appear in *Buffer List* such as *temp* which i have to kill each time I use 'C-x d' to view a directory. also Python mode uses temporary buffers which I now have to 'confirm kill'.
The buffers that are omitted from *Buffer List* have names that begin with a space (C-h k C-x C-b): (add-hook 'kill-buffer-query-functions ; for kill-buffer (lambda () (or buffer-file-name (not (buffer-modified-p)) (equal (string-to-char (buffer-name)) ? ) ; or *? (yes-or-no-p (format "Buffer %s modified; kill anyway? " (buffer-name)))))) -- Kevin Rodgers
[Prev in Thread] | Current Thread | [Next in Thread] |