From: Carsten Dominik <carsten.dominik@gmail.com>
To: Lluís <xscript@gmx.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: [bug] org-insert-link in different frame
Date: Thu, 8 Apr 2010 09:18:59 +0200 [thread overview]
Message-ID: <171C4424-36C6-4E08-8A7E-471549788F4F@gmail.com> (raw)
In-Reply-To: <8639z7s0el.wl%lluis@ginnungagap.pc.ac.upc.edu>
Applied, thanks.
- Carsten
On Apr 7, 2010, at 6:16 PM, Lluís wrote:
>> Hi Lluis, would you like to make a patch for me to fix this?
>
> Here it goes.
>
> Note that I've found some weirdness that I don't know how to solve,
> and might well be a systemic problem of the current implementation of
> `framepop' (or either a lack of elisp knowledge from my part):
>
> - Bind an org-mode buffer to framepop from "frame0"
> (`framepop-display-buffer'); this creates "framefp" and calls
> `redirect-frame-focus', redirecting "framefp" to "frame0"
> - Create a new frame "frame1".
> - Call `suspend-frame' on "frame0"
> - Switch to "framefp" and call `org-insert-link'
>
> This has the unfortunate effect of showing the "*Org Links*" buffer in
> "frame1", and then raising "frame0" for the user input in the
> minibuffer.
>
> Result? If both "frame0" and "frame1" were on the same screen, the
> former is on top of the latter, thus preventing the useer to see the
> "*Org Links*" buffer.
>
> After some tests, I've also found that `get-buffer-window' prefers
> "frame1" even when `org-completing-read' later on uses "frame0" for
> the minibuffer, so this is still confusing to use (now without having
> `suspend-frame' on "frame0").
>
> My elisp knowledge is too limited to find a solution to this, but the
> patch at least works in the simple case of "frame0"+"framefp" (which
> is the schenario that raised the initial error).
>
>
> Read you,
> Lluis
>
>
> <org.el.patch>
>
> --
> "And it's much the same thing with knowledge, for whenever you learn
> something new, the whole world becomes that much richer."
> -- The Princess of Pure Reason, as told by Norton Juster in The
> Phantom
> Tollbooth
- Carsten
prev parent reply other threads:[~2010-04-08 8:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-30 17:17 [bug] org-insert-link in different frame Lluís
2010-04-06 10:10 ` Carsten Dominik
2010-04-07 16:16 ` Lluís
2010-04-08 7:18 ` Carsten Dominik [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=171C4424-36C6-4E08-8A7E-471549788F4F@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=xscript@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.