From unknown Fri Jun 20 18:21:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#65195 <65195@debbugs.gnu.org> To: bug#65195 <65195@debbugs.gnu.org> Subject: Status: 13.2.1; (La)TeX-fold-math-spec-list have the wrong custom type Reply-To: bug#65195 <65195@debbugs.gnu.org> Date: Sat, 21 Jun 2025 01:21:11 +0000 retitle 65195 13.2.1; (La)TeX-fold-math-spec-list have the wrong custom type reassign 65195 auctex submitter 65195 Tony Zorman severity 65195 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 10 04:50:46 2023 Received: (at submit) by debbugs.gnu.org; 10 Aug 2023 08:50:46 +0000 Received: from localhost ([127.0.0.1]:41325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qU1NU-0005Ur-IM for submit@debbugs.gnu.org; Thu, 10 Aug 2023 04:50:46 -0400 Received: from lists.gnu.org ([2001:470:142::17]:41474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTxYy-0006tK-I1 for submit@debbugs.gnu.org; Thu, 10 Aug 2023 00:46:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTxYt-0001s6-3c for bug-auctex@gnu.org; Thu, 10 Aug 2023 00:46:15 -0400 Received: from mout-p-202.mailbox.org ([2001:67c:2050:0:465::202]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1qTxYq-0004kG-Qi for bug-auctex@gnu.org; Thu, 10 Aug 2023 00:46:14 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4RLvWf5tGDz9tcj for ; Thu, 10 Aug 2023 06:46:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1691642766; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=ngrRh75xwF+dht9h019rHR5+CzRZLO/d2jnJbhteO28=; b=Zvg5ct5ZokX7SqKD/uwfTkV08PYaBm6YOVxmrcTWmel80mjfC5nkR/csPGNpSb6dMgTa+z aAilELSLK9EPcnTp6tJcvRLrpCiNL8l5rx45gDUdwDBlWDVAfg3d4YmVl7mbwbaIJdMnl2 k+D+WIUOeJ8yisT86IRHwPPeTSsdNUvLISZ/C49kAkzaz2xifjke7K8Xo5EptQuiD4pnNP yoZEnYA4OOxxVq/bqb8HSAuMJl/H71HLgg0VhvogSqnHFSIGfVmdMRjY2SdDI0LOA513Yl v58FLRmw8bm2CVjue8Tjm2oW5EQTqWSPmM9rzKt2UegZ8VsWXdzj5Z2lJWmPqQ== From: Tony Zorman To: bug-auctex@gnu.org Subject: 13.2.1; (La)TeX-fold-math-spec-list have the wrong custom type Date: Thu, 10 Aug 2023 06:46:04 +0200 Message-ID: <87pm3vo67n.fsf@hyperspace> MIME-Version: 1.0 Content-Type: text/plain X-MBO-RS-ID: 12353e9476825ebcd75 X-MBO-RS-META: qmnjj98mdke3qpg7hfbs3stw1fn8sck6 Received-SPF: pass client-ip=2001:67c:2050:0:465::202; envelope-from=tonyzorman@mailbox.org; helo=mout-p-202.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 10 Aug 2023 04:50:43 -0400 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 (/) Hi, the custom type for `(La)TeX-fold-math-spec-list' is (repeat (group (choice (string :tag "Display String") (integer :tag "Number of argument" :value 1)) (repeat :tag "Math Macros" (string)))) However, the following is a perfectly valid definition (setopt TeX-fold-math-spec-list `((,(lambda (word) word) ("mathbf")))) (the code to handle functions is in `TeX-fold-hide-item'). Currently, the `setopt' macro throws some warning, because a function is not part of the type (presumably this was forgotten). I propose to have a type closer to what `TeX-fold-macro-spec-list' has: (repeat (group (choice (string :tag "Display String") (integer :tag "Number of argument" :value 1) (function :tag "Function to execute")) (repeat :tag "Math Macros" (string)))) The relevant functions called, like `TeX-fold-make-overlay' would also have to have their documentation adjusted. I can prepare a small patch, or someone can commit this directly, whatever people feel like is easier. Thanks, Tony --- I don't think this is very relevant, but I'll leave what `M-x --- TeX-submit-bug-report' generated here. Emacs : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-musl, cairo version 1.16.0) of 2023-08-03 Package: 13.2.1 current state: ============== (setq AUCTeX-date "2023-07-20" window-system 'x LaTeX-version "2e" TeX-style-path '("~/.emacs.d/auctex" "/home/slot/.config/emacs/elpa/auctex-13.2.1/style" "/home/slot/.config/emacs/auctex/auto" "/home/slot/.config/emacs/auctex/style" "auto" "style") TeX-auto-save t TeX-parse-self t TeX-master t TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) %`%(extraopts) %S%(PDFout)%(mode)%' %(output-dir) %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) %(o-dir) %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo %(extraopts) %(o-dir) --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "amstex %(PDFout) %`%(extraopts) %S%(mode)%' %(output-dir) %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 %(O?aux)" TeX-run-BibTeX nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode context-mode) :help "Run BibTeX") ("Biber" "biber %(output-dir) %s" TeX-run-Biber nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run Biber") ("Texindex" "texindex %s.??" TeX-run-command nil (texinfo-mode) :help "Run Texindex") ("Texi2dvi" "%(PDF)texi2dvi %t" TeX-run-command nil (texinfo-mode) :help "Run Texi2dvi or Texi2pdf") ("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 (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Generate PostScript file") ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Convert DVI file to PostScript") ("Dvipdfmx" "dvipdfmx -o %(O?pdf) %d" TeX-run-dvipdfmx nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Convert DVI file to PDF with dvipdfmx") ("Ps2pdf" "ps2pdf %f %(O?pdf)" TeX-run-ps2pdf nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Convert PostScript file to PDF") ("Glossaries" "makeglossaries %(d-dir) %s" TeX-run-command nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run makeglossaries to create glossary file") ("Index" "makeindex %(O?idx)" TeX-run-index nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run makeindex to create index file") ("upMendex" "upmendex %(O?idx)" TeX-run-index t (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run upmendex to create index file") ("Xindy" "texindy %s" TeX-run-command nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :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")) ) -- Tony Zorman | https://tony-zorman.com/ From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 12 01:10:42 2023 Received: (at 65195) by debbugs.gnu.org; 12 Aug 2023 05:10:42 +0000 Received: from localhost ([127.0.0.1]:48410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUgte-00060x-C4 for submit@debbugs.gnu.org; Sat, 12 Aug 2023 01:10:42 -0400 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:51572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUgtc-00060l-73 for 65195@debbugs.gnu.org; Sat, 12 Aug 2023 01:10:42 -0400 Received: from localhost (p887025-ipngn4201yosida.nagano.ocn.ne.jp [114.175.41.25]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 7B6395C; Sat, 12 Aug 2023 14:10:37 +0900 (JST) From: Ikumi Keita To: Tony Zorman Subject: Re: bug#65195: 13.2.1; (La)TeX-fold-math-spec-list have the wrong custom type In-reply-to: <87pm3vo67n.fsf@hyperspace> References: <87pm3vo67n.fsf@hyperspace> Comments: In-reply-to Tony Zorman via bug-auctex via Bug reporting list for AUCTeX message dated "Thu, 10 Aug 2023 06:46:04 +0200." X-Mailer: MH-E 8.6+git; nmh 1.7.1; Emacs 29.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29308.1691817030.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Sat, 12 Aug 2023 14:10:30 +0900 Message-ID: <29311.1691817030@localhost> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 65195 Cc: 65195@debbugs.gnu.org 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: -1.0 (-) Hi Tony, >>>>> Tony Zorman via bug-auctex via Bug reporting list for AUCTeX writes: > Hi, > the custom type for `(La)TeX-fold-math-spec-list' is > (repeat (group (choice (string :tag "Display String") > (integer :tag "Number of argument" :value 1)) > (repeat :tag "Math Macros" (string)))) > However, the following is a perfectly valid definition > (setopt TeX-fold-math-spec-list > `((,(lambda (word) word) ("mathbf")))) > (the code to handle functions is in `TeX-fold-hide-item'). > Currently, the `setopt' macro throws some warning, because a function is > not part of the type (presumably this was forgotten). I propose to have > a type closer to what `TeX-fold-macro-spec-list' has: > (repeat (group (choice (string :tag "Display String") > (integer :tag "Number of argument" :value 1) > (function :tag "Function to execute")) > (repeat :tag "Math Macros" (string)))) > The relevant functions called, like `TeX-fold-make-overlay' would also > have to have their documentation adjusted. Thanks for your report, I think it is actually a bug. I pushed the fix to the git repo according to your proposal. Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 12 01:11:32 2023 Received: (at control) by debbugs.gnu.org; 12 Aug 2023 05:11:33 +0000 Received: from localhost ([127.0.0.1]:48414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUguS-00062n-OO for submit@debbugs.gnu.org; Sat, 12 Aug 2023 01:11:32 -0400 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:51576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUguQ-00062d-Rb for control@debbugs.gnu.org; Sat, 12 Aug 2023 01:11:31 -0400 Received: from localhost (p887025-ipngn4201yosida.nagano.ocn.ne.jp [114.175.41.25]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 230EE60 for ; Sat, 12 Aug 2023 14:11:30 +0900 (JST) To: control@debbugs.gnu.org From: Ikumi Keita Subject: control message for bug #65195 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29324.1691817083.1@localhost> Date: Sat, 12 Aug 2023 14:11:23 +0900 Message-ID: <29325.1691817083@localhost> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control 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: -1.0 (-) close 65195 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 12 02:05:43 2023 Received: (at 65195) by debbugs.gnu.org; 12 Aug 2023 06:05:43 +0000 Received: from localhost ([127.0.0.1]:48461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUhkt-00028a-HK for submit@debbugs.gnu.org; Sat, 12 Aug 2023 02:05:43 -0400 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:51642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUhkr-00028P-BU for 65195@debbugs.gnu.org; Sat, 12 Aug 2023 02:05:42 -0400 Received: from localhost (p887025-ipngn4201yosida.nagano.ocn.ne.jp [114.175.41.25]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id BAF9C5C; Sat, 12 Aug 2023 15:05:39 +0900 (JST) From: Ikumi Keita To: Tony Zorman Subject: Re: bug#65195: 13.2.1; (La)TeX-fold-math-spec-list have the wrong custom type In-reply-to: <87pm3sakim.fsf@hyperspace> References: <87pm3vo67n.fsf@hyperspace> <29311.1691817030@localhost> <87pm3sakim.fsf@hyperspace> Comments: In-reply-to Tony Zorman message dated "Sat, 12 Aug 2023 07:37:37 +0200." X-Mailer: MH-E 8.6+git; nmh 1.7.1; Emacs 29.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <33928.1691820330.1@localhost> Date: Sat, 12 Aug 2023 15:05:30 +0900 Message-ID: <33931.1691820330@localhost> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 65195 Cc: 65195@debbugs.gnu.org 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: -1.0 (-) Hi Tony, >>>>> Tony Zorman writes: > I will note that the doc-string of `TeX-fold-make-overlay' might need to > be adjusted as well; currently it states that >> DISPLAY-STRING-SPEC is the original specification of the display >> string in the variables `TeX-fold-macro-spec-list' or >> `TeX-fold-env-spec-list' and may be a string or an integer. > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oh, thanks. I fixed it as well. Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 12 02:33:54 2023 Received: (at 65195) by debbugs.gnu.org; 12 Aug 2023 06:33:54 +0000 Received: from localhost ([127.0.0.1]:48485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUiC8-00035J-Bi for submit@debbugs.gnu.org; Sat, 12 Aug 2023 02:33:54 -0400 Received: from mout-p-101.mailbox.org ([80.241.56.151]:34660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUhJr-00015Y-Sk for 65195@debbugs.gnu.org; Sat, 12 Aug 2023 01:37:50 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4RN8ZC6ZBhz9scd; Sat, 12 Aug 2023 07:37:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1691818659; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=onIQL3jxZOXk/e5WHV5UGB/lSdljkxtYyYaJk0W24K8=; b=DyE+flaIriGajBiUmLlRXzHK3aXOluxqnqiWwcIVU//anxok3he9yD5gxPPeUcplfF4R1G yhEY7qzBHDDqWXJmWWqeiVbY5hB0KIRGuWOl/csjwRE7H/KOjv9zpnsr5Z+6/82yAb8Riy bW8dBGtBfXWkJqhNI/xNBIBX79DQF61JhRHAOXPbQWeZAWWZy7FdgC04cc0XPIMFVIrKOG XvZt6Gc5GmKGqfcLKGbdbPRhhdxg2rlzAsuoIyyUN/MXffI5DID/+JYp5orJSpfON317FW IYd6Qcnv4sfWmyVEkgwChjPBy4zn0VzNUIC1JqjM9czoy/XErNRkH9unWRfBqQ== From: Tony Zorman To: Ikumi Keita Subject: Re: bug#65195: 13.2.1; (La)TeX-fold-math-spec-list have the wrong custom type In-Reply-To: <29311.1691817030@localhost> References: <87pm3vo67n.fsf@hyperspace> <29311.1691817030@localhost> Date: Sat, 12 Aug 2023 07:37:37 +0200 Message-ID: <87pm3sakim.fsf@hyperspace> MIME-Version: 1.0 Content-Type: text/plain X-MBO-RS-ID: 8765f6e0f453cdc56a3 X-MBO-RS-META: wwfq8jb8tq1ytpjxx8k49rob7go1yz7c X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 65195 X-Mailman-Approved-At: Sat, 12 Aug 2023 02:33:51 -0400 Cc: 65195@debbugs.gnu.org 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: -1.7 (-) Hi Ikumi, On Sat, Aug 12 2023 14:10, Ikumi Keita wrote: > Thanks for your report, I think it is actually a bug. I pushed the fix > to the git repo according to your proposal. thank you! I will note that the doc-string of `TeX-fold-make-overlay' might need to be adjusted as well; currently it states that > DISPLAY-STRING-SPEC is the original specification of the display > string in the variables `TeX-fold-macro-spec-list' or > `TeX-fold-env-spec-list' and may be a string or an integer. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Tony -- Tony Zorman | https://tony-zorman.com/ From unknown Fri Jun 20 18:21:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 09 Sep 2023 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator