all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: gnu-emacs-bug@moderators.isc.org
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)	[thread overview]
Message-ID: <l6amlc$11kb$1@colin.muc.de> (raw)
In-Reply-To: <86vbzt3o3p.fsf@somewhere.org>


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).






  parent reply	other threads:[~2013-11-17 15:17 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
     [not found] ` <mailman.6383.1384633039.10748.bug-gnu-emacs@gnu.org>
2013-11-17 15:17   ` Alan Mackenzie [this message]
2019-08-18 17:45 ` 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='l6amlc$11kb$1@colin.muc.de' \
    --to=acm@muc.de \
    --cc=gnu-emacs-bug@moderators.isc.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.