[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15902: 24.3.50; ?Auto-save file not deleted when quitting Emacs (and
From: |
Alan Mackenzie |
Subject: |
bug#15902: 24.3.50; ?Auto-save file not deleted when quitting Emacs (and saying "don't?save") |
Date: |
Sun, 17 Nov 2013 15:17:00 +0000 (UTC) |
User-agent: |
tin/1.9.6-20101126 ("Burnside") (UNIX) (FreeBSD/8.4-RELEASE (amd64)) |
Hi, Nicolas.
Nicolas Richard <theonewiththeevillook@yahoo.fr> wrote:
> "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
> writes:
>> Modified buffers exist; exit anyway?
>>
>> I answer "yes".
> FWIW, I (almost) never answer yes in that situation, because I don't
> know which buffers are modified (or worse : I probably think I know, and
> I might be wrong). So I usually say "no", then navigate through each
> "unmodified" buffer (using an #emacs provided command, see below) and
> act there.
> Here's the mentionned defun :
> (defun select-next-modified-buffer ()
> "Select next modified (unsaved) buffer."
> ;; 2012-09-24 22:40 <jlf> (#emacs on freenode)
> (interactive)
> (let ((modified-buffers
> (remove-if-not (lambda (buf) (and
> (buffer-file-name buf)
> (buffer-modified-p buf)))
> (buffer-list))))
> (if modified-buffers
> (switch-to-buffer (first modified-buffers))
> (message "No modified file-visiting buffers!"))))
As a matter of interest, you might find the command `save-some-buffers' (C-x s)
useful here. It takes you on a tour of all unsaved buffers, prompting you
whether or not to save each one.
> Nico.
--
Alan Mackenzie (Nuremberg, Germany).
bug#15902: 24.3.50; Auto-save file not deleted when quitting Emacs (and saying "don't save"), Nicolas Richard, 2013/11/16
Message not available
- bug#15902: 24.3.50; ?Auto-save file not deleted when quitting Emacs (and saying "don't?save"),
Alan Mackenzie <=