emacs-wiki-discuss
[Top][All Lists]
Advanced

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

[emacs-wiki-discuss] Re: snippet to ido-switch instead of planner-goto t


From: Jody Klymak
Subject: [emacs-wiki-discuss] Re: snippet to ido-switch instead of planner-goto today
Date: Tue, 29 Jun 2004 21:56:08 -0700
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (darwin)

Angus Lees <address@hidden> writes:

> I have (setq planner-use-other-window t) and I find it annoying that
> (for example) invoking `planner-goto-today' twice gives me two windows
> both looking at today.  I think modifying `planner-goto' to invoke
> something like this would do what I expect:
>   (if planner-use-other-window
>       (pop-to-buffer buf)
>     (switch-to-buffer buf))
>
> If that were the behaviour, I'm not sure why anyone would *not* want
> to use `planner-use-other-window' ;)
>
> On XEmacs at least, I think `pop-to-buffer' would also help Jody's
> problems since if the buffer is already displayed in another frame,
> then that frame is simply raised.  (I'm not sure how GNU Emacs behaves
> in this regard)

Unfortunately, Gnu emacs does not find the buffer in another
frame. Thats why I chose to use ido-visit-buffer.  

Note that planner-goto uses planner-find-file, which uses find-file.
find-file unfortunately always finds the file in the current frame,
even if it is already in another frame.

Perhaps someone knows how to get find-file to behave more politely
with respect to frames?  Note that (setq pop-up-frames t) seems too
draconian to me - always displaying new buffers in a new frame.  I
want to create my own frames, but then have emacs raise them if a
buffer that is in them is asked for.  ido-mode does most of this for
me, so I'm not too miserable.

Thanks,  Jody

-- 
Jody Klymak      http://opg1.ucsd.edu/~jklymak/
mailto:address@hidden   





reply via email to

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