[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs ignores modified state of "untitled" buffer
From: |
Stefan Vollmar |
Subject: |
Re: Emacs ignores modified state of "untitled" buffer |
Date: |
Fri, 21 May 2010 10:03:24 +0200 |
Dear Kevin,
On 21.05.2010, at 03:56, Kevin Rodgers wrote:
> I can think of a couple nuisances:
>
> * If the buffer gets saved to file "untitled", a subsequent invocation of
> emacs
> will visit that file, not an empty buffer.
>
> * Changes to the buffer will be auto-saved to the #untitled# file, and a
> subsequent invocation of emacs will ask to recover the file (if the 2
> invocations are concurrent, or if the first invocation exited uncleanly).
you are absolutely right about theses nuisances, thanks!
I have now tried:
http://lists.gnu.org/archive/html/gnu-emacs-sources/2008-09/msg00016.html
site-start.el now ends with:
(require 'switch-to-new-buffer)
(switch-to-new-untitled-buffer)
;(org-mode)
(setq initial-buffer-choice 'none)
This works fine - except that when I uncomment the (org-mode) line, the
"Untitled" buffer is set to Org-mode (as intended) but when I close Emacs it
will no longer ask about saving data if the buffer was marked dirty. If the
(org-mode) line is commented out, Emacs does ask about saving (if it is
required). I also tried c-mode instead of Org-mode, same effect - so the
problem is probably not related to Org-mode.
I guess changing the mode somehow overwrites the kill protections in
switch-to-new-buffer?
Warm regards,
Stefan
--
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213 FAX +49-221-4726-298
Tel.: +49-221-478-5713 Mobile: 0160-93874279
Email: vollmar@nf.mpg.de http://www.nf.mpg.de
smime.p7s
Description: S/MIME cryptographic signature
- Emacs ignores modified state of "untitled" buffer, Stefan Vollmar, 2010/05/19
- RE: Emacs ignores modified state of "untitled" buffer, Drew Adams, 2010/05/19
- Re: Emacs ignores modified state of "untitled" buffer, Stephen Berman, 2010/05/19
- Re: Emacs ignores modified state of "untitled" buffer, Kevin Rodgers, 2010/05/20
- Re: Emacs ignores modified state of "untitled" buffer, Kevin Rodgers, 2010/05/20
- Re: Emacs ignores modified state of "untitled" buffer,
Stefan Vollmar <=
- Re: Emacs ignores modified state of "untitled" buffer, Kevin Rodgers, 2010/05/21
- Re: Emacs ignores modified state of "untitled" buffer, Stefan Vollmar, 2010/05/21
- Re: Emacs ignores modified state of "untitled" buffer, Kevin Rodgers, 2010/05/21
- Re: Emacs ignores modified state of "untitled" buffer, Stefan Vollmar, 2010/05/21
- Re: Emacs ignores modified state of "untitled" buffer, Lennart Borgman, 2010/05/21
- Re: Emacs ignores modified state of "untitled" buffer, Stefan Vollmar, 2010/05/21
- Re: Emacs ignores modified state of "untitled" buffer, Lennart Borgman, 2010/05/21
- RE: Emacs ignores modified state of "untitled" buffer, Drew Adams, 2010/05/21
- Re: Emacs ignores modified state of "untitled" buffer, Kevin Rodgers, 2010/05/28
- RE: Emacs ignores modified state of "untitled" buffer, Drew Adams, 2010/05/28