all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: Getting rid of "Open File" item
Date: Tue, 15 Dec 2009 15:20:30 -0500	[thread overview]
Message-ID: <barmar-B68526.15203015122009@nothing.attdns.com> (raw)
In-Reply-To: mailman.12954.1260822153.2239.help-gnu-emacs@gnu.org

In article <mailman.12954.1260822153.2239.help-gnu-emacs@gnu.org>,
 Mark Tilford <ralphmerridew@gmail.com> wrote:

> I'm using GNU Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll
> bars) of 2008-09-05 on vernadsky, modified by Ubuntu.
> 
> I'm used to "Open File" meaning "Open an existing file, if there is
> one; otherwise, create a new file and open it."

How did you get used to that?  Emacs's Open File menu works like every 
other GUI application I've ever used, popping up a file browser that 
only allows you to select from existing files.

> The "Open file" item
> in this version of emacs will only open existing files.  Is there a
> way to remove "Open file" from the menu bar (and optionally relabel
> "Visit new file" to "Open file")?

(define-key menu-bar-file-menu [open-file]
            '(menu-item "Open File..." find-file
              ([24 6] . " (C-x C-f)")
              :enable (menu-bar-non-minibuffer-window-p)
              :help "Open a new or existing file, specified by name"))
(define-key menu-bar-file-menu [new-file] nil)

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***


       reply	other threads:[~2009-12-15 20:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.12954.1260822153.2239.help-gnu-emacs@gnu.org>
2009-12-15 20:20 ` Barry Margolin [this message]
2009-12-14 20:15 Getting rid of "Open File" item Mark Tilford

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=barmar-B68526.15203015122009@nothing.attdns.com \
    --to=barmar@alum.mit.edu \
    --cc=help-gnu-emacs@gnu.org \
    /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.