On Thu, 30 Sep 2004, [EMAIL PROTECTED] wrote:

> I really do want is to only have one emacs _window_ (ie one tab),
> not just one emacs process.  A significant proportion of the time I
> get the file that I want to look at via some xterm command using
> emacsclient rather than opening it directly in emacs. (I find this
> more convenient because the shell in the xterm is often in the
> directory the file is in anyway, so I don't have to do all the
> typing to put the correct directory in front of the path when using
> find-file in emacs, or I can open files returned from a grep, etc.)
> If I got a new window each time I did this, I'd have 20-30 windows
> belonging to emacs at any given time to no purpose. But it's not
> that hard to open the file, then use the mouse to switch to my emacs
> window.

(still cc to the list because they may find this of interest in the
context of Ion)

gnuclient can run an Emacs command, so run '(file-find "file name")'
and it will open it in the current window instead of opening a new
one.

If you do directory browsing like that a lot, try dired, it's very
nice (also works for tar/zip/etc. inspection).  The file opens in
Emacs - no fuss.

> I'm still trying to figure out how to reduce the number of xterm
> windows from about 30 to a smaller number whilst keeping the
> benefits of the separate bash history files in each window :-)

Use screen!

Ted

Reply via email to