From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: org-open-at-point and buffer-name Date: Sun, 27 Nov 2016 19:13:13 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1146977036b70105424c505c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cB3xJ-0002IP-9f for emacs-orgmode@gnu.org; Sun, 27 Nov 2016 13:13:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cB3xI-0002yP-De for emacs-orgmode@gnu.org; Sun, 27 Nov 2016 13:13:37 -0500 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:36288) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cB3xI-0002y4-64 for emacs-orgmode@gnu.org; Sun, 27 Nov 2016 13:13:36 -0500 Received: by mail-wm0-x236.google.com with SMTP id g23so186238058wme.1 for ; Sun, 27 Nov 2016 10:13:35 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "emacs-orgmode@gnu.org" --001a1146977036b70105424c505c Content-Type: text/plain; charset=UTF-8 Hi, I have some foo.org file : * Section This is a [[file:bar.org::#home][link] and a bar.org file : * Section :PROPERTIES: :CUSTOM_ID: home :END: Lorem ipsum ... If I put the cursor in foo.org on the link ant I try to evaluate (M-:) (progn (org-open-at-point) (buffer-name)) I get "foo.org" as a result. However the window displays bar.org and my cursor is in in bar.org. By which mystery ? I am missing something here ... but what ? Fabrice --001a1146977036b70105424c505c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I have some foo.org file :

* Section
=C2=A0 = This is a [[file:bar.org::#home][link]

and a bar.org file :

* Section=
:PROPERTIES:
:CUSTOM_ID: home
:END:
Lorem ipsum ...

If I put the cursor in foo.org on the link ant I try to evaluate (M-:)
(progn (org-open-at-point) (buffer-name))
I get "foo.org" as a result.
However the= window displays bar.org and my cursor is in= in bar.org.
By which mystery ?

I am missing something here ... but what ?

Fabrice
--001a1146977036b70105424c505c--