all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Phillip Lord <p.lord@russet.org.uk>
Subject: Re: Saving Buffer
Date: 20 Jan 2003 18:30:07 +0000	[thread overview]
Message-ID: <vfk7gzlln4.fsf@rpc71.cs.man.ac.uk> (raw)
In-Reply-To: A8XW9.91507$DN6.3722315@twister.austin.rr.com

>>>>> "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?"

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. 

Phil

  reply	other threads:[~2003-01-20 18:30 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 [this message]
2003-01-20 19:33   ` CarlC
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=vfk7gzlln4.fsf@rpc71.cs.man.ac.uk \
    --to=p.lord@russet.org.uk \
    /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.