From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0Iy2GZOsvV/zWQAA0tVLHw (envelope-from ) for ; Wed, 25 Nov 2020 01:00:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GImjFZOsvV/FYAAAB5/wlQ (envelope-from ) for ; Wed, 25 Nov 2020 01:00:03 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 746919404C4 for ; Wed, 25 Nov 2020 01:00:02 +0000 (UTC) Received: from localhost ([::1]:47320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khjA8-0000AU-4o for larch@yhetil.org; Tue, 24 Nov 2020 20:00:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khj9k-00009T-Cs for emacs-orgmode@gnu.org; Tue, 24 Nov 2020 19:59:36 -0500 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]:38892) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1khj9i-0007oY-6C for emacs-orgmode@gnu.org; Tue, 24 Nov 2020 19:59:36 -0500 Received: by mail-lj1-x231.google.com with SMTP id j10so482818lja.5 for ; Tue, 24 Nov 2020 16:59:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=StZ8MlMP2nKjCM19rU0srvSoTXQoEVElEV+Cdcz2kUk=; b=FM3mLLcDXZ96T5mgdXOToIxcGdhXxv22P8Dgw8etO/TwROTfWJ6dqfGZSPaUmn8u5g ck2etWLY57NdTymZGDUXBgscJBH9j0iv7AnTjeXNfVnx7Lq/3Int+VEdR7Ef8Jd/x+18 pz7YV5d5+Galx3gMxzBV2kbsa1+4LdB7Y7zg2yNAFJw4i4p9qTk2AnHRhetBcImymV8q mEyy9yGzj+SkL2Fi9QDGXW+szhqmgNtQuwZ/7vm034rORHe4eWWGBj9mW+P+ZKeiZwFk VvEn3k6YIx95IxKngF3jF3zyZvBkOWKfQj4VqDCQ0BGubgiE/mmPxsl9qrlVTOWArJW4 t1iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=StZ8MlMP2nKjCM19rU0srvSoTXQoEVElEV+Cdcz2kUk=; b=YSsD8NTw30G3aIa8HTj4BmvgKms2vbZGlCKfZKG3tMdnzDPbWkl7S8i8bo6khKxlNh I/6cCzL4fStNG4RsDVAaJHjP/diwFwZlV+WJnxGbgX8ziMmgTM9Ha03i3H8VCDMN5K7j WVcYoU+rOBgqzqswaVHB+qz9RVuRc/hHiwCx+lrw4aA0bP2kQfPDhjEA7LLLBmBfI5mi B+97/YstLVu0q+s4V2Dq5YE5uTo50nJ2At2R2Qv2QttPhx5E8lCHC17Ar0nkZwcXP+yB H/NKCAZSVFc+cihDePMnZkZcQnBLwXVBNUurD1ZW+Qy/WtdnZ1wXZKmTvzSTV+vi/T4q oYGQ== X-Gm-Message-State: AOAM532rcE4kSznXd7E769qiVi3vewIMjkIHXEubkqhAf1hOsn9dWsDv dF28yvl9WFQLtPylss4WwzC84lgiMbEEt4wYEI6LiLEBL4DLCw== X-Google-Smtp-Source: ABdhPJyAGOk4q2bmb83/WgT7Kf1qhXX2/SNDsjUGFF50dj3I5N1VyGy8Nsuc2rMuScnqPa0lU0O70VATV2QYUJxTV/E= X-Received: by 2002:a2e:b4d6:: with SMTP id r22mr340357ljm.179.1606265971051; Tue, 24 Nov 2020 16:59:31 -0800 (PST) MIME-Version: 1.0 From: Gennady Uraltsev Date: Tue, 24 Nov 2020 19:59:15 -0500 Message-ID: Subject: Bug: org-highlight-latex-and-related script breaks tag fontification [9.3 (release_9.3 @ c:/tools/msys64/mingw64/share/emacs/27.1/lisp/org/)] To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000009e8f8e05b4e3f0bc" Received-SPF: pass client-ip=2a00:1450:4864:20::231; envelope-from=gennady.uraltsev@gmail.com; helo=mail-lj1-x231.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=FM3mLLcD; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: ml9pjEMmuaqW --0000000000009e8f8e05b4e3f0bc Content-Type: text/plain; charset="UTF-8" Hello, Setting the variable "org-highlight-latex-and-related" to include "script" breaks fontification of tags with un underscore. To reproduce make a .emacs file that contains only: (setq org-highlight-latex-and-related '(script)) and open an org file containing * Heading 1 :test: * Heading 2 :test_case: * Heading 3 :test_case_2: Notice that that the parts of the tag "test" is fontified (info obtained using describe-char) using the faces: (org-tag org-level-1) while the "_case" string is fontified (info obtained using describe-char) using the faces: (org-latex-and-related org-tag org-level-1) The first face should not be there. I am actually not sure for what the "script" does in org-highlight-latex-and-related but I am configuring my org mode now so I'll figure it out... Thanks! Gennady Emacs : GNU Emacs 27.1 (build 1, x86_64-w64-mingw32) of 2020-08-11 Package: Org mode version 9.3 (release_9.3 @ c:/tools/msys64/mingw64/share/emacs/27.1/lisp/org/) current state: ============== (setq org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-link-shell-confirm-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-archive-hook '(org-attach-archive-delete-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-metaup-hook '(org-babel-load-in-session-maybe) org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-highlight-latex-and-related '(script) org-occur-hook '(org-first-headline-recenter) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("attachment" :follow org-attach-open-link :export org-attach-export-link :complete org-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow eww :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[257 "\301\300\302 Q!\207" ["news" browse-url ":"] 5 "\n\n(fn URL)"] ) ("mailto" :follow #[257 "\301\300\302 Q!\207" ["mailto" browse-url ":"] 5 "\n\n(fn URL)"] ) ("https" :follow #[257 "\301\300\302 Q!\207" ["https" browse-url ":"] 5 "\n\n(fn URL)"] ) ("http" :follow #[257 "\301\300\302 Q!\207" ["http" browse-url ":"] 5 "\n\n(fn URL)"] ) ("ftp" :follow #[257 "\301\300\302 Q!\207" ["ftp" browse-url ":"] 5 "\n\n(fn URL)"] ) ("help" :follow org-link--open-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp) ("doi" :follow org-link--open-doi)) org-link-elisp-confirm-function 'yes-or-no-p ) -- Gennady Uraltsev (https://guraltsev.gitlab.io) --0000000000009e8f8e05b4e3f0bc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

