From: "CarlC" <carlc@snowbd.com>
Subject: Re: Saving Buffer
Date: Mon, 20 Jan 2003 19:33:39 GMT [thread overview]
Message-ID: <naYW9.91536$DN6.3732092@twister.austin.rr.com> (raw)
In-Reply-To: vfk7gzlln4.fsf@rpc71.cs.man.ac.uk
"Phillip Lord" <p.lord@russet.org.uk> wrote in message
news:vfk7gzlln4.fsf@rpc71.cs.man.ac.uk...
> >>>>> "CarlC" == CarlC <carlc@snowbd.com> writes:
>
> CarlC> The function save-buffers-kill-emacs goes through each
> CarlC> modified buffer with a file assocation and asks "Save file
> CarlC> /home/carl/trash? (y, n, !, ., q, C-r or C-h)". Is this
> CarlC> functionality available for a single (current) buffer? I
> CarlC> cannot find a command similar to this. I just want to say
> CarlC> kill-buffer, but ask to save if it is modified. I don't want
> CarlC> it to kill-emacs.
>
>
> This should be the default behaviour. Certainly if I do kill-buffer,
> then I get "Buffer blah.txt modified: kill anyway?"
Not exactly what one would want. I guess you have to do save-buffer and then
kill-buffer. Ugh.
> This doesn't happen if the buffer is not associated with a file. So
> *scratch* can be killed in this way. If you want to stop this, you'll
> need to add a function to "kill-buffer-hook" to query the user first.
That's what I was afraid of. Seems a shame to have to reinvent the wheel.
next prev parent reply other threads:[~2003-01-20 19:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-20 18:23 Saving Buffer CarlC
2003-01-20 18:30 ` Phillip Lord
2003-01-20 19:33 ` CarlC [this message]
2003-01-20 23:05 ` Galen Boyer
2003-01-21 0:15 ` Stefan Monnier <foo@acm.com>
2003-01-21 0:31 ` Henrik Enberg
2003-01-21 0:33 ` Henrik Enberg
2003-01-21 15:39 ` Kai Großjohann
2003-01-21 16:26 ` Phillip Lord
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='naYW9.91536$DN6.3732092@twister.austin.rr.com' \
--to=carlc@snowbd.com \
/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.