From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug] Code snippets are not getting numbered Date: Tue, 28 Jan 2014 22:11:30 +0100 Message-ID: <87mwifhkvx.fsf@gmail.com> References: <87iot48n1h.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8FwE-0004hB-1H for emacs-orgmode@gnu.org; Tue, 28 Jan 2014 16:11:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8Fw5-0008O8-Gy for emacs-orgmode@gnu.org; Tue, 28 Jan 2014 16:11:17 -0500 Received: from mail-wg0-x232.google.com ([2a00:1450:400c:c00::232]:51363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8Fw5-0008Nr-9f for emacs-orgmode@gnu.org; Tue, 28 Jan 2014 16:11:09 -0500 Received: by mail-wg0-f50.google.com with SMTP id l18so1916951wgh.5 for ; Tue, 28 Jan 2014 13:11:08 -0800 (PST) In-Reply-To: <87iot48n1h.fsf@gmail.com> (Jambunathan K.'s message of "Tue, 28 Jan 2014 15:07:30 +0530") 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: Jambunathan K Cc: emacs-orgmode@gnu.org, Eric Schulte Hello, Jambunathan K writes: > Code snippets are not getting numbered... Also take a look at > `org-export-resolve-coderef'. > > The below example is from (info "(org) Literal examples") > > #+BEGIN_SRC emacs-lisp -n -r > (save-excursion (ref:sc) > (goto-char (point-min)) (ref:jump) > #+END_SRC > > In line [[(sc)]] we remember the current position. [[(jump)][Line (jump)]] > jumps to point-min. Thank you for reporting it. The problem is one week old (dde6af3a6230b37aabfb4f75c2dee89433958375). When trying to fix something I broke another part. IIUC, there are two "flags" types in `org-babel-exp-code'. One is the :flags parameter and the other one are the switches of the source block. Unfortunately, you can have only one at a time since they are stored in an alist (the first one shadows the other one). I think a correct solution would be to rename switches "switches" and add them to `org-babel-exp-code-template'. Eric, what do you think? Regards, -- Nicolas Goaziou