From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shaun Johnson Subject: Re: [PATCH] org-store-link: Fixed a bug where source block edit buffers were not recognized Date: Wed, 14 Mar 2012 15:37:20 +0000 Message-ID: <4F60BB30.9060105@slugfest.demon.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7qGe-0007wX-9h for emacs-orgmode@gnu.org; Wed, 14 Mar 2012 11:38:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7qGP-0004qG-2H for emacs-orgmode@gnu.org; Wed, 14 Mar 2012 11:37:35 -0400 Received: from lon1-post-2.mail.demon.net ([195.173.77.149]:60274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7qGO-0004q1-Sx for emacs-orgmode@gnu.org; Wed, 14 Mar 2012 11:37:21 -0400 In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: David Maus On 08/03/2012 22:33, Ilya Shlyakhter wrote: > attached. Having just run into this same problem (being unable to create and store a code reference link using C-l in a source block edit buffer) I would like to second the inclusion of this or an equivalent patch. Ilya's patch can be seen on the patchwork server at: http://patchwork.newartisans.com/patch/1209/ I am currently using the following patch to work around this problem: diff --git a/lisp/org.el b/lisp/org.el index ad63213..4a97cc9 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -8684,7 +8684,7 @@ For file links, arg negates `org-context-in-file-links'." (setq link (plist-get org-store-link-plist :link) desc (or (plist-get org-store-link-plist :description) link))) - ((equal (buffer-name) "*Org Edit Src Example*") + ((org-bound-and-true-p org-edit-src-from-org-mode) (let (label gc) (while (or (not label) (save-excursion Shaun Johnson.