From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Re: buffer for unopened file? Date: Wed, 24 Oct 2007 14:55:59 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193233241 6219 80.91.229.12 (24 Oct 2007 13:40:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Oct 2007 13:40:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 24 15:40:41 2007 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 1IkgTR-0008C9-7x for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Oct 2007 15:40:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IkgTJ-00058b-1C for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Oct 2007 09:40:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-X-Trace: individual.net TMLn6N7xnlBpIc9IqR4wDgJK5DR1rHb59zzvyWkTODxSMOtSfm Cancel-Lock: sha1:0SawAgpOiV10dAkD/Kif+HYlMqc= sha1:I1L/OEipk5Lnbx36DMz+6bJM7eU= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (windows-nt) Original-Xref: shelby.stanford.edu gnu.emacs.help:153272 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:48761 Archived-At: "David L" writes: > I also wouldn't have to have any if else logic in my brain when > changing to a new file (ie, if a file is already opened, change to > its buffer else open a file-cached file). I suggest you take a look at anything.el and all the possible sources you can add to it. I have `anything' bound to F3 in my Emacs and I type F3 to switch buffers or to open recent files or to open files from my bookmarks. No need to think anymore :) Some day I will integrate my file name cache into it as well... /Mathias