Setting the variab= le "org-highlight-latex-and-related" to include "script"= ; breaks fontification of tags with un underscore. To reproduce make a .ema= cs file that contains only:

(setq org-highlig= ht-latex-and-related '(script))

and open= an org file containing

* Heading 1=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:test:
=C2=A0
* Heading = 2=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:test_case:

* Heading 3=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:test_case_2:
<= /div>

Notice that that the parts of the tag "test&q= uot; is fontified (info obtained using describe-char) using the faces:
(org-tag org-level-1)
while the "_case" strin= g is fontified=C2=A0(info obtained using describe-char) using the faces:
(org-latex-and-related org-tag org-level-1)
The first= face should not be there.=C2=A0

I am actually not sure= for what the "script" does in=C2=A0org-highlight-latex-and-relat= ed but I am configuring my org mode now so I'll figure it out...
<= div>
Thanks!

Gennady

<= /div>
Emacs=C2=A0 : GNU Emacs 27.1 (build 1, x86_64-w64-mingw32)
<= div>=C2=A0of 2020-08-11
Package: Org mode version 9.3 (release_9.= 3 @ c:/tools/msys64/mingw64/share/emacs/27.1/lisp/org/)

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
=C2=A0org-src-mode-hook '(org-src-babel-config= ure-edit-buffer
=C2=A0 = =C2=A0 =C2=A0org-src-mode-configure-edit-buffer)
=C2=A0org-link-s= hell-confirm-function 'yes-or-no-p
=C2=A0org-metadown-hook &#= 39;(org-babel-pop-to-session-maybe)
=C2=A0org-clock-out-hook '= ;(org-clock-remove-empty-clock-drawer)
=C2=A0org-mode-hook '(= #[0 "\300\301\302\303\304$\207"
=C2=A0 =C2=A0[add-hook change-major-mode-hook org-show-al= l append local]
=C2=A0 = =C2=A05]
#[0 "\300= \301\302\303\304$\207"
=C2=A0 =C2=A0[add-hook change-major-mode-hook org-babel-show-result-all=
=C2=A0 =C2=A0 append lo= cal]
=C2=A0 =C2=A05]
org-babel-result-hide-spec= org-babel-hide-all-hashes)
=C2=A0org-archive-hook '(org-atta= ch-archive-delete-maybe)
=C2=A0org-confirm-elisp-link-function &#= 39;yes-or-no-p
=C2=A0org-agenda-before-write-hook '(org-agend= a-add-entry-text)
=C2=A0org-metaup-hook '(org-babel-load-in-s= ession-maybe)
=C2=A0org-bibtex-headline-format-function #[257 &qu= ot;\300 \236A\207" [:title] 3 "\n\n(fn ENTRY)"]
= =C2=A0org-babel-pre-tangle-hook '(save-buffer)
=C2=A0org-tab-= first-hook '(org-babel-hide-result-toggle-maybe
=C2=A0 =C2=A0 =C2=A0 org-babel-header-arg-exp= and)
=C2=A0org-highlight-latex-and-related '(script)
=C2=A0org-occur-hook '(org-first-headline-recenter)
=C2=A0o= rg-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-l= ines
=C2=A0 org-optimize= -window-after-visibility-change)
=C2=A0org-speed-command-hook = 9;(org-speed-command-activate
= =C2=A0 org-babel-speed-command-activate)
=C2=A0org-confirm= -shell-link-function 'yes-or-no-p
=C2=A0org-link-parameters &= #39;(("attachment" :follow org-attach-open-link :export
org-attach-export-link :complete=
org-attach-complete-li= nk)
=C2=A0 =C2=A0 =C2=A0= =C2=A0("id" :follow org-id-open)
=C2=A0 =C2=A0 =C2=A0 =C2=A0("eww" :follow eww= :store org-eww-store-link)
=C2=A0 =C2=A0 =C2=A0 =C2=A0("rmail" :follow org-rmail-open :s= tore
org-rmail-store-li= nk)
=C2=A0 =C2=A0 =C2=A0= =C2=A0("mhe" :follow org-mhe-open :store org-mhe-store-link)
=C2=A0 =C2=A0 =C2=A0 =C2=A0= ("irc" :follow org-irc-visit :store org-irc-store-link
= :export org-irc-export)
=C2=A0 =C2=A0 =C2=A0 =C2=A0("= ;info" :follow org-info-open :export org-info-export
:store org-info-store-link)
=C2=A0 =C2=A0 =C2=A0 =C2=A0("gn= us" :follow org-gnus-open :store
org-gnus-store-link)
=C2=A0 =C2=A0 =C2=A0 =C2=A0("docview" :follow org-doc= view-open :export
org-d= ocview-export :store org-docview-store-link)
=C2=A0 =C2=A0 =C2=A0 =C2=A0("bibtex" :follow= org-bibtex-open :store
org-bibtex-store-link)
= =C2=A0 =C2=A0 =C2=A0 =C2=A0("bbdb" :follow org-bbdb-open :export = org-bbdb-export
:comple= te org-bbdb-complete-link :store
= org-bbdb-store-link)
= =C2=A0 =C2=A0 =C2=A0 =C2=A0("w3m" :store org-w3m-store-lin= k) ("file+sys")
=C2=A0 =C2=A0 =C2=A0 =C2=A0("file+emacs") ("shell" :f= ollow org-link--open-shell)
=C2=A0 =C2=A0 =C2=A0 =C2=A0("news" :follow
#[257 "\301\300\302 Q!\207" [&q= uot;news" browse-url ":"] 5
=C2=A0 "\n\n(fn URL)"]
)
= =C2=A0 =C2=A0 =C2=A0 =C2=A0("mailto" :follow
<= span style=3D"white-space:pre"> #[257 "\301\300\302 Q!\207&qu= ot; ["mailto" browse-url ":"]
=C2=A0 5 "\n\n(fn URL)"]
)
=C2=A0 =C2=A0 =C2=A0 =C2=A0("https" :follow
#[257 "\301\300\302 Q!= \207" ["https" browse-url ":"]
=C2=A0 5 "\n\n(fn URL)"]
)
=C2=A0 =C2=A0 =C2=A0 =C2=A0("http" :follow=
#[257 "\301\300\3= 02 Q!\207" ["http" browse-url ":"] 5
=C2=A0 "\n\n(fn URL)"]
)
=C2=A0 =C2=A0 =C2=A0 =C2=A0("ftp" :fol= low
#[257 "\301\30= 0\302 Q!\207" ["ftp" browse-url ":"] 5
<= span style=3D"white-space:pre"> =C2=A0 "\n\n(fn URL)"]
)
=C2=A0 =C2=A0 =C2=A0 =C2=A0("help" = :follow org-link--open-help)
=C2=A0 =C2=A0 =C2=A0 =C2=A0("file" :complete org-link-comple= te-file)
=C2=A0 =C2=A0 = =C2=A0 =C2=A0("elisp" :follow org-link--open-elisp)
=C2=A0 =C2=A0 =C2=A0 =C2=A0("doi= " :follow org-link--open-doi))
=C2=A0org-link-elisp-confirm-= function 'yes-or-no-p
=C2=A0)

= --
Gennady Uraltsev
--0000000000009e8f8e05b4e3f0bc--