GNU bug report logs - #4100
23.1; Minor bugs in Emacs 23

Previous Next

Packages: emacs, cc-mode;

Reported by: Jared Finder <jfinder <at> crypticstudios.com>

Date: Mon, 10 Aug 2009 02:55:06 UTC

Severity: minor

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juri Linkov <juri <at> jurta.org>
Cc: Jared Finder <jfinder <at> crypticstudios.com>, 4100 <at> debbugs.gnu.org
Subject: bug#4100: 23.1; Minor bugs in Emacs 23
Date: Thu, 03 Jun 2021 11:40:49 +0200
Juri Linkov <juri <at> jurta.org> writes:

>> 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.

I'm not sure we want to confuse the users any further -- the normal
Emacs way here is to prompt for the file at start, and having this menu
work the opposite way wouldn't help with this.

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 42 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.