[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get the new frame?
From: |
Javier |
Subject: |
Re: How to get the new frame? |
Date: |
Thu, 23 Jul 2015 09:01:43 +0000 (UTC) |
User-agent: |
tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.18.6-1-ARCH (x86_64)) |
Javier <nospam@nospam.com> wrote:
> Ian Zimmerman <itz@buug.org> wrote:
>> Is there a neat way in Lisp code to get at the frame which
>> find-file-other-frame just has created?
>
> (defun other-frame-dec () "" (interactive) (other-frame '+1))
> (defun other-frame-inc () "" (interactive) (other-frame '-1))
>
> I think the function other-frame-inc would just do what you want
> (change to the freshly created frame)
>
> Emacs labels the frames as F1, F2, F3... and it just increases the
> number each time you create a frame (if you delete an old frame F2,
> its number does not get reused, emacs just keeps increasing the number
> in the label: F10, F11... ).
Ups, sorry. No, I was wrong, it would change to the newly created frame
only in the case that one is in the highest number frame. To change
to newly created frame in the general case one needs to see which is
the frame with the highest number.
- Re: How to get the new frame?, (continued)
- Message not available
- Re: How to get the new frame?, B. T. Raven, 2015/07/24
- Re: How to get the new frame?, Eli Zaretskii, 2015/07/24
- Re: How to get the new frame?, Robert Thorpe, 2015/07/27
- Re: How to get the new frame?, Yuri Khan, 2015/07/24
- Re: How to get the new frame?, Eli Zaretskii, 2015/07/24
- Re: How to get the new frame?, Emanuel Berg, 2015/07/23
Re: How to get the new frame?, martin rudalics, 2015/07/21
Re: How to get the new frame?, Javier, 2015/07/21