emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Feng Shu <tumashu@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [patch] org-element: Deal with subscript like: "_{x}"
Date: Wed, 17 Dec 2014 23:43:43 +0800	[thread overview]
Message-ID: <87vblaffio.fsf@news.tumashu-localhost.org> (raw)
In-Reply-To: <87iohawemv.fsf@news.tumashu-localhost.org> (Feng Shu's message of "Wed, 17 Dec 2014 22:10:48 +0800")


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

-- 

      reply	other threads:[~2014-12-17 15:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-17 14:10 [patch] org-element: Deal with subscript like: "_{x}" Feng Shu
2014-12-17 15:43 ` Feng Shu [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vblaffio.fsf@news.tumashu-localhost.org \
    --to=tumashu@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 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).