diff options
author | Bastien Guerry <bzg@altern.org> | 2013-03-30 15:55:57 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2013-03-30 15:55:57 +0100 |
commit | b802df337aaf5d7390d7f76e7ec7769ccf166b26 (patch) | |
tree | b4ec72acd5f86245139eb5ff9433683feff7552d | |
parent | 15c3792f2b733b31b3e1c6098e2d217242a6edd4 (diff) | |
download | org-mode-b802df337aaf5d7390d7f76e7ec7769ccf166b26.tar.gz |
org.el (org-raise-scripts): Handle scripts like "a_b^c"
* org.el (org-toggle-pretty-entities): Enhance messages.
(org-raise-scripts): Handle scripts like "a_b^c".
Thanks to Jae Hee Lee for reporting this.
-rw-r--r-- | lisp/org.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/org.el b/lisp/org.el index e2274a8..16a8540 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -6211,11 +6211,11 @@ needs to be inserted at a specific position in the font-lock sequence.") (org-set-local 'org-pretty-entities (not org-pretty-entities)) (org-restart-font-lock) (if org-pretty-entities - (message "Entities are displayed as UTF8 characters") + (message "Entities are now displayed as UTF8 characters") (save-restriction (widen) (org-decompose-region (point-min) (point-max)) - (message "Entities are displayed plain")))) + (message "Entities are now displayed as plain text")))) (defvar org-custom-properties-overlays nil "List of overlays used for custom properties.") @@ -6385,10 +6385,10 @@ and subscripts." (keyw-p (eq 'org-special-keyword (get-text-property mpos 'face)))) (goto-char (point-at-bol)) (setq table-p (org-looking-at-p org-table-dataline-regexp) - comment-p (org-looking-at-p "[ \t]*#")) + comment-p (org-looking-at-p "^[ \t]*#[ +]")) (goto-char pos) - ;; FIXME: Should we go back one character here, for a_b^c - ;; (goto-char (1- pos)) ;???????????????????? + ;; Handle a_b^c + (if (member (char-after) '(?_ ?^)) (goto-char (1- pos))) (if (or comment-p emph-p link-p keyw-p) t (put-text-property (match-beginning 3) (match-end 0) |