|
From: | Juri Linkov |
Subject: | bug#4100: 23.1; Minor bugs in Emacs 23 |
Date: | Tue, 11 Aug 2009 02:57:57 +0300 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) |
> Please change the "Visit New File" entry to a "New File" entry > defined as follows: > (define-key menu-bar-file-menu [new-file] > '(menu-item "New File" > (lambda () > (interactive) > (switch-to-buffer (generate-new-buffer "*untitled*"))) > :enable (menu-bar-non-minibuffer-window-p) > :help "Create a new buffer")) > > This corresponds to what just about every other editor on the planet > does -- prompt for a filename when the file is first SAVED. This makes sense since this new *untitled* buffer is just like the *scratch* buffer but you need also add (setq buffer-offer-save t) and (auto-save-mode 1) to *untitled* so exiting will ask a question about saving it to a file. -- Juri Linkov http://www.jurta.org/emacs/
[Prev in Thread] | Current Thread | [Next in Thread] |