all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: sebyte <sdt133@netscape.net>
Subject: Re: Keep losing work in non-file-visiting buffers
Date: Thu, 04 Dec 2003 21:15:34 +0000	[thread overview]
Message-ID: <mvNzb.16880$lm1.138318@wards.force9.net> (raw)
In-Reply-To: <3FCE6F3B.5050909@yahoo.com>

Kevin,

> Since *info* and *Help* buffers are never(?) marked as modified, I guess
> it's actually save-buffers-kill-emacs (C-x C-c) that's holding you up, not
> kill-buffer (C-x k).  And that means it's buffer-offer-save that's at 
> fault, not kill-buffer-query-functions.
> 
> So maybe you just want to turn on buffer-offer-save for buffers you 
> explictly create, as with switch-to-buffer (C-x b), instead of buffers Emacs 
> creates for you:
> 
> (defadvice switch-to-buffer (after buffer-offer-save activate)
>   "Set `buffer-offer-save' when called interactively."
>   (and (interactive-p)
>        (setq buffer-offer-save t))) ; automatically local in all buffers
> 

this time it really does work like a dream.  Johan Bockgard's hack also works 
but offers no failed memory protection and is consequently not very helpful.  i 
therefore extend my thanks just to you.

sebyte

  reply	other threads:[~2003-12-04 21:15 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-02 21:15 Keep losing work in non-file-visiting buffers sebyte
2003-12-02 23:42 ` Kevin Rodgers
2003-12-03 17:34   ` sebyte
2003-12-03 22:09   ` sebyte
2003-12-03 23:18     ` Kevin Rodgers
2003-12-04 21:15       ` sebyte [this message]
2003-12-04 23:14       ` sebyte
2003-12-05 18:26         ` Kevin Rodgers
2003-12-04 16:56 ` Johan Bockgård
2003-12-04 23:29 ` Stefan Monnier
2003-12-04 23:35   ` Jesper Harder
2003-12-05  0:05     ` Stefan Monnier
2003-12-05  9:37       ` Jesper Harder

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='mvNzb.16880$lm1.138318@wards.force9.net' \
    --to=sdt133@netscape.net \
    /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.