From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: Getting rid of "Open File" item Date: Tue, 15 Dec 2009 15:20:30 -0500 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1260909726 21835 80.91.229.12 (15 Dec 2009 20:42:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Dec 2009 20:42:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 15 21:41:59 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NKeDV-0005Ff-Ju for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Dec 2009 21:41:58 +0100 Original-Received: from localhost ([127.0.0.1]:51280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKeDV-0003lx-HZ for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Dec 2009 15:41:57 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!goblin1!goblin.stu.neva.ru!feeder.eternal-september.org!eternal-september.org!barmar.motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-X-Trace: news.eternal-september.org U2FsdGVkX19t2JScAm4B3WyZB+B6lESsGG66QP5E8kSoW7jwCbxq71vtBjSBEdrETCRo60K+ZzxSedPXq1XjEU/a/9TDExeDrt643BcxbtMPIIHorn9oEWa7YFEWYieIfTQfkGeLHRo= Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Tue, 15 Dec 2009 20:20:29 +0000 (UTC) User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-Auth-Sender: U2FsdGVkX1+pFcgIHuXQylx5OfRChNziDDv/epNPccg= Cancel-Lock: sha1:g0OqzxQRN/Y4xb6mAoon5PZNjVA= Original-Xref: news.stanford.edu gnu.emacs.help:175590 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70666 Archived-At: In article , Mark Tilford 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 ***