* [patch] org-element: Deal with subscript like: "_{x}"
@ 2014-12-17 14:10 Feng Shu
2014-12-17 15:43 ` Feng Shu
0 siblings, 1 reply; 2+ messages in thread
From: Feng Shu @ 2014-12-17 14:10 UTC (permalink / raw)
To: orgmode
[-- Attachment #1: 0001-org-element-Deal-with-subscript-like-_-x.patch --]
[-- Type: text/x-diff, Size: 1011 bytes --]
From a4b14292b96a0f5e5d262087ec3e8de7c209f863 Mon Sep 17 00:00:00 2001
From: Feng Shu <tumashu@gmail.com>
Date: Wed, 17 Dec 2014 21:59:44 +0800
Subject: [PATCH] org-element: Deal with subscript like: "_{x}"
* lisp/org-element.el (org-element--object-lex): Deal with
subscript like: "_{x}".
---
lisp/org-element.el | 3 +++
1 个文件被修改,插入 3 行(+)
diff --git a/lisp/org-element.el b/lisp/org-element.el
index d5d4bb9..bf8b152 100644
--- a/lisp/org-element.el
+++ b/lisp/org-element.el
@@ -4215,6 +4215,9 @@ to an appropriate container (e.g., a paragraph)."
(?^ (and (memq 'superscript restriction)
(org-element-superscript-parser)))
(?_ (or (and (memq 'subscript restriction)
+ (if (eq org-export-with-sub-superscripts '{})
+ (eq (char-after (+ (point) 1) ) ?{)
+ t)
(org-element-subscript-parser))
(and (memq 'underline restriction)
(org-element-underline-parser))))
--
1.7.10.4
[-- Attachment #2: Type: text/plain, Size: 5 bytes --]
--
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [patch] org-element: Deal with subscript like: "_{x}"
2014-12-17 14:10 [patch] org-element: Deal with subscript like: "_{x}" Feng Shu
@ 2014-12-17 15:43 ` Feng Shu
0 siblings, 0 replies; 2+ messages in thread
From: Feng Shu @ 2014-12-17 15:43 UTC (permalink / raw)
To: emacs-orgmode
This seem to be a wrong patch, sorry!
Feng Shu <tumashu@gmail.com> writes:
> From a4b14292b96a0f5e5d262087ec3e8de7c209f863 Mon Sep 17 00:00:00 2001
> From: Feng Shu <tumashu@gmail.com>
> Date: Wed, 17 Dec 2014 21:59:44 +0800
> Subject: [PATCH] org-element: Deal with subscript like: "_{x}"
>
> * lisp/org-element.el (org-element--object-lex): Deal with
> subscript like: "_{x}".
> ---
> lisp/org-element.el | 3 +++
> 1 个文件被修改,插入 3 行(+)
>
> diff --git a/lisp/org-element.el b/lisp/org-element.el
> index d5d4bb9..bf8b152 100644
> --- a/lisp/org-element.el
> +++ b/lisp/org-element.el
> @@ -4215,6 +4215,9 @@ to an appropriate container (e.g., a paragraph)."
> (?^ (and (memq 'superscript restriction)
> (org-element-superscript-parser)))
> (?_ (or (and (memq 'subscript restriction)
> + (if (eq org-export-with-sub-superscripts '{})
> + (eq (char-after (+ (point) 1) ) ?{)
> + t)
> (org-element-subscript-parser))
> (and (memq 'underline restriction)
> (org-element-underline-parser))))
> --
> 1.7.10.4
--
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-12-17 15:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-17 14:10 [patch] org-element: Deal with subscript like: "_{x}" Feng Shu
2014-12-17 15:43 ` Feng Shu
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).