From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: "Sebastien Vauban"
<public-sva-news-D0wtAvR13HarG/iDocfnWg@plane.gmane.org>
Cc: public-15902-ubl+/3LiMTaZdePnXv/OxA@plane.gmane.org
Subject: bug#15902: 24.3.50; Auto-save file not deleted when quitting Emacs (and saying "don't save")
Date: Sat, 16 Nov 2013 21:15:42 +0100 [thread overview]
Message-ID: <8761rst85t.fsf@yahoo.fr> (raw)
In-Reply-To: <86vbzt3o3p.fsf@somewhere.org> (Sebastien Vauban's message of "Fri, 15 Nov 2013 12:23:38 +0100")
"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!"))))
--
Nico.
next prev parent reply other threads:[~2013-11-16 20:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-15 11:23 bug#15902: 24.3.50; Auto-save file not deleted when quitting Emacs (and saying "don't save") Sebastien Vauban
2013-11-15 11:50 ` Eli Zaretskii
[not found] ` <83eh6hj34j.fsf-mXXj517/zsQ@public.gmane.org>
2013-11-15 12:19 ` Sebastien Vauban
2013-11-15 14:05 ` Stefan Monnier
[not found] ` <jwvhabd4vev.fsf-monnier+emacsbugs-mXXj517/zsQ@public.gmane.org>
2013-11-15 14:26 ` Sebastien Vauban
2013-11-16 1:18 ` Stefan Monnier
[not found] ` <mailman.6307.1384564761.10748.bug-gnu-emacs@gnu.org>
2013-11-27 10:27 ` Francesco Pizzolante
2013-11-16 20:15 ` Nicolas Richard [this message]
[not found] ` <mailman.6383.1384633039.10748.bug-gnu-emacs@gnu.org>
2013-11-17 15:17 ` bug#15902: 24.3.50; ?Auto-save file not deleted when quitting Emacs (and saying "don't?save") Alan Mackenzie
2019-08-18 17:45 ` bug#15902: 24.3.50; Auto-save file not deleted when quitting Emacs (and saying "don't save") Stefan Kangas
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=8761rst85t.fsf@yahoo.fr \
--to=theonewiththeevillook@yahoo.fr \
--cc=public-15902-ubl+/3LiMTaZdePnXv/OxA@plane.gmane.org \
--cc=public-sva-news-D0wtAvR13HarG/iDocfnWg@plane.gmane.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 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.