From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [bug] Code snippets are not getting numbered Date: Tue, 28 Jan 2014 14:24:05 -0700 Message-ID: <87txcn4q2j.fsf@gmail.com> References: <87iot48n1h.fsf@gmail.com> <87mwifhkvx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8IZa-0001Jy-F6 for emacs-orgmode@gnu.org; Tue, 28 Jan 2014 19:00:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8IZV-0001de-4n for emacs-orgmode@gnu.org; Tue, 28 Jan 2014 19:00:06 -0500 Received: from mail-pa0-x229.google.com ([2607:f8b0:400e:c03::229]:43220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8IZU-0001cS-SC for emacs-orgmode@gnu.org; Tue, 28 Jan 2014 19:00:01 -0500 Received: by mail-pa0-f41.google.com with SMTP id fa1so1034448pad.0 for ; Tue, 28 Jan 2014 15:59:59 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org, Jambunathan K Nicolas Goaziou writes: > 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? > That sounds reasonable to me. > > > Regards, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D