From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Klaus Uhl Newsgroups: gmane.emacs.bugs Subject: Re: Emacs Improvement Date: 08 Jan 2004 17:45:57 +0100 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87u136s81m.fsf@ulm.my.lan> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073588304 27037 80.91.224.253 (8 Jan 2004 18:58:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Jan 2004 18:58:24 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 08 19:58:01 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AefM1-00051r-00 for ; Thu, 08 Jan 2004 19:58:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AegJ1-00005W-K4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Jan 2004 14:58:59 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AegIw-00004z-QS for bug-gnu-emacs@prep.ai.mit.edu; Thu, 08 Jan 2004 14:58:54 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AeeYp-0003oW-O5 for bug-gnu-emacs@prep.ai.mit.edu; Thu, 08 Jan 2004 13:07:43 -0500 Original-Received: from [193.4.58.12] (helo=horus.isnic.is) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AeeEh-0001cv-7O for bug-gnu-emacs@prep.ai.mit.edu; Thu, 08 Jan 2004 12:46:23 -0500 Original-Received: from mail.fu-berlin.de (root@mail.fu-berlin.de [160.45.11.165]) by horus.isnic.is (8.12.9p2/8.12.9/isnic) with ESMTP id i08GiZcs016691 for ; Thu, 8 Jan 2004 16:44:36 GMT (envelope-from news@u-h-l.de) Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Thu, 8 Jan 2004 17:44:34 +0100 (MET) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Thu, 8 Jan 2004 17:44:34 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: p5088f0fb.dip0.t-ipconnect.DE!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 39 X-Orig-NNTP-Posting-Host: p5088f0fb.dip0.t-ipconnect.de (80.136.240.251) X-Orig-X-Trace: news.uni-berlin.de 1073580273 8098899 80.136.240.251 ([99401]) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:6504 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:6504 Hello Adam, "Adam Morton" writes: > Hello I'm a PHP programmer and an avid emacs user. This is an issue that > comes up every day with me and is just generally annoying. > > If you initially open a file in emacs (say test.php), C-x C-f to select > another file (say test2.php), then when you've opened test2.php, you C-x > C-f again and hit the up arrow to get the last file, emacs says "No > preceding file found" or something similar, when it should allow you to > hit the up arrow and get the original test.php file that was being edited > first. I hope I correctly understood what you did. You just opened two files in emacs without closing the first of them explicitly. Emacs does not automatically close buffers (i.e. files in your case) when you open a different buffer (or file) but keeps those buffers open but invisible. So you do not need to reopen the first file. You simply can switch to this file by either using the "Buffers" menu or by typing C-x b and supplying the name of the buffer you want to switch to. If you type the TAB key instead you get a buffer which shows all currently open buffers. Read the chapter "Using Multiple Buffers" in the emacs manual for more information. BTW. The C-x b command supporst a history of the last visited buffers which seems to be what you want. -- God is real ... \|/ ____ \|/ ... unless declared integer. "@'/ ,. \`@" \_| \__/ |_/ Mail me : news@u-h-l.de \__U_/ WWW : www.u-h-l.de PGP : Look at your favourite PGP-keyserver