all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Jared Finder <jfinder@crypticstudios.com>
Cc: 4100@emacsbugs.donarmstrong.com
Subject: bug#4100: 23.1; Minor bugs in Emacs 23
Date: Tue, 11 Aug 2009 02:57:57 +0300	[thread overview]
Message-ID: <87ljlrjica.fsf@mail.jurta.org> (raw)
In-Reply-To: <C73CE12E0E2E6D4AA8C97475050023A61000041D65@proserpine.paragon.crypticstudios.com> (Jared Finder's message of "Sun, 9 Aug 2009 19:46:17 -0700")

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





  reply	other threads:[~2009-08-10 23:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <64CCCAABBBC73A44926EC2CB7E6CBF2B0FF5590746@proserpine.paragon.crypticstudios.com>
2009-08-10  2:46 ` bug#4100: 23.1; Minor bugs in Emacs 23 Jared Finder
2009-08-10 23:57   ` Juri Linkov [this message]
2021-06-03  9:40     ` Lars Ingebrigtsen

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=87ljlrjica.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=4100@emacsbugs.donarmstrong.com \
    --cc=jfinder@crypticstudios.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.
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.