all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Galen Boyer <galenboyer@hotpop.com>
Subject: Re: Saving Buffer
Date: 20 Jan 2003 17:05:07 -0600	[thread overview]
Message-ID: <un0lvfdtu.fsf@hotpop.com> (raw)
In-Reply-To: A8XW9.91507$DN6.3722315@twister.austin.rr.com

On Mon, 20 Jan 2003, carlc@snowbd.com wrote:
> The function save-buffers-kill-emacs goes through each modified buffer
> with a file assocation and asks "Save file /home/carl/trash? (y, n, !,
> ., q, C-r or C-h)". Is this functionality available for a single
> (current) buffer? I cannot find a command similar to this. I just want
> to say kill-buffer, but ask to save if it is modified. 

C-x k when you are within the buffer you want to kill.

> I don't want it to kill-emacs.

As an additional step (not really related to your issue,

(setq kill-emacs-query-functions
      (cons (lambda () (yes-or-no-p "Really kill Emacs? "))
			kill-emacs-query-functions))

This makes sure you don't kill Emacs when you didn't mean it. C-x C-c is
too easy to hit.

-- 
Galen deForest Boyer
Sweet dreams and flying machines in pieces on the ground.

  parent reply	other threads:[~2003-01-20 23:05 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
2003-01-20 23:05 ` Galen Boyer [this message]
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=un0lvfdtu.fsf@hotpop.com \
    --to=galenboyer@hotpop.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.