From unknown Thu Jun 19 16:24:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25563: 11.90; Many predicates in TeX-view-predicate-list-builtin don't work. Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sat, 28 Jan 2017 15:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25563 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 25563@debbugs.gnu.org X-Debbugs-Original-To: bug-auctex@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.148561906210545 (code B ref -1); Sat, 28 Jan 2017 15:58:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jan 2017 15:57:42 +0000 Received: from localhost ([127.0.0.1]:49311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXVNm-0002k0-26 for submit@debbugs.gnu.org; Sat, 28 Jan 2017 10:57:42 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46821) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXVNj-0002jk-7o for submit@debbugs.gnu.org; Sat, 28 Jan 2017 10:57:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXVNc-0003S9-7S for submit@debbugs.gnu.org; Sat, 28 Jan 2017 10:57:33 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45152) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cXVNc-0003Rb-4D for submit@debbugs.gnu.org; Sat, 28 Jan 2017 10:57:32 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXVNa-00064b-74 for bug-auctex@gnu.org; Sat, 28 Jan 2017 10:57:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXVNV-0003Ln-B1 for bug-auctex@gnu.org; Sat, 28 Jan 2017 10:57:30 -0500 Received: from ofb24.esk.m4.zaq.ne.jp ([220.152.48.23]:37228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXVNU-0003LZ-TN for bug-auctex@gnu.org; Sat, 28 Jan 2017 10:57:25 -0500 Received: from omx15.esk.m4.zaq.ne.jp ([220.152.49.29] [220.152.49.29]) by omx15.esk.m4.zaq.ne.jp with ESMTP id <20170128155715671.GQMT.3142.omx15.esk.m4.zaq.ne.jp@omx15.esk.m4.zaq.ne.jp> for ; Sun, 29 Jan 2017 00:57:15 +0900 Received: from smtpa13.esk.m4.zaq.ne.jp ([42.144.27.116] [42.144.27.116]) by smtpa13.esk.m4.zaq.ne.jp with ESMTP id <20170128155715613.GMYU.14010.smtpa13.esk.m4.zaq.ne.jp@smtpa13.esk.m4.zaq.ne.jp> for ; Sun, 29 Jan 2017 00:57:15 +0900 Received: from localhost (localhost [127.0.0.1]) by freebsd.vmware (Postfix) with ESMTP id 4C089139800 for ; Sun, 29 Jan 2017 00:57:14 +0900 (JST) X-Mailer: MH-E 8.6; MH 6.8.4.JP-3.05; GNU Emacs 25.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Sun, 29 Jan 2017 00:57:14 +0900 Message-ID: <6258.1485619034@localhost> From: Ikumi Keita X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Remember to cover the basics, that is, what you expected to happen and what in fact did happen. Be sure to consult the FAQ section in the manual before submitting a bug report. In addition check if the bug is reproducable with an up-to-date version of AUCTeX. So please upgrade to the version available from http://www.gnu.org/software/auctex/ if your installation is older than the one available from the web site. If the bug is triggered by a specific (La)TeX file, you should try to produce a minimal sample file showing the problem and include it in your report. Your report will be posted for the auctex package at the GNU bug tracker. Visit http://debbugs.gnu.org/cgi/pkgreport.cgi?pkg=3Dauctex to browse existing AUCTeX bugs. ------------------------------------------------------------------------ Most paper size related predicates in TeX-view-predicate-list-builtin like paper-a5 are ineffective now. How to confirm: 0. Start an emacs sesseion on X window. Make sure that xdvi is available on your system. 1. Open the following file with AUCTeX. ---------------------------------------------------------------------- \documentclass[a5paper]{article} \begin{document} dummy text \end{document} %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% TeX-PDF-mode: nil %%% End: ---------------------------------------------------------------------- 2. Type C-c C-c RET. The document is typeset and dvi file is produced. 3. Type C-c C-c RET. AUCTeX suggests "xdvi FILENAME.dvi" for the default View command. I expect that the option " -paper a5" is present in the suggested command according to the entry ("xdvi" ("%(o?)xdvi" (mode-io-correlate " -sourceposition \"%n %b\" -editor \"%cS\"") ((paper-a4 paper-portrait) " -paper a4") ((paper-a4 paper-landscape) " -paper a4r") ((paper-a5 paper-portrait) " -paper a5") ((paper-a5 paper-landscape) " -paper a5r") (paper-b5 " -paper b5") (paper-letter " -paper us") (paper-legal " -paper legal") (paper-executive " -paper 7.25x10.5in") " %d") "%(o?)xdvi") in TeX-view-program-list-builtin. However that is missing. The reason for this is that the current AUCTeX does not append the documentclass options to the active styles of the document. In the days that the predicates did function, the options were present in the output of `(TeX-style-list)'. However, evaluating `(TeX-style-list)' in the buffer of the example above yields just ("art10" "article" "latex2e" "FILENAME" "LATEX") , which lacks "a5paper". Thus the predicate ---------------------------------------------------------------------- (paper-a5 (TeX-match-style "\\`a5paper\\|a5comb\\'")) ---------------------------------------------------------------------- in TeX-view-predicate-list-builtin returns negative result. I suppose that the other predicates related to paper size in TeX-view-predicate-list-builtin do not function anymore, too. Skimming briefly over the commit log, this discrepancy seems to be introduced by the following commit (sorry for the mercurial log format): changeset: 6026:170a0f97c120 user: Mos=E8 Giordano date: Thu Apr 04 15:17:23 2013 +0200 summary: Better management of package options. Before this commit, the function LaTeX-auto-cleanup has the following lines: ---------------------------------------------------------------------- ;; Append them to the style list. (dolist (elt options) (add-to-list 'TeX-auto-file elt t)) ---------------------------------------------------------------------- I suppose these lines appended all the options of documentclass to the active style list, but they were lost in the current LaTeX-auto-cleanup. Emacs : GNU Emacs 25.1.1 (x86_64-unknown-freebsd11.0, GTK+ Version 3.18.8) of 2016-10-14 Package: 11.90 current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq AUCTeX-date "2017-01-10" window-system 'x LaTeX-version "2e" TeX-style-path '("/usr/local/var/auctex" "/usr/local/share/emacs/site-lisp/auctex/style" "/home/keita/.emacs.d/auctex/auto" "/home/keita/.emacs.d/auctex/style" "auto" "style") TeX-auto-save nil TeX-parse-self t TeX-master t TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) %(extraopts) %`%S%(PDFout)%(mode)%'= %t" TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX") ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX") ("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo %(extraopts) --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "amstex %(PDFout) %(extraopts) %`%S%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX") ("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once") ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion") ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX") ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber") ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file") ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command) ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t t :help "Generate PostScript file") ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t :help "Convert DVI file to PostScript") ("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t :help "Convert DVI file to PDF with dvipdfmx") ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t :help "Convert PostScript file to PDF") ("Index" "makeindex %s" TeX-run-index nil t :help "Run makeindex to create index file") ("Xindy" "texindy %s" TeX-run-command nil t :help "Run xindy to create index file") ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness") ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for common mistakes") ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document") ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files") ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete generated intermediate and output files") ("Other" "" TeX-run-command t t :help "Run an arbitrary command") ) ) From unknown Thu Jun 19 16:24:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25563: 11.90; Many predicates in TeX-view-predicate-list-builtin don't work. Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 02 Feb 2017 05:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25563 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: 25563@debbugs.gnu.org Received: via spool by 25563-submit@debbugs.gnu.org id=B25563.14860147752369 (code B ref 25563); Thu, 02 Feb 2017 05:53:01 +0000 Received: (at 25563) by debbugs.gnu.org; 2 Feb 2017 05:52:55 +0000 Received: from localhost ([127.0.0.1]:53750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZAKF-0000c9-7C for submit@debbugs.gnu.org; Thu, 02 Feb 2017 00:52:55 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:48185) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZAKD-0000c0-4w for 25563@debbugs.gnu.org; Thu, 02 Feb 2017 00:52:54 -0500 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id C2E1F2084A; Thu, 2 Feb 2017 00:52:50 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Thu, 02 Feb 2017 00:52:50 -0500 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=JM6jT0yut7p9DmNaLTEE4SCzt1Y=; b=KI+oTRhWN4ELMfwqUNq/ z5f7SDJIlwjajxfe1Zoyu4bVXXWPpKlAKgUUHAjI6sIlt1QiYNGpB10sNoYQeriW YlJMr1ZJAidAYNMCcMTjHDwEQKHEv/3qMtc2jAdbdX7GhkVv7svYcsyAQG6XzBew OaMiqmfkExGTpkLCmifVnDQ= X-ME-Sender: X-Sasl-enc: g3c9UIJ2jDGGcQUPsgCeIXPuGXhJXfd0LpxYeb2zQJlI 1486014769 Received: from thinkpad-t440p (p5dec8659.dip0.t-ipconnect.de [93.236.134.89]) by mail.messagingengine.com (Postfix) with ESMTPA id A83007E0E7; Thu, 2 Feb 2017 00:52:48 -0500 (EST) From: Tassilo Horn References: <6258.1485619034@localhost> Date: Thu, 02 Feb 2017 06:52:47 +0100 In-Reply-To: <6258.1485619034@localhost> (Ikumi Keita's message of "Sun, 29 Jan 2017 00:57:14 +0900") Message-ID: <87bmul5ec0.fsf@thinkpad-t440p> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Ikumi Keita writes: Hi Ikumi, > The reason for this is that the current AUCTeX does not append the > documentclass options to the active styles of the document. In the days > that the predicates did function, the options were present in the output > of `(TeX-style-list)'. However, evaluating `(TeX-style-list)' in the > buffer of the example above yields just > ("art10" "article" "latex2e" "FILENAME" "LATEX") > , which lacks "a5paper". Thus the predicate > ---------------------------------------------------------------------- > (paper-a5 > (TeX-match-style "\\`a5paper\\|a5comb\\'")) > ---------------------------------------------------------------------- > in TeX-view-predicate-list-builtin returns negative result. I suppose > that the other predicates related to paper size in > TeX-view-predicate-list-builtin do not function anymore, too. Oh, good catch. We've rewritten that a bit so that `TeX-style-list' is just that, the list of styles. In addition to that, there are now ,----[ C-h v LaTeX-provided-class-options RET ] | LaTeX-provided-class-options is a variable defined in =E2=80=98latex.el= =E2=80=99. | Its value is nil |=20 | Automatically becomes buffer-local when set. |=20 | Documentation: | Alist of options provided to LaTeX classes. | For each element, the CAR is the name of the class, the CDR is | the list of options provided to it. |=20 | E.g., its value will be | (("book" "a4paper" "11pt" "openany" "fleqn") | ...) | See also =E2=80=98LaTeX-provided-package-options=E2=80=99. `---- (and that one needs to be checked now) and ,----[ C-h v LaTeX-provided-package-options RET ] | LaTeX-provided-package-options is a variable defined in =E2=80=98latex.el= =E2=80=99. | Its value is nil |=20 | Automatically becomes buffer-local when set. |=20 | Documentation: | Alist of options provided to LaTeX packages. | For each element, the CAR is the name of the package, the CDR is | the list of options provided to it. |=20 | E.g., its value will be | (("babel" "german") | ("geometry" "a4paper" "top=3D2cm" "bottom=3D2cm" "left=3D2.5cm" "right= =3D2.5cm") | ...) | See also =E2=80=98LaTeX-provided-class-options=E2=80=99. `---- I'll see if I can fix it. And "landscape" is another document class option which is broken right now. Thanks for the report! Bye, Tassilo From unknown Thu Jun 19 16:24:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25563: 11.90; Many predicates in TeX-view-predicate-list-builtin don't work. Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 02 Feb 2017 06:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25563 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: 25563@debbugs.gnu.org Received: via spool by 25563-submit@debbugs.gnu.org id=B25563.14860175737094 (code B ref 25563); Thu, 02 Feb 2017 06:40:01 +0000 Received: (at 25563) by debbugs.gnu.org; 2 Feb 2017 06:39:33 +0000 Received: from localhost ([127.0.0.1]:53757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZB3M-0001qM-VE for submit@debbugs.gnu.org; Thu, 02 Feb 2017 01:39:33 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:59217) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZB3L-0001qE-H9 for 25563@debbugs.gnu.org; Thu, 02 Feb 2017 01:39:32 -0500 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id CD44D20A11; Thu, 2 Feb 2017 01:39:30 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Thu, 02 Feb 2017 01:39:30 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=du18pGCPOe+yiZ r0GC9sEY+rFaM=; b=alafayBu1GGcbfHzJvXV0qiz/tfXT3aIwdqb+6idm83Q9j sqBUa7mYpwafZg+96CSXsqJpCgpmkbt6BHtx18bl0KAFMc68h4vQOpCq/skhAHbH sMgc0LqqjMAtyIe4J9kQVoZCriI1M0P1PQ+9I8wTOI9SgW3Zy65oG93TyO1Z8= X-ME-Sender: X-Sasl-enc: yM1T4DJRNWjL3GJwwKCkD6wD8m+Nu2IYrbRH0oX1WNC9 1486017529 Received: from thinkpad-t440p (p5dec8659.dip0.t-ipconnect.de [93.236.134.89]) by mail.messagingengine.com (Postfix) with ESMTPA id 94B2C24591; Thu, 2 Feb 2017 01:38:49 -0500 (EST) From: Tassilo Horn References: <6258.1485619034@localhost> <87bmul5ec0.fsf@thinkpad-t440p> Date: Thu, 02 Feb 2017 07:38:47 +0100 In-Reply-To: <87bmul5ec0.fsf@thinkpad-t440p> (Tassilo Horn's message of "Thu, 02 Feb 2017 06:52:47 +0100") Message-ID: <877f595c7c.fsf@thinkpad-t440p> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Tassilo Horn writes: Hi Ikumi, > I'll see if I can fix it. And "landscape" is another document class > option which is broken right now. I think I've fixed this in commit c0f3659059a138aaf5fa610f2913035d63225bfb. For paper-a4 and paper-a5 I wasn't quite sure if at least some of the regexes there could also be styles/packages so there I check both styles and documentclass options. If you know better than me, feel free to make that more specific. Please report back if it works again. Bye, Tassilo From unknown Thu Jun 19 16:24:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25563: 11.90; Many predicates in TeX-view-predicate-list-builtin don't work. References: <6258.1485619034@localhost> Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 02 Feb 2017 13:59:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25563 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Tassilo Horn Cc: 25563@debbugs.gnu.org Received: via spool by 25563-submit@debbugs.gnu.org id=B25563.148604391319825 (code B ref 25563); Thu, 02 Feb 2017 13:59:03 +0000 Received: (at 25563) by debbugs.gnu.org; 2 Feb 2017 13:58:33 +0000 Received: from localhost ([127.0.0.1]:53866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZHuD-00059h-HW for submit@debbugs.gnu.org; Thu, 02 Feb 2017 08:58:33 -0500 Received: from omx11.esk.m4.zaq.ne.jp ([220.152.48.5]:34816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZHuB-00059S-6F for 25563@debbugs.gnu.org; Thu, 02 Feb 2017 08:58:32 -0500 Received: from omx11.esk.m4.zaq.ne.jp ([220.152.49.34] [220.152.49.34]) by omx11.esk.m4.zaq.ne.jp with ESMTP id <20170202135824211.TDDA.3223.omx11.esk.m4.zaq.ne.jp@omx11.esk.m4.zaq.ne.jp>; Thu, 2 Feb 2017 22:58:24 +0900 Received: from smtpa23.esk.m4.zaq.ne.jp ([42.144.27.116] [42.144.27.116]) by smtpa23.esk.m4.zaq.ne.jp with ESMTP id <20170202135824163.NRUM.25126.smtpa23.esk.m4.zaq.ne.jp@smtpa23.esk.m4.zaq.ne.jp>; Thu, 2 Feb 2017 22:58:24 +0900 Received: from localhost (localhost [127.0.0.1]) by freebsd.vmware (Postfix) with ESMTP id CB0B2139800; Thu, 2 Feb 2017 22:58:23 +0900 (JST) In-reply-to: Your message of "Thu, 02 Feb 2017 07:38:47 +0100." <877f595c7c.fsf@thinkpad-t440p> X-Mailer: MH-E 8.6; MH 6.8.4.JP-3.05; GNU Emacs 25.1.1 Date: Thu, 02 Feb 2017 22:58:23 +0900 Message-ID: <43932.1486043903@localhost> From: Ikumi Keita X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) Hi Tassilo, > I think I've fixed this in commit > c0f3659059a138aaf5fa610f2913035d63225bfb. Thanks, the problem is fixed now. > For paper-a4 and paper-a5 I wasn't quite sure if at least some of the > regexes there could also be styles/packages so there I check both > styles and documentclass options. If you know better than me, feel > free to make that more specific. Sorry, I am not familiar about that issue either. And just some minor comments about the code related to the problem. 1. Isn't the the regexp \`a5paper\|a5comb\' for paper-a5 really intended as \`\(?:a5paper\|a5comb\)\' ? Similar question goes to the regexp for paper-a4, too. 2. `LaTeX-auto-cleanup' treats "package" and "Package" equally at the part (if (or (string-equal "package" class) (string-equal "Package" class)) . Thus the later part (cond (equal class "class") (add-to-list 'TeX-auto-file "latex2e")) shuold also treat "class" and "Class" equally, shouldn't it? The variable `LaTeX-auto-class-regexp-list' contains lines ;; \LoadClass[]{}[] ("\\\\Load\\(Class\\)\\(\\[\\([^#\\.%]*?\\)\\]\\)?{\\([^#\\.\n\r]+?\\)}" (3 4 1) LaTeX-auto-style) ;; \LoadClassWithOptions{}[] ("\\\\Load\\(Class\\)WithOptions\\(\\){\\([^#\\.\n\r]+?\\)}" (2 3 1) LaTeX-auto-style) , with capitalized word "Class". I attach a patch based on the above idea. Bye, Ikumi Keita diff -r c52403a42881 latex.el --- a/latex.el Wed Dec 21 22:58:09 2016 +0900 +++ b/latex.el Thu Feb 02 22:50:17 2017 +0900 @@ -1799,9 +1799,10 @@ (list (cons style options))))) ;; The third argument if "class" indicates LaTeX2e features. - (cond ((equal class "class") + (cond ((or (string-equal class "class") + (string-equal class "Class")) (add-to-list 'TeX-auto-file "latex2e")) - ((equal class "style") + ((string-equal class "style") (add-to-list 'TeX-auto-file "latex2")))))) ;; Cleanup optional arguments diff -r c52403a42881 tex.el --- a/tex.el Wed Dec 21 22:58:09 2016 +0900 +++ b/tex.el Thu Feb 02 22:50:17 2017 +0900 @@ -1173,12 +1173,12 @@ (not (and (fboundp 'LaTeX-provided-class-options) (LaTeX-match-class-option "\\`landscape\\'")))) (paper-a4 - (let ((regex "\\`a4paper\\|a4dutch\\|a4wide\\|sem-a4\\'")) + (let ((regex "\\`\\(?:a4paper\\|a4dutch\\|a4wide\\|sem-a4\\)\\'")) (or (TeX-match-style regex) (and (fboundp 'LaTeX-match-class-option) (LaTeX-match-class-option regex))))) (paper-a5 - (let ((regex "\\`a5paper\\|a5comb\\'")) + (let ((regex "\\`\\(?:a5paper\\|a5comb\\)\\'")) (or (TeX-match-style regex) (and (fboundp 'LaTeX-match-class-option) (LaTeX-match-class-option regex))))) From unknown Thu Jun 19 16:24:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25563: 11.90; Many predicates in TeX-view-predicate-list-builtin don't work. References: <6258.1485619034@localhost> Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 02 Feb 2017 14:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25563 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Tassilo Horn Cc: 25563@debbugs.gnu.org Received: via spool by 25563-submit@debbugs.gnu.org id=B25563.148604654123744 (code B ref 25563); Thu, 02 Feb 2017 14:43:01 +0000 Received: (at 25563) by debbugs.gnu.org; 2 Feb 2017 14:42:21 +0000 Received: from localhost ([127.0.0.1]:53891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZIab-0006At-JU for submit@debbugs.gnu.org; Thu, 02 Feb 2017 09:42:21 -0500 Received: from omx24.esk.m4.zaq.ne.jp ([220.152.48.13]:56197) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZIaZ-0006Af-3C for 25563@debbugs.gnu.org; Thu, 02 Feb 2017 09:42:19 -0500 Received: from omx24.esk.m4.zaq.ne.jp ([220.152.49.27] [220.152.49.27]) by omx24.esk.m4.zaq.ne.jp with ESMTP id <20170202144212329.PPTA.3216.omx24.esk.m4.zaq.ne.jp@omx24.esk.m4.zaq.ne.jp>; Thu, 2 Feb 2017 23:42:12 +0900 Received: from smtpa11.esk.m4.zaq.ne.jp ([42.144.27.116] [42.144.27.116]) by smtpa11.esk.m4.zaq.ne.jp with ESMTP id <20170202144212283.NZQU.32178.smtpa11.esk.m4.zaq.ne.jp@smtpa11.esk.m4.zaq.ne.jp>; Thu, 2 Feb 2017 23:42:12 +0900 Received: from localhost (localhost [127.0.0.1]) by freebsd.vmware (Postfix) with ESMTP id 08999139800; Thu, 2 Feb 2017 23:42:12 +0900 (JST) In-reply-to: Your message of "Thu, 02 Feb 2017 07:38:47 +0100." <877f595c7c.fsf@thinkpad-t440p> X-Mailer: MH-E 8.6; MH 6.8.4.JP-3.05; GNU Emacs 25.1.1 Date: Thu, 02 Feb 2017 23:42:11 +0900 Message-ID: <44960.1486046531@localhost> From: Ikumi Keita X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > I attach a patch based on the above idea. Added trivial fix for coherency (provided -> match). Bye, Ikumi Keita diff -r c52403a42881 latex.el --- a/latex.el Wed Dec 21 22:58:09 2016 +0900 +++ b/latex.el Thu Feb 02 23:40:09 2017 +0900 @@ -1799,9 +1799,10 @@ (list (cons style options))))) ;; The third argument if "class" indicates LaTeX2e features. - (cond ((equal class "class") + (cond ((or (string-equal class "class") + (string-equal class "Class")) (add-to-list 'TeX-auto-file "latex2e")) - ((equal class "style") + ((string-equal class "style") (add-to-list 'TeX-auto-file "latex2")))))) ;; Cleanup optional arguments diff -r c52403a42881 tex.el --- a/tex.el Wed Dec 21 22:58:09 2016 +0900 +++ b/tex.el Thu Feb 02 23:40:09 2017 +0900 @@ -1167,18 +1167,18 @@ (mode-io-correlate TeX-source-correlate-mode) (paper-landscape - (and (fboundp 'LaTeX-provided-class-options) + (and (fboundp 'LaTeX-match-class-options) (LaTeX-match-class-option "\\`landscape\\'"))) (paper-portrait - (not (and (fboundp 'LaTeX-provided-class-options) + (not (and (fboundp 'LaTeX-match-class-options) (LaTeX-match-class-option "\\`landscape\\'")))) (paper-a4 - (let ((regex "\\`a4paper\\|a4dutch\\|a4wide\\|sem-a4\\'")) + (let ((regex "\\`\\(?:a4paper\\|a4dutch\\|a4wide\\|sem-a4\\)\\'")) (or (TeX-match-style regex) (and (fboundp 'LaTeX-match-class-option) (LaTeX-match-class-option regex))))) (paper-a5 - (let ((regex "\\`a5paper\\|a5comb\\'")) + (let ((regex "\\`\\(?:a5paper\\|a5comb\\)\\'")) (or (TeX-match-style regex) (and (fboundp 'LaTeX-match-class-option) (LaTeX-match-class-option regex))))) From unknown Thu Jun 19 16:24:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25563: 11.90; Many predicates in TeX-view-predicate-list-builtin don't work. References: <6258.1485619034@localhost> Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 02 Feb 2017 15:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25563 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Tassilo Horn Cc: 25563@debbugs.gnu.org Received: via spool by 25563-submit@debbugs.gnu.org id=B25563.148604906927561 (code B ref 25563); Thu, 02 Feb 2017 15:25:02 +0000 Received: (at 25563) by debbugs.gnu.org; 2 Feb 2017 15:24:29 +0000 Received: from localhost ([127.0.0.1]:54160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZJFM-0007AS-QQ for submit@debbugs.gnu.org; Thu, 02 Feb 2017 10:24:28 -0500 Received: from omx22.esk.m4.zaq.ne.jp ([220.152.48.11]:54850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZJFK-0007AA-Gh for 25563@debbugs.gnu.org; Thu, 02 Feb 2017 10:24:27 -0500 Received: from omx22.esk.m4.zaq.ne.jp ([220.152.49.28] [220.152.49.28]) by omx22.esk.m4.zaq.ne.jp with ESMTP id <20170202152419350.SAKZ.3119.omx22.esk.m4.zaq.ne.jp@omx22.esk.m4.zaq.ne.jp>; Fri, 3 Feb 2017 00:24:19 +0900 Received: from smtpa12.esk.m4.zaq.ne.jp ([42.144.27.116] [42.144.27.116]) by smtpa12.esk.m4.zaq.ne.jp with ESMTP id <20170202152419301.NYTJ.3043.smtpa12.esk.m4.zaq.ne.jp@smtpa12.esk.m4.zaq.ne.jp>; Fri, 3 Feb 2017 00:24:19 +0900 Received: from localhost (localhost [127.0.0.1]) by freebsd.vmware (Postfix) with ESMTP id 01D2C139800; Fri, 3 Feb 2017 00:24:18 +0900 (JST) In-reply-to: Your message of "Thu, 02 Feb 2017 07:38:47 +0100." <877f595c7c.fsf@thinkpad-t440p> X-Mailer: MH-E 8.6; MH 6.8.4.JP-3.05; GNU Emacs 25.1.1 Date: Fri, 03 Feb 2017 00:24:18 +0900 Message-ID: <45445.1486049058@localhost> From: Ikumi Keita X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) >> I attach a patch based on the above idea. > Added trivial fix for coherency (provided -> match). Sorry for noise, I had to change "options" to "option", too. Bye, Ikumi Keita diff -r c52403a42881 latex.el --- a/latex.el Wed Dec 21 22:58:09 2016 +0900 +++ b/latex.el Fri Feb 03 00:21:58 2017 +0900 @@ -1799,9 +1799,10 @@ (list (cons style options))))) ;; The third argument if "class" indicates LaTeX2e features. - (cond ((equal class "class") + (cond ((or (string-equal class "class") + (string-equal class "Class")) (add-to-list 'TeX-auto-file "latex2e")) - ((equal class "style") + ((string-equal class "style") (add-to-list 'TeX-auto-file "latex2")))))) ;; Cleanup optional arguments diff -r c52403a42881 tex.el --- a/tex.el Wed Dec 21 22:58:09 2016 +0900 +++ b/tex.el Fri Feb 03 00:21:58 2017 +0900 @@ -1167,18 +1167,18 @@ (mode-io-correlate TeX-source-correlate-mode) (paper-landscape - (and (fboundp 'LaTeX-provided-class-options) + (and (fboundp 'LaTeX-match-class-option) (LaTeX-match-class-option "\\`landscape\\'"))) (paper-portrait - (not (and (fboundp 'LaTeX-provided-class-options) + (not (and (fboundp 'LaTeX-match-class-option) (LaTeX-match-class-option "\\`landscape\\'")))) (paper-a4 - (let ((regex "\\`a4paper\\|a4dutch\\|a4wide\\|sem-a4\\'")) + (let ((regex "\\`\\(?:a4paper\\|a4dutch\\|a4wide\\|sem-a4\\)\\'")) (or (TeX-match-style regex) (and (fboundp 'LaTeX-match-class-option) (LaTeX-match-class-option regex))))) (paper-a5 - (let ((regex "\\`a5paper\\|a5comb\\'")) + (let ((regex "\\`\\(?:a5paper\\|a5comb\\)\\'")) (or (TeX-match-style regex) (and (fboundp 'LaTeX-match-class-option) (LaTeX-match-class-option regex))))) From unknown Thu Jun 19 16:24:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25563: 11.90; Many predicates in TeX-view-predicate-list-builtin don't work. Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 02 Feb 2017 16:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25563 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: 25563@debbugs.gnu.org Received: via spool by 25563-submit@debbugs.gnu.org id=B25563.1486052826557 (code B ref 25563); Thu, 02 Feb 2017 16:28:01 +0000 Received: (at 25563) by debbugs.gnu.org; 2 Feb 2017 16:27:06 +0000 Received: from localhost ([127.0.0.1]:54184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZKDy-00008v-Bv for submit@debbugs.gnu.org; Thu, 02 Feb 2017 11:27:06 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:34144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZKDx-00008n-0V for 25563@debbugs.gnu.org; Thu, 02 Feb 2017 11:27:05 -0500 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 8C21D20BD1; Thu, 2 Feb 2017 11:27:04 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Thu, 02 Feb 2017 11:27:04 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=CIlRa6xfRdnE+Y I3O/4nmxbJHw4=; b=imu4lvAbJGwf+Cu5pkz0yg87Af+nm1/Hh9hC/Jr2Dn6kQG ciwe+NTgVjUihKvbjtzZVddXvUbLrD5nCNdVtF3Utsphz0B+ZsAIjTAmYf/Vs/W9 sFQyzwkP7kKzl5vxJ47nJAto40BUpi63N6VNFUe1KfOpU1jhk9g+6yV31KL0o= X-ME-Sender: X-Sasl-enc: 006vV7XWUM1QBSfOc+dcBjbzDLS8f0NKQnQx+ZeGWazS 1486052824 Received: from jiffyarch (j289989.servers.jiffybox.net [134.119.24.195]) by mail.messagingengine.com (Postfix) with ESMTPA id E5E267E65E; Thu, 2 Feb 2017 11:27:03 -0500 (EST) From: Tassilo Horn References: <43932.1486043903@localhost> Date: Thu, 02 Feb 2017 17:27:02 +0100 In-Reply-To: <43932.1486043903@localhost> (Ikumi Keita's message of "Thu, 02 Feb 2017 22:58:23 +0900") Message-ID: <87mve4d0dl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Ikumi Keita writes: Hi Ikumi, >> For paper-a4 and paper-a5 I wasn't quite sure if at least some of the >> regexes there could also be styles/packages so there I check both >> styles and documentclass options. If you know better than me, feel >> free to make that more specific. > > Sorry, I am not familiar about that issue either. Ok, no problem to keep checking for both. > And just some minor comments about the code related to the problem. > > 1. Isn't the the regexp \`a5paper\|a5comb\' for paper-a5 really intended > as \`\(?:a5paper\|a5comb\)\' ? Similar question goes to the regexp > for paper-a4, too. Oh, I didn't think about it. But after a short test it seems that foo\|bar is equivalent to \(foo\|bar\) and not to fo\(o\|b\)ar which you seem to expect (and which sounded more plausible to me, too). Anyway, IMO the shy group with its parens makes it more understandable to me, so please go ahead. > 2. `LaTeX-auto-cleanup' treats "package" and "Package" equally at the > part > (if (or (string-equal "package" class) > (string-equal "Package" class)) > . Thus the later part > (cond (equal class "class") > (add-to-list 'TeX-auto-file "latex2e")) > shuold also treat "class" and "Class" equally, shouldn't it? Yes, makes sense. Could you do me a favor and submit a one-in-all patch which also contains your changes from your later 2 changes with a ChangeLog-like commit message? Bye, Tassilo BTW: You are a contributor since a very long time (12 years!) and I completely trust your ability to not mess up things beyond repair. So I'd happily give you push access to our repository if you want to. Interested? From unknown Thu Jun 19 16:24:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25563: 11.90; Many predicates in TeX-view-predicate-list-builtin don't work. References: <6258.1485619034@localhost> Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Fri, 03 Feb 2017 10:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25563 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Tassilo Horn Cc: 25563@debbugs.gnu.org Received: via spool by 25563-submit@debbugs.gnu.org id=B25563.148611724523980 (code B ref 25563); Fri, 03 Feb 2017 10:21:02 +0000 Received: (at 25563) by debbugs.gnu.org; 3 Feb 2017 10:20:45 +0000 Received: from localhost ([127.0.0.1]:54474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZayz-0006Eh-8a for submit@debbugs.gnu.org; Fri, 03 Feb 2017 05:20:45 -0500 Received: from omx24.esk.m4.zaq.ne.jp ([220.152.48.13]:59365) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZayw-0006EQ-7Z for 25563@debbugs.gnu.org; Fri, 03 Feb 2017 05:20:43 -0500 Received: from omx24.esk.m4.zaq.ne.jp ([220.152.49.29] [220.152.49.29]) by omx24.esk.m4.zaq.ne.jp with ESMTP id <20170203102035057.ROKU.3216.omx24.esk.m4.zaq.ne.jp@omx24.esk.m4.zaq.ne.jp>; Fri, 3 Feb 2017 19:20:35 +0900 Received: from smtpa13.esk.m4.zaq.ne.jp ([126.2.53.138] [126.2.53.138]) by smtpa13.esk.m4.zaq.ne.jp with ESMTP id <20170203102035019.PLIM.14010.smtpa13.esk.m4.zaq.ne.jp@smtpa13.esk.m4.zaq.ne.jp>; Fri, 3 Feb 2017 19:20:35 +0900 Received: from localhost (localhost [127.0.0.1]) by freebsd.vmware (Postfix) with ESMTP id 4087F13982B; Fri, 3 Feb 2017 19:20:34 +0900 (JST) In-reply-to: Your message of "Thu\, 02 Feb 2017 17\:27\:02 +0100." <87mve4d0dl.fsf@gnu.org> X-Mailer: MH-E 8.6; MH 6.8.4.JP-3.05; GNU Emacs 25.1.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Fri, 03 Feb 2017 19:20:34 +0900 Message-ID: <1674.1486117234@localhost> From: Ikumi Keita X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --=-=-= Content-Type: text/plain Hi Tassilo, >> 1. Isn't the the regexp \`a5paper\|a5comb\' for paper-a5 really intended >> as \`\(?:a5paper\|a5comb\)\' ? Similar question goes to the regexp >> for paper-a4, too. > Oh, I didn't think about it. But after a short test it seems that > foo\|bar is equivalent to \(foo\|bar\) and not to fo\(o\|b\)ar which you > seem to expect (and which sounded more plausible to me, too). Ah, no, my concern is in the way how "\`" and "\'" are interpreted. The original regexp \`a5paper\|a5comb\' means "\`a5paper" or "a5comb\'", not "\`a5paper\'" or "\`a5comb\'". That is, \`a5paper\|a5comb\' matches with "a5paperXYZ" and "XYZa5comb" while \`\(?:a5paper\|a5comb\)\' does not. >> 2. `LaTeX-auto-cleanup' treats "package" and "Package" equally at the >> part >> (if (or (string-equal "package" class) >> (string-equal "Package" class)) >> . Thus the later part >> (cond (equal class "class") >> (add-to-list 'TeX-auto-file "latex2e")) >> shuold also treat "class" and "Class" equally, shouldn't it? > Yes, makes sense. > Could you do me a favor and submit a one-in-all patch which also > contains your changes from your later 2 changes with a ChangeLog-like > commit message? OK, the patch is attached at the last of this mail. > Bye, > Tassilo > BTW: You are a contributor since a very long time (12 years!) and I > completely trust your ability to not mess up things beyond repair. So > I'd happily give you push access to our repository if you want to. > Interested? Thank you very much. I would like to recieve that honor. Please tell me what I should do next. Regards, Ikumi Keita --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=diff Content-Description: small patch >From ikumi@ikumi.que.jp Fri Feb 03 19:12:26 2017 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PATCH] Fix minor problems X-Mercurial-Node: 74d3eda9719c056c2a758350afdcca19657640f3 X-Mercurial-Series-Index: 1 X-Mercurial-Series-Total: 1 Message-Id: <74d3eda9719c056c2a75.1486116746@localhost.my.domain> X-Mercurial-Series-Id: <74d3eda9719c056c2a75.1486116746@localhost.my.domain> User-Agent: Mercurial-patchbomb/4.0.1 Date: Fri, 03 Feb 2017 19:12:26 +0900 From: Ikumi Keita To: dummy * tex.el (TeX-view-predicate-list-builtin): Enclose whole alternatives in regexp with shy group in order that the effect of "\`" and "\'" covers all the alternatives. * latex.el (LaTeX-auto-cleanup): Regard "Class", in addition to "class", as an indicator of LaTeX2e document. diff --git a/latex.el b/latex.el --- a/latex.el +++ b/latex.el @@ -1799,9 +1799,10 @@ (list (cons style options))))) ;; The third argument if "class" indicates LaTeX2e features. - (cond ((equal class "class") + (cond ((or (string-equal class "class") + (string-equal class "Class")) (add-to-list 'TeX-auto-file "latex2e")) - ((equal class "style") + ((string-equal class "style") (add-to-list 'TeX-auto-file "latex2")))))) ;; Cleanup optional arguments diff --git a/tex.el b/tex.el --- a/tex.el +++ b/tex.el @@ -1167,18 +1167,18 @@ (mode-io-correlate TeX-source-correlate-mode) (paper-landscape - (and (fboundp 'LaTeX-provided-class-options) + (and (fboundp 'LaTeX-match-class-option) (LaTeX-match-class-option "\\`landscape\\'"))) (paper-portrait - (not (and (fboundp 'LaTeX-provided-class-options) + (not (and (fboundp 'LaTeX-match-class-option) (LaTeX-match-class-option "\\`landscape\\'")))) (paper-a4 - (let ((regex "\\`a4paper\\|a4dutch\\|a4wide\\|sem-a4\\'")) + (let ((regex "\\`\\(?:a4paper\\|a4dutch\\|a4wide\\|sem-a4\\)\\'")) (or (TeX-match-style regex) (and (fboundp 'LaTeX-match-class-option) (LaTeX-match-class-option regex))))) (paper-a5 - (let ((regex "\\`a5paper\\|a5comb\\'")) + (let ((regex "\\`\\(?:a5paper\\|a5comb\\)\\'")) (or (TeX-match-style regex) (and (fboundp 'LaTeX-match-class-option) (LaTeX-match-class-option regex))))) --=-=-=-- From unknown Thu Jun 19 16:24:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25563: 11.90; Many predicates in TeX-view-predicate-list-builtin don't work. Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Fri, 03 Feb 2017 11:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25563 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: 25563@debbugs.gnu.org Received: via spool by 25563-submit@debbugs.gnu.org id=B25563.148612067228975 (code B ref 25563); Fri, 03 Feb 2017 11:18:01 +0000 Received: (at 25563) by debbugs.gnu.org; 3 Feb 2017 11:17:52 +0000 Received: from localhost ([127.0.0.1]:54524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZbsG-0007XH-0v for submit@debbugs.gnu.org; Fri, 03 Feb 2017 06:17:52 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:60801) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZbsD-0007X7-IW for 25563@debbugs.gnu.org; Fri, 03 Feb 2017 06:17:50 -0500 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 07FB92073B; Fri, 3 Feb 2017 06:17:49 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Fri, 03 Feb 2017 06:17:49 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=zcVCWiFzYDayyH X9xP/AKmvX3g4=; b=aN0baFF7p0f+3HshxWqH7iYsrZFQIel/PK+okI8fTIczVb aGsAmz0k2kC5rE//uWuhv3e8kXpvnUF31pcy24wo4XvP7JWaCvTqmse1iDUfNw25 ofsFrMWbUHrBQQDiNOFwxnokdIpYwXG2Mt2j/Yp9X1rgFjkeZo4dqGtcp6hCg= X-ME-Sender: X-Sasl-enc: mJsX8EV7hL2DpgBkpNUcD9kHCw0wX+xuP1BNKl9+dwGj 1486120668 Received: from jiffyarch (j289989.servers.jiffybox.net [134.119.24.195]) by mail.messagingengine.com (Postfix) with ESMTPA id 63FD32414A; Fri, 3 Feb 2017 06:17:48 -0500 (EST) From: Tassilo Horn References: <1674.1486117234@localhost> Date: Fri, 03 Feb 2017 12:17:47 +0100 In-Reply-To: <1674.1486117234@localhost> (Ikumi Keita's message of "Fri, 03 Feb 2017 19:20:34 +0900") Message-ID: <8737fvwmjo.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Ikumi Keita writes: Hi Ikumi, >> Oh, I didn't think about it. But after a short test it seems that >> foo\|bar is equivalent to \(foo\|bar\) and not to fo\(o\|b\)ar which you >> seem to expect (and which sounded more plausible to me, too). > > Ah, no, my concern is in the way how "\`" and "\'" are interpreted. The > original regexp \`a5paper\|a5comb\' means > "\`a5paper" or "a5comb\'", > not > "\`a5paper\'" or "\`a5comb\'". > That is, \`a5paper\|a5comb\' matches with "a5paperXYZ" and "XYZa5comb" > while \`\(?:a5paper\|a5comb\)\' does not. Oh, of course you are right! >> BTW: You are a contributor since a very long time (12 years!) and I >> completely trust your ability to not mess up things beyond repair. So >> I'd happily give you push access to our repository if you want to. >> Interested? > > Thank you very much. I would like to recieve that honor. Please tell > me what I should do next. Great, welcome on board! First, you need a savannah account (https://savannah.gnu.org) if you don't have one already. In your account settings, you have to register your public SSH key which will be used for authentication by git. Go to the AUCTeX page (https://savannah.gnu.org/projects/auctex/) and apply for membership. I'll then accept and you are ready to push. Let's use this patch as test if your setup works, i.e., I won't commit and push it right now but you do it yourself after we've set everything up. The right git url to use with your savannah user name and SSH key is shown on https://savannah.gnu.org/git/?group=auctex when you are logged in. Bye, Tassilo From unknown Thu Jun 19 16:24:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25563: 11.90; Many predicates in TeX-view-predicate-list-builtin don't work. Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Fri, 03 Feb 2017 19:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25563 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: 25563@debbugs.gnu.org Received: via spool by 25563-submit@debbugs.gnu.org id=B25563.148614885525325 (code B ref 25563); Fri, 03 Feb 2017 19:08:02 +0000 Received: (at 25563) by debbugs.gnu.org; 3 Feb 2017 19:07:35 +0000 Received: from localhost ([127.0.0.1]:55361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZjCp-0006aP-2Q for submit@debbugs.gnu.org; Fri, 03 Feb 2017 14:07:35 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:55468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZjCn-0006aH-NL for 25563@debbugs.gnu.org; Fri, 03 Feb 2017 14:07:34 -0500 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 8693320596; Fri, 3 Feb 2017 14:07:31 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Fri, 03 Feb 2017 14:07:31 -0500 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=JkLgpkYGvzcb5iXnRBXsFNh+tXE=; b=foA4HvAjpLE3ytLQbGIZ WtOauaYh4BWHx+Cg0yzovapBTu69krk55gv0grGbysnY70awYeaX2nsQFEyrxMTq tYBwq7TT2Mfq+gGF5vN9kZ3V1bgJCiEspU5tvFwHwBVc2ajH2A2Xcr3/MNW0Z33O S+iQ39yHUZ05yczxvhEay7o= X-ME-Sender: X-Sasl-enc: 3Vi5yXKJiQM9euM6TeRP5W6FTrxMcxDreufIuOID6fp2 1486148848 Received: from thinkpad-t440p (p5dec8659.dip0.t-ipconnect.de [93.236.134.89]) by mail.messagingengine.com (Postfix) with ESMTPA id 1BE907E270; Fri, 3 Feb 2017 14:07:27 -0500 (EST) From: Tassilo Horn References: <1674.1486117234@localhost> <8737fvwmjo.fsf@gnu.org> Date: Fri, 03 Feb 2017 20:07:23 +0100 In-Reply-To: <8737fvwmjo.fsf@gnu.org> (Tassilo Horn's message of "Fri, 03 Feb 2017 12:17:47 +0100") Message-ID: <87zii3f5zo.fsf@thinkpad-t440p> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Tassilo Horn writes: > First, you need a savannah account (https://savannah.gnu.org) if you > don't have one already. In your account settings, you have to register > your public SSH key which will be used for authentication by git. Go to > the AUCTeX page (https://savannah.gnu.org/projects/auctex/) and apply > for membership. I'll then accept and you are ready to push. Accepted, you should be able to push your change. Viele Gr=C3=BC=C3=9Fe, Tassilo From unknown Thu Jun 19 16:24:11 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ikumi Keita Subject: bug#25563: closed (Re: bug#25563: 11.90; Many predicates in TeX-view-predicate-list-builtin don't work.) Message-ID: References: <87inonvicb.fsf@thinkpad-t440p> <6258.1485619034@localhost> X-Gnu-PR-Message: they-closed 25563 X-Gnu-PR-Package: auctex Reply-To: 25563@debbugs.gnu.org Date: Mon, 06 Feb 2017 08:24:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1486369442-14655-1" This is a multi-part message in MIME format... ------------=_1486369442-14655-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #25563: 11.90; Many predicates in TeX-view-predicate-list-builtin don't wor= k. which was filed against the auctex package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 25563@debbugs.gnu.org. --=20 25563: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D25563 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1486369442-14655-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 25563-done) by debbugs.gnu.org; 6 Feb 2017 08:23:07 +0000 Received: from localhost ([127.0.0.1]:57137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1caeZn-0003nM-89 for submit@debbugs.gnu.org; Mon, 06 Feb 2017 03:23:07 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:41643) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1caeZl-0003nE-Qz for 25563-done@debbugs.gnu.org; Mon, 06 Feb 2017 03:23:06 -0500 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id B8FA7207BB for <25563-done@debbugs.gnu.org>; Mon, 6 Feb 2017 03:23:03 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Mon, 06 Feb 2017 03:23:03 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=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=55vpyZHPXMRsth VgYHulomSHiLY=; b=Yj9rwIqsCUBuMYSlyJ7XbWw56TwGU/2gck0M9F3mfH6HcR By032Uf/5QNr15Z/jc5+GGYJJ2tsbuNgyZ69ZMBDqD2s7EZlFDBEyoP1eOSfyY6Z mM9dLT5DZkratArOIKZC3kmVsh2RvYHOPNs9q0zCJG70XfHlPhTHEAzj72okE= X-ME-Sender: X-Sasl-enc: 7SyUD7me6txaL+cwisqoYbFq7LmiAE97p9bT1X7fsLYN 1486369383 Received: from thinkpad-t440p (p5dec8659.dip0.t-ipconnect.de [93.236.134.89]) by mail.messagingengine.com (Postfix) with ESMTPA id 08996244D9 for <25563-done@debbugs.gnu.org>; Mon, 6 Feb 2017 03:23:02 -0500 (EST) From: Tassilo Horn To: 25563-done@debbugs.gnu.org Subject: Re: bug#25563: 11.90; Many predicates in TeX-view-predicate-list-builtin don't work. References: <1674.1486117234@localhost> <8737fvwmjo.fsf@gnu.org> <87zii3f5zo.fsf@thinkpad-t440p> Date: Mon, 06 Feb 2017 09:23:00 +0100 In-Reply-To: <87zii3f5zo.fsf@thinkpad-t440p> (Tassilo Horn's message of "Fri, 03 Feb 2017 20:07:23 +0100") Message-ID: <87inonvicb.fsf@thinkpad-t440p> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 25563-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Closing this bug as Ikumi has pushed his fix. ------------=_1486369442-14655-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Jan 2017 15:57:42 +0000 Received: from localhost ([127.0.0.1]:49311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXVNm-0002k0-26 for submit@debbugs.gnu.org; Sat, 28 Jan 2017 10:57:42 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46821) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXVNj-0002jk-7o for submit@debbugs.gnu.org; Sat, 28 Jan 2017 10:57:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXVNc-0003S9-7S for submit@debbugs.gnu.org; Sat, 28 Jan 2017 10:57:33 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45152) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cXVNc-0003Rb-4D for submit@debbugs.gnu.org; Sat, 28 Jan 2017 10:57:32 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXVNa-00064b-74 for bug-auctex@gnu.org; Sat, 28 Jan 2017 10:57:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXVNV-0003Ln-B1 for bug-auctex@gnu.org; Sat, 28 Jan 2017 10:57:30 -0500 Received: from ofb24.esk.m4.zaq.ne.jp ([220.152.48.23]:37228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXVNU-0003LZ-TN for bug-auctex@gnu.org; Sat, 28 Jan 2017 10:57:25 -0500 Received: from omx15.esk.m4.zaq.ne.jp ([220.152.49.29] [220.152.49.29]) by omx15.esk.m4.zaq.ne.jp with ESMTP id <20170128155715671.GQMT.3142.omx15.esk.m4.zaq.ne.jp@omx15.esk.m4.zaq.ne.jp> for ; Sun, 29 Jan 2017 00:57:15 +0900 Received: from smtpa13.esk.m4.zaq.ne.jp ([42.144.27.116] [42.144.27.116]) by smtpa13.esk.m4.zaq.ne.jp with ESMTP id <20170128155715613.GMYU.14010.smtpa13.esk.m4.zaq.ne.jp@smtpa13.esk.m4.zaq.ne.jp> for ; Sun, 29 Jan 2017 00:57:15 +0900 Received: from localhost (localhost [127.0.0.1]) by freebsd.vmware (Postfix) with ESMTP id 4C089139800 for ; Sun, 29 Jan 2017 00:57:14 +0900 (JST) To: bug-auctex@gnu.org Subject: 11.90; Many predicates in TeX-view-predicate-list-builtin don't work. X-Mailer: MH-E 8.6; MH 6.8.4.JP-3.05; GNU Emacs 25.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Sun, 29 Jan 2017 00:57:14 +0900 Message-ID: <6258.1485619034@localhost> From: Ikumi Keita X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Remember to cover the basics, that is, what you expected to happen and what in fact did happen. Be sure to consult the FAQ section in the manual before submitting a bug report. In addition check if the bug is reproducable with an up-to-date version of AUCTeX. So please upgrade to the version available from http://www.gnu.org/software/auctex/ if your installation is older than the one available from the web site. If the bug is triggered by a specific (La)TeX file, you should try to produce a minimal sample file showing the problem and include it in your report. Your report will be posted for the auctex package at the GNU bug tracker. Visit http://debbugs.gnu.org/cgi/pkgreport.cgi?pkg=3Dauctex to browse existing AUCTeX bugs. ------------------------------------------------------------------------ Most paper size related predicates in TeX-view-predicate-list-builtin like paper-a5 are ineffective now. How to confirm: 0. Start an emacs sesseion on X window. Make sure that xdvi is available on your system. 1. Open the following file with AUCTeX. ---------------------------------------------------------------------- \documentclass[a5paper]{article} \begin{document} dummy text \end{document} %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% TeX-PDF-mode: nil %%% End: ---------------------------------------------------------------------- 2. Type C-c C-c RET. The document is typeset and dvi file is produced. 3. Type C-c C-c RET. AUCTeX suggests "xdvi FILENAME.dvi" for the default View command. I expect that the option " -paper a5" is present in the suggested command according to the entry ("xdvi" ("%(o?)xdvi" (mode-io-correlate " -sourceposition \"%n %b\" -editor \"%cS\"") ((paper-a4 paper-portrait) " -paper a4") ((paper-a4 paper-landscape) " -paper a4r") ((paper-a5 paper-portrait) " -paper a5") ((paper-a5 paper-landscape) " -paper a5r") (paper-b5 " -paper b5") (paper-letter " -paper us") (paper-legal " -paper legal") (paper-executive " -paper 7.25x10.5in") " %d") "%(o?)xdvi") in TeX-view-program-list-builtin. However that is missing. The reason for this is that the current AUCTeX does not append the documentclass options to the active styles of the document. In the days that the predicates did function, the options were present in the output of `(TeX-style-list)'. However, evaluating `(TeX-style-list)' in the buffer of the example above yields just ("art10" "article" "latex2e" "FILENAME" "LATEX") , which lacks "a5paper". Thus the predicate ---------------------------------------------------------------------- (paper-a5 (TeX-match-style "\\`a5paper\\|a5comb\\'")) ---------------------------------------------------------------------- in TeX-view-predicate-list-builtin returns negative result. I suppose that the other predicates related to paper size in TeX-view-predicate-list-builtin do not function anymore, too. Skimming briefly over the commit log, this discrepancy seems to be introduced by the following commit (sorry for the mercurial log format): changeset: 6026:170a0f97c120 user: Mos=E8 Giordano date: Thu Apr 04 15:17:23 2013 +0200 summary: Better management of package options. Before this commit, the function LaTeX-auto-cleanup has the following lines: ---------------------------------------------------------------------- ;; Append them to the style list. (dolist (elt options) (add-to-list 'TeX-auto-file elt t)) ---------------------------------------------------------------------- I suppose these lines appended all the options of documentclass to the active style list, but they were lost in the current LaTeX-auto-cleanup. Emacs : GNU Emacs 25.1.1 (x86_64-unknown-freebsd11.0, GTK+ Version 3.18.8) of 2016-10-14 Package: 11.90 current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq AUCTeX-date "2017-01-10" window-system 'x LaTeX-version "2e" TeX-style-path '("/usr/local/var/auctex" "/usr/local/share/emacs/site-lisp/auctex/style" "/home/keita/.emacs.d/auctex/auto" "/home/keita/.emacs.d/auctex/style" "auto" "style") TeX-auto-save nil TeX-parse-self t TeX-master t TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) %(extraopts) %`%S%(PDFout)%(mode)%'= %t" TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX") ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX") ("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo %(extraopts) --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "amstex %(PDFout) %(extraopts) %`%S%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX") ("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once") ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion") ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX") ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber") ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file") ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command) ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t t :help "Generate PostScript file") ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t :help "Convert DVI file to PostScript") ("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t :help "Convert DVI file to PDF with dvipdfmx") ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t :help "Convert PostScript file to PDF") ("Index" "makeindex %s" TeX-run-index nil t :help "Run makeindex to create index file") ("Xindy" "texindy %s" TeX-run-command nil t :help "Run xindy to create index file") ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness") ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for common mistakes") ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document") ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files") ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete generated intermediate and output files") ("Other" "" TeX-run-command t t :help "Run an arbitrary command") ) ) ------------=_1486369442-14655-1--