bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs Improvement


From: Klaus Uhl
Subject: Re: Emacs Improvement
Date: 08 Jan 2004 17:45:57 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Hello Adam,

"Adam Morton" <adam@tux.appstate.edu> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]