From: Stefan Vollmar <vollmar@nf.mpg.de>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: help-gnu-emacs@gnu.org, Kevin Rodgers <kevin.d.rodgers@gmail.com>
Subject: Re: Emacs ignores modified state of "untitled" buffer
Date: Fri, 21 May 2010 22:49:15 +0200 [thread overview]
Message-ID: <6766F35D-7454-49D5-AE41-F4362685410E@nf.mpg.de> (raw)
In-Reply-To: <AANLkTikHs0nOVUiD2aCvrcU8fum1M2E5CmGalT9P8MRB@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1399 bytes --]
Dear Lennart,
On 21.05.2010, at 19:15, Lennart Borgman wrote:
> On Fri, May 21, 2010 at 3:17 PM, Kevin Rodgers
> <kevin.d.rodgers@gmail.com> wrote:
>
>> ;; Protect against kill-emacs:
>> (setq buffer-offer-save t)
>
>>> I guess changing the mode somehow overwrites the kill protections in
>>> switch-to-new-buffer?
>>
>> Yes, via kill-all-local-variables.
>
> You have to use
>
> (put 'buffer-offer-save 'permanent-local t)
>
> to protect against kill-all-local-variables. I think it is a bug that
> this is not already done in Emacs.
excellent!
With
(require 'switch-to-new-buffer)
(put 'buffer-offer-save 'permanent-local t)
(let ((default-major-mode 'org-mode))
(switch-to-new-untitled-buffer))
(setq initial-buffer-choice 'none)
in site-start.el and Kevin's last version of switch-to-new-buffer, Emacs will now start with an "untitled" buffer (in Org-mode; no splashscreen), always ask to save data in a dirty "untitled" buffer and also dropping a file on the Emacs Windows icon shortcut will open it.
Thank you!
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
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4409 bytes --]
next prev parent reply other threads:[~2010-05-21 20:49 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-19 14:52 Emacs ignores modified state of "untitled" buffer Stefan Vollmar
2010-05-19 15:04 ` Drew Adams
2010-05-19 20:34 ` Stephen Berman
2010-05-20 12:45 ` Kevin Rodgers
2010-05-20 13:29 ` Drew Adams
2010-05-20 14:00 ` Stefan Vollmar
2010-05-21 2:00 ` Kevin Rodgers
2010-05-21 2:06 ` Lennart Borgman
2010-05-21 1:56 ` Kevin Rodgers
2010-05-21 8:03 ` Stefan Vollmar
2010-05-21 13:17 ` Kevin Rodgers
2010-05-21 13:59 ` Stefan Vollmar
2010-05-21 14:11 ` Kevin Rodgers
2010-05-21 14:30 ` Stefan Vollmar
2010-05-21 17:15 ` Lennart Borgman
2010-05-21 20:49 ` Stefan Vollmar [this message]
2010-05-21 20:56 ` Lennart Borgman
2010-05-21 14:20 ` Drew Adams
2010-05-28 14:32 ` Kevin Rodgers
2010-05-28 17:18 ` Drew Adams
2010-05-28 21:21 ` Stefan Vollmar
[not found] ` <mailman.2.1275067137.32597.help-gnu-emacs@gnu.org>
2010-05-29 1:04 ` Tim X
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6766F35D-7454-49D5-AE41-F4362685410E@nf.mpg.de \
--to=vollmar@nf.mpg.de \
--cc=help-gnu-emacs@gnu.org \
--cc=kevin.d.rodgers@gmail.com \
--cc=lennart.borgman@gmail.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).