From: Rupert Swarbrick <rswarbrick@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: saving buffers options
Date: Fri, 22 Aug 2008 18:09:33 +0100 [thread overview]
Message-ID: <g8mrsi$ej8$1@news.albasani.net> (raw)
In-Reply-To: mailman.17318.1219406286.18990.help-gnu-emacs@gnu.org
[-- Attachment #1.1: Type: text/plain, Size: 638 bytes --]
"Rustom Mody" <rustompmody@gmail.com> writes:
> Some buffers can be closed without any questions but for some --
> typically file buffers -- if a changed buffer is (tried to be) closed,
> a question is asked: Do you want save this...??
>
> I want to get this question for python-mode, shell-mode etc. Is there
> some option for this?
>
> Thanks.
Looking at C-h f kill-buffer, I see that kill-buffer-query-functions is
called on kill, but my emacs only has
(gnuserv-kill-buffer-query-function)
in there, so it can't be that which checks whether you want to save
dirty files...
However, I just hacked this up:
[-- Attachment #1.2: a --]
[-- Type: application/emacs-lisp, Size: 324 bytes --]
[-- Attachment #1.3: Type: text/plain, Size: 157 bytes --]
which seems to work here. Clearly you'll want to edit
savable-shell-modes and possibly change more than that... But there's a
quick start I think.
Rupert
[-- Attachment #2: Type: application/pgp-signature, Size: 314 bytes --]
next parent reply other threads:[~2008-08-22 17:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.17318.1219406286.18990.help-gnu-emacs@gnu.org>
2008-08-22 17:09 ` Rupert Swarbrick [this message]
2008-08-22 11:57 saving buffers options Rustom Mody
2008-09-01 16:37 ` Kevin Rodgers
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='g8mrsi$ej8$1@news.albasani.net' \
--to=rswarbrick@gmail.com \
--cc=help-gnu-emacs@gnu.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).