From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?TGx1w61z?= Subject: [bug] org-insert-link in different frame Date: Tue, 30 Mar 2010 19:17:58 +0200 Message-ID: <86k4stzq2h.wl%lluis@ginnungagap.pc.ac.upc.edu> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nwf4v-0004Ra-Ez for emacs-orgmode@gnu.org; Tue, 30 Mar 2010 13:18:13 -0400 Received: from [140.186.70.92] (port=51844 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nwf4q-0004N4-6U for emacs-orgmode@gnu.org; Tue, 30 Mar 2010 13:18:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nwf4o-0002b3-EP for emacs-orgmode@gnu.org; Tue, 30 Mar 2010 13:18:08 -0400 Received: from mail.gmx.net ([213.165.64.20]:44480) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Nwf4n-0002ag-VQ for emacs-orgmode@gnu.org; Tue, 30 Mar 2010 13:18:06 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I tried to insert a previously stored link in an org-mode buffer that was in a `framepop' buffer (framepop "pins" a buffer in a separate frame, and all interactions are redirected to the non-framepop frame). The result is that '(get-buffer-window "*Org Links*")' returns 'nil' and thus the function throws an exception. This could be easily fixed by using the second argument FRAME in `get-buffer-window'. In any case, which would be the best value for that argument still escapes my knowledge (I supose `t' would be safe and work in all cases). I'm using version 6.34c. In an unrelated note, I'm using an approach similar to that of http://tsdh.wordpress.com/2009/03/ and when saving an org-mode file in the framepop frame, the hook is somehow unable to prevent the excursion, thus showing me the agenda buffer on my main working frame. I tried a `framepop-toggle-frame' before and after the `save-excursion' code if `selected-frame' is `framepop-frame' (which should get back to the "working" frame and thus save excursions in there). Even if the framepop-frame is visibly toggled, it still shows the same undesired behaviour. Thanks, Lluis -- "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