From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#24868: 26.0.50; LaTeX-verbatim-macros-with-delims-local isn't taken into account Date: Thu, 03 Nov 2016 19:35:36 +0100 Message-ID: <87r36so1hj.fsf@gnu.org> References: <834m3omobd.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1478198214 11169 195.159.176.226 (3 Nov 2016 18:36:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 3 Nov 2016 18:36:54 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel , 24868@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 03 19:36:50 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c2Mrx-0006QL-Or for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Nov 2016 19:36:09 +0100 Original-Received: from localhost ([::1]:34522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2Ms0-0005wo-LJ for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Nov 2016 14:36:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2Mrt-0005vX-WC for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2016 14:36:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2Mrq-0007k0-QL for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2016 14:36:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54676) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2Mrq-0007jr-Mg for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2016 14:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c2Mrq-0001TH-ES for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2016 14:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Nov 2016 18:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24868 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24868-submit@debbugs.gnu.org id=B24868.14781981425624 (code B ref 24868); Thu, 03 Nov 2016 18:36:02 +0000 Original-Received: (at 24868) by debbugs.gnu.org; 3 Nov 2016 18:35:42 +0000 Original-Received: from localhost ([127.0.0.1]:41842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c2MrW-0001Se-0P for submit@debbugs.gnu.org; Thu, 03 Nov 2016 14:35:42 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:56197) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c2MrU-0001SV-RJ for 24868@debbugs.gnu.org; Thu, 03 Nov 2016 14:35:41 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 0295620C5B; Thu, 3 Nov 2016 14:35:39 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Thu, 03 Nov 2016 14:35:39 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=iz0nES5YacFalOOCtyD6UdIvgdk=; b=EkKCbLmZukb2sOdEOAIz mDtZjBIhC8rFC+Pn+Lv1utLxJ25q2gA6n8sTqT5umQYQvCqE2jvU2pJC3bReR91+ EcAR0H7Bcb8Yc0+eZ5S9dNeAj9SuwUQOMreBs2PzxhlxdNSC+150iSvohu2BWa5C SxpzeJrN89UU7rjTCJL8G2Y= X-ME-Sender: X-Sasl-enc: SM/9AQSd24QUtBXU9Zh/zkVFLdIjDen1mCR0UVcSFBAn 1478198137 Original-Received: from thinkpad-t440p (p2e5045b1.dip0.t-ipconnect.de [46.80.69.177]) by mail.messagingengine.com (Postfix) with ESMTPA id A02CACC0B9; Thu, 3 Nov 2016 14:35:37 -0400 (EDT) In-Reply-To: <834m3omobd.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 03 Nov 2016 20:05:26 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:125308 Archived-At: Eli Zaretskii writes: >> Starting from emacs -Q with (add-to-list 'auto-mode-alist '("\\.tex$" >> . LaTeX-mode)), opening the attached file produces incorrect >> highlighting. This is due to LaTeX-verbatim-macros-with-delims-local >> not being applied properly. > > Maybe I'm blind, but I seem to be unable to reproduce this. Can you > tell which highlighting is incorrect, i.e. what should happen and what > does happen? > > Also, in what version of Emacs did this work? I guess Clement is actually reporting an AUCTeX bug and accidentally used `report-emacs-bug' instead of `TeX-submit-bug-report'. And Cl=C3=A9ment is right. With the current AUCTeX version modifying `LaTeX-verbatim-macros-with-delims-local' and friends as a file-local or directory-local variable doesn't refresh fontification. Until now, these variables have been meant mostly for style file authors, and when a style is loaded, fontification will be recomputed. But Cl=C3=A9ment's use-case is valid, of course. So Eli, (1) can we move that bug to the auctex debbugs category? (2) there's no hook-like thing that would be run whenever some specific variable is modified due to file-local or directory-local variables, no? So I guess the right way to make Cl=C3=A9ment's use-case work was = to provide functions for modifying those variables that can be run from an eval: local variables block and then refresh the fontification if needed, right? Bye, Tassilo