From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Holst Subject: Problem with pretty entities and subscript Date: Tue, 2 Dec 2014 12:11:19 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvlUX-0005c9-5K for emacs-orgmode@gnu.org; Tue, 02 Dec 2014 06:19:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvlUQ-0007a3-Cr for emacs-orgmode@gnu.org; Tue, 02 Dec 2014 06:19:37 -0500 Received: from imta22.fe.bosch.de ([139.15.243.26]:20535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvlUQ-0007ZS-45 for emacs-orgmode@gnu.org; Tue, 02 Dec 2014 06:19:30 -0500 Received: from smtp6-v.fe.bosch.de (imta24.fe.bosch.de [139.15.243.27]) by imta22.fe.bosch.de (Postfix) with ESMTP id 9551984060C for ; Tue, 2 Dec 2014 12:11:30 +0100 (CET) Received: from vsmta13.fe.internet.bosch.com (unknown [10.4.98.53]) by imta24.fe.bosch.de (Postfix) with ESMTP id EAA2AD800EA for ; Tue, 2 Dec 2014 12:11:20 +0100 (CET) Received: from SI-HUB1001.de.bosch.com (vsgw24.fe.internet.bosch.com [10.4.98.24]) by vsmta13.fe.internet.bosch.com (Postfix) with ESMTP id 704E260068F for ; Tue, 2 Dec 2014 12:11:20 +0100 (CET) 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: org-mode mailing list Hello, super- and subscript display does not work as expected anymore. (At least for me :-) ) I have `org-pretty-entities' set to t. And in most of my files I have an options line which contains: #+OPTIONS: ^:{} So super- and subscripts should only be displayed when there are curly braces oround the text. But text is always displayed subscripted after a `_' even if there are no curly braces around the text after `_'. Git bisecting showed that it works prior to: 61a241f0dc07aef5a3a5c2bd037a197236bde2e6 is the first bad commit commit 61a241f0dc07aef5a3a5c2bd037a197236bde2e6 Author: Nicolas Goaziou Date: Tue Oct 14 10:53:29 2014 +0200 Rewrite setup keywords initialization =20 * lisp/org-table.el (org-table-set-constants): Remove function. * lisp/org.el (org-set-regexps-and-options): Rewrite function. Merge it with `org-set-regexps-and-options-for-tags'. (org-set-regexps-and-options-for-tags): Remove function (org--setup-collect-keywords, org--setup-process-tags): New functions= . (org-mode): Remove `org-set-regexps-and-options-for-tags' call. (org-agenda-prepare-buffers): Use optimized setup for tags in all cases. Improve docstring. (org-make-options-regexp): Make returned regexp more efficient. as expected. ^:t subscript is always displayed ^:{} subscript is only displayd when surounded by curly braces. ^:nil text is never displayed subscripted I have tested this with a minimal setup: : emacs -Q=20 and: #+begin_src elisp ;; set path to git repo (add-to-list 'load-path "~/git-emacs/site-lisp") (add-to-list 'load-path "~/git-emacs/org-mode/lisp") (require 'org) (setq org-pretty-entities t) (find-file "~/emacs/tst-pretty-entities/entities-tst.org") #+end_src #+begin_src org #+OPTIONS: ':nil *:t -:t ::t <:t H:3 \n:nil ^:{} arch:headline author:t= c:nil #+OPTIONS: creator:comment d:(not "LOGBOOK") date:t e:t email:nil f:t i= nline:t num:t #+OPTIONS: p:nil pri:nil prop:nil stat:t tags:t tasks:t tex:t timestamp= :t toc:t #+OPTIONS: todo:t |:t #+TITLE: entities-tst #+DATE: <2014-12-02 Di> #+AUTHOR: Thomas Holst #+EMAIL: thomas.holst@de.bosch.com #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: en #+SELECT_TAGS: export #+EXCLUDE_TAGS: noexport #+CREATOR: Emacs 24.3.1 (Org mode 8.3beta) \Delta tst_ding_ding =3Dtst_ding=3D #+end_src Org-mode version 8.3beta (release_8.3beta-595-g5945be @ c:/daten/users/DE_hts2fe/git-emacs/org-mode/lisp/) =20 GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 on MARVIN Win7 Thanks for looking into this --=20 Mit freundlichen Gr=FC=DFen / Best regards=20 Thomas Holst=20 DGS-EC/ESE4 Tel. +49 (711) 811-40681 PC-Fax +49 (711) 811-5182208