From: "Charles C. Berry" <ccberry@ucsd.edu>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>,
Charles Millar <millarc@verizon.net>
Subject: [PATCH} Re: inline code block problem; first attempt
Date: Wed, 8 Jun 2016 19:43:26 -0700 [thread overview]
Message-ID: <alpine.OSX.2.20.1606081938180.1799@charles-berrys-macbook.local> (raw)
In-Reply-To: <alpine.OSX.2.20.1606081254230.856@charles-berrys-macbook.local>
[-- Attachment #1: Type: text/plain, Size: 88 bytes --]
Patch atteched.
Replaced ']' with '{' in the regex `header' group.
Comments?
Chuck
[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 1102 bytes --]
From 2a060d4ca51dabbc6931a1483ae6c0ac29e0586c Mon Sep 17 00:00:00 2001
From: Charles Berry <ccberry@ucsd.edu>
Date: Wed, 8 Jun 2016 19:36:30 -0700
Subject: [PATCH] org-element-inline-src-block-parser fix regexp
* org-element.el (org-element-inline-src-block-parser): Header may
include `[' and `]', but not `{'. This allows tables to be indexed
in :var arguments.
Reported by: Charles Millar
http://article.gmane.org/gmane.emacs.orgmode/107624
---
lisp/org-element.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/org-element.el b/lisp/org-element.el
index 8745ef3..d47f6f0 100644
--- a/lisp/org-element.el
+++ b/lisp/org-element.el
@@ -2916,7 +2916,7 @@ Assume point is at the beginning of the inline src block."
(catch :no-object
(when (let ((case-fold-search nil))
(looking-at "\\<src_\\([^ \t\n[{]+\\)\
-\\(?:\\[[ \t]*\\([^]]*?\\)[ \t]*\\]\\)?{"))
+\\(?:\\[[ \t]*\\([^{]*?\\)[ \t]*\\]\\)?{"))
(let ((begin (point))
(language (match-string-no-properties 1))
(parameters
--
2.6.4 (Apple Git-63)
next prev parent reply other threads:[~2016-06-09 2:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <f70128ed2c794b438fd330d1ca7b0369@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-06-08 18:36 ` inline code block problem; first attempt Eric S Fraga
2016-06-08 19:47 ` Charles Millar
2016-06-08 19:56 ` Charles C. Berry
2016-06-09 2:43 ` Charles C. Berry [this message]
2016-06-09 11:41 ` [PATCH} " Nicolas Goaziou
2016-06-09 16:04 ` Charles C. Berry
2016-06-10 21:49 ` Nicolas Goaziou
2016-06-11 11:54 ` Charles Millar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.OSX.2.20.1606081938180.1799@charles-berrys-macbook.local \
--to=ccberry@ucsd.edu \
--cc=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=millarc@verizon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.