From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: coderef does not provide file path for org-insert-link when not in original buffre Date: Sun, 04 Nov 2018 16:47:59 +0100 Message-ID: <87va5c974g.fsf@nicolasgoaziou.fr> References: <87po1zvw9n.fsf@gmail.com> <87bmc1tb4s.fsf@nicolasgoaziou.fr> <87va6wk3ea.fsf@gmail.com> <875zysr0bb.fsf@nicolasgoaziou.fr> <875zxst5to.fsf@gmail.com> <87bm7gg06l.fsf@nicolasgoaziou.fr> <87zhv0p07b.fsf@gmail.com> <874ld0d7e3.fsf@nicolasgoaziou.fr> <87pnvoxaw7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJKdC-00066d-9t for emacs-orgmode@gnu.org; Sun, 04 Nov 2018 10:48:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJKd9-0005CN-44 for emacs-orgmode@gnu.org; Sun, 04 Nov 2018 10:48:06 -0500 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:50707) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gJKd8-00058s-TU for emacs-orgmode@gnu.org; Sun, 04 Nov 2018 10:48:03 -0500 In-Reply-To: <87pnvoxaw7.fsf@gmail.com> (stardiviner's message of "Fri, 02 Nov 2018 14:15:52 +0800") 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: stardiviner Cc: org-mode Hello, stardiviner writes: > Because the variable `org-src-source-file' is a bridge to pass info > between two buffers "source buffer" and source block opened "dedicated > buffer". So this variable must be global. Otherwise the "dedicated > buffer" can't read it. The variable is set in the "dedicated buffer", and is local to it. OTOH, the source buffer doesn't need to read it, ever. I committed a change in "master" branch. Could you tell me if it fixes your issue? Regards, -- Nicolas Goaziou