From unknown Fri Jun 20 19:48:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69254: 14.0.2; outline-hide-body doesn't work when called in LaTeX-mode-hook Resent-From: Richard Stanton Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sun, 18 Feb 2024 19:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69254 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 69254@debbugs.gnu.org X-Debbugs-Original-To: bug-auctex@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170828587513957 (code B ref -1); Sun, 18 Feb 2024 19:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Feb 2024 19:51:15 +0000 Received: from localhost ([127.0.0.1]:38382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbnBy-0003d2-Pg for submit@debbugs.gnu.org; Sun, 18 Feb 2024 14:51:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:49296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbnBu-0003cp-9i for submit@debbugs.gnu.org; Sun, 18 Feb 2024 14:51:13 -0500 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 1rbnBW-0008Kf-HF for bug-auctex@gnu.org; Sun, 18 Feb 2024 14:50:47 -0500 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rbnBT-0001um-S2 for bug-auctex@gnu.org; Sun, 18 Feb 2024 14:50:46 -0500 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1d71cb97937so35803325ad.3 for ; Sun, 18 Feb 2024 11:50:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berkeley.edu; s=google; t=1708285841; x=1708890641; darn=gnu.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=a3Pg4vUEJHwqHcaYbknt9asOzR8G6/NKHuD2NuGZD7M=; b=AIPc4zW6obMbm0PL1sD4ewYN3bNNypWMfz6fUzrxZl7muaVJAWAW/UAUGDAdybETcf F1/uQjdG76QUB6uDPaWySpRUlkqKofG8oiXZ18kQ6lDe4rChShFDd5zMVOBudwI8Xvtj 3Vw9fWJYhEUFZH8CW1LkORFi+RlpfcCDkBV5ifkmoTAybE+Xn+dafgnNFDU6/0Edhhys /QX7UByyz5E117ggi9oKm20XrxUsyw6Dm7pllXXux6t11eqxwi3J0uVldjC9kl+B6Bmt kXTKxFWR9sEVsNcZl6s0FBltif16AC11WShQvhI4JtDxRGJzOKbalZu7Phy7na7EuY6l hs+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708285841; x=1708890641; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=a3Pg4vUEJHwqHcaYbknt9asOzR8G6/NKHuD2NuGZD7M=; b=Bws5x0Lbe4WF/cNdwvY5giepo8xWCk6a5rlLoH+qisgZmH1HngDlIjJG0AbG4ygITO yVBMJy1AP/mtF+6KGtW/jJw2jXkbyOifggoAnCIn82d/RRAxh+mcJoqKo6YZbGF8XV5Z 8OrE6abC6xmlPY7027TmkppvzA86eJMElvtVd3zKEXf+q0axChZqUPoIgavZNkNwlfo2 B1Ob9NXRKF1GrPl3H6CGan38mw7HptZ7kxYlvhMESw9yEmYvGlVnHrt6H0ESzVfgwAz8 yGbcW47+gZ8NeZENW1+0VjmQ0/dzbep7qfFtDjoSKK8QY16wHGtBks7dKPibAgbH/JcM Cg5A== X-Gm-Message-State: AOJu0Ywn/E1T0jh1r3tn9feFNpBL7bGA70SyT5qjiwqzQMZImRb6AFgS IteAy73jqRKWWOdrgbsRKg9vjggTYclp1Td5pzUG2jil2klJI5TF7olX2C+X54pnUFZoY+zA+c0 = X-Google-Smtp-Source: AGHT+IFx5Ciy/ZR7SWNylu8IDjMklUvt4rcSxelZbddiAfX5UD0T5h0sbswoqiKYgYMlUSr14Udt1Q== X-Received: by 2002:a17:902:708b:b0:1db:5319:4d86 with SMTP id z11-20020a170902708b00b001db53194d86mr8809256plk.52.1708285840706; Sun, 18 Feb 2024 11:50:40 -0800 (PST) Received: from smtpclient.apple (198-27-189-17.fiber.dynamic.sonic.net. [198.27.189.17]) by smtp.gmail.com with ESMTPSA id m1-20020a170902f20100b001db3099d6fasm3016825plc.119.2024.02.18.11.50.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Feb 2024 11:50:39 -0800 (PST) From: Richard Stanton Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.8\)) Message-Id: <9DAA2E34-770F-43A8-AE49-AFD049DEBAEC@berkeley.edu> Date: Sun, 18 Feb 2024 11:50:39 -0800 X-Mailer: Apple Mail (2.3696.120.41.1.8) Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=rhstanton@berkeley.edu; helo=mail-pl1-x633.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, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -3.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: -4.5 (----) Using Emacs 29.2 under MacOS 12.7.3, I want LaTeX files to open with section bodies hidden, and just headers showing. I can get this to work manually when I'm editing the file by running the command "outline-hide-body". But when I run the same command as part of LaTeX-mode-hook, the file opens with nothing hidden. Here's the relevant portion of my init.el file. The rest of it just deals with setting up straight.el: (use-package tex :straight auctex) (add-hook 'LaTeX-mode-hook (lambda() (outline-minor-mode 1) (outline-hide-body) )) Note that: 1) If I add other commands to this LaTeX-mode-hook, they get executed = just fine. it seems to be only the outline-hide-body command that isn't doing what I expect. 2) Everything works as I hope if I don't load AUCTeX but use the built-in LaTeX mode instead (with the appropriately renamed hook). Is this a bug, or am i missing something? Thanks for any help Richard Stanton Emacs : GNU Emacs 29.2 (build 1, x86_64-apple-darwin21.6.0, NS = appkit-2113.60 Version 12.7.3 (Build 21H1015)) of 2024-02-09 Package: 14.0.2 current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq AUCTeX-date "2024-02-09" window-system 'ns LaTeX-version "2e" TeX-style-path '("/usr/local/var/auctex" "/Users/stanton/.emacs.d/straight/build/auctex/style" "/Users/stanton/.emacs.d/auctex/auto" "/Users/stanton/.emacs.d/auctex/style" "auto" "style") TeX-auto-save nil TeX-parse-self nil 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 AmSTeX-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 (AmSTeX-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 AmSTeX-mode Texinfo-mode ConTeXt-mode) :help "Run BibTeX") ("Biber" "biber %(output-dir) %s" TeX-run-Biber nil (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-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 AmSTeX-mode Texinfo-mode) :help "Generate PostScript file") ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-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 AmSTeX-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 AmSTeX-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 AmSTeX-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 AmSTeX-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 AmSTeX-mode Texinfo-mode) :help "Run upmendex to create index file") ("Xindy" "texindy %s" TeX-run-command nil (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-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") ) ) From unknown Fri Jun 20 19:48:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69254: 14.0.2; outline-hide-body doesn't work when called in LaTeX-mode-hook Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Mon, 19 Feb 2024 09:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69254 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Richard Stanton Cc: 69254@debbugs.gnu.org Received: via spool by 69254-submit@debbugs.gnu.org id=B69254.17083357447386 (code B ref 69254); Mon, 19 Feb 2024 09:43:02 +0000 Received: (at 69254) by debbugs.gnu.org; 19 Feb 2024 09:42:24 +0000 Received: from localhost ([127.0.0.1]:40335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rc0AK-0001v4-Di for submit@debbugs.gnu.org; Mon, 19 Feb 2024 04:42:24 -0500 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:60786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rc0AG-0001us-Gp for 69254@debbugs.gnu.org; Mon, 19 Feb 2024 04:42:22 -0500 Received: from localhost (42-144-34-11.rev.home.ne.jp [42.144.34.11]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id EB4B960; Mon, 19 Feb 2024 18:41:56 +0900 (JST) From: Ikumi Keita In-reply-to: <9DAA2E34-770F-43A8-AE49-AFD049DEBAEC@berkeley.edu> References: <9DAA2E34-770F-43A8-AE49-AFD049DEBAEC@berkeley.edu> Comments: In-reply-to Richard Stanton via bug-auctex via Bug reporting list for AUCTeX message dated "Sun, 18 Feb 2024 11:50:39 -0800." X-Mailer: MH-E 8.6+git; nmh 1.8; Emacs 29.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3560.1708335717.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Mon, 19 Feb 2024 18:41:57 +0900 Message-ID: <3561.1708335717@localhost> X-Spam-Score: -1.9 (-) 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: -2.9 (--) Hi Richard, >>>>> Richard Stanton via bug-auctex via Bug reporting list for AUCTeX writes: > Using Emacs 29.2 under MacOS 12.7.3, I want LaTeX files to open with > section bodies hidden, and just headers showing. I can get this to work > manually when I'm editing the file by running the command > "outline-hide-body". But when I run the same command as part of > LaTeX-mode-hook, the file opens with nothing hidden. > Here's the relevant portion of my init.el file. The rest of it just > deals with setting up straight.el: > (use-package tex :straight auctex) > (add-hook 'LaTeX-mode-hook (lambda() > (outline-minor-mode 1) > (outline-hide-body) > )) > Note that: > 1) If I add other commands to this LaTeX-mode-hook, they get executed ju= st > fine. it seems to be only the outline-hide-body command that isn't doing > what I expect. > 2) Everything works as I hope if I don't load AUCTeX but use the > built-in LaTeX mode instead (with the appropriately renamed hook). > Is this a bug, or am i missing something? Sorry for bothering you. I think this is an outcome of the fix of bug#65750[1] last September. In the fix, settings for outline mode were deferred after the parsing file local variables so that user's customize to section commands are reflected to outline related functionalities. This however means that `LaTeX-mode-hook' runs before outline mode settings are ready. I haven't come up with a clean solutions yet. For a tentative workaround, you can use (add-hook 'LaTeX-mode-hook (lambda () (add-hook 'find-file-hook (lambda() (outline-minor-mode 1) (outline-hide-body)) nil t))) instead of (add-hook 'LaTeX-mode-hook (lambda() (outline-minor-mode 1) (outline-hide-body) )) . [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D65750 Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine #Gaza #StopMassiveKilling #CeasefireNOW From unknown Fri Jun 20 19:48:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69254: 14.0.2; outline-hide-body doesn't work when called in LaTeX-mode-hook Resent-From: Richard Stanton Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Mon, 19 Feb 2024 16:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69254 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: 69254@debbugs.gnu.org Received: via spool by 69254-submit@debbugs.gnu.org id=B69254.170836155713158 (code B ref 69254); Mon, 19 Feb 2024 16:53:01 +0000 Received: (at 69254) by debbugs.gnu.org; 19 Feb 2024 16:52:37 +0000 Received: from localhost ([127.0.0.1]:43309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rc6se-0003Q9-St for submit@debbugs.gnu.org; Mon, 19 Feb 2024 11:52:37 -0500 Received: from mail-pf1-f169.google.com ([209.85.210.169]:47163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rc6sb-0003Pr-78 for 69254@debbugs.gnu.org; Mon, 19 Feb 2024 11:52:36 -0500 Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6da4a923b1bso3797929b3a.2 for <69254@debbugs.gnu.org>; Mon, 19 Feb 2024 08:52:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berkeley.edu; s=google; t=1708361466; x=1708966266; darn=debbugs.gnu.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=KD/uqqXT5mTTicgT5hwB0f4He+vFm/1CEZPPrk68maQ=; b=H/HsPCm7FGkQXkQD4oTyaH8OiNBKtrPslpfjpqpDDJp4qu2PQljf9OM8PuS+VrWoDG hb+4ThYFR399ZkU8H4O4oeHX2F2aRTbVxscdSiX0lhdNoQQna0579YK/OUh92cCmosad U70dyZN9DvTZ32hpc7/r6L67Nb5PYTglqLEZujiEiBnqU3eQ986cwOrMHrMJyYSM2s+f oyY2DStOqfRv5m2gqqXtSZrLo39k/viSHYj1g35G8oA5dzJv5RfgPK2VeY8qFLqAsDup E7kkkNBpiaV4fZAhjL8ezKJjJjJZHIfkC3xnLoOWAheL4jrLUBDAoQSJxWt7MlatnFCv OfHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708361466; x=1708966266; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KD/uqqXT5mTTicgT5hwB0f4He+vFm/1CEZPPrk68maQ=; b=aOqgkzUQ7GfWKiQOYIRJkuDHnmVmbb8gxX0xR6NdQXPU7/3aTPckZpjVtW7ja1cpsk nIRqcqmmEiX+W/qAJTQYi0kiGDU1reWOuMzBSld3KZrkzHCCnKbPs2XnTi5XqG/Nfwfg 7Gz0PKLAOTSO32/KSAYVcEKyqXWWXpQsmPCCEiFMK+9mjl2yP8buYURxC99x2d9ATDMs GGQwGbD+7c0e0VH2tcfLgNqEsQ2rcCV7PeIzHO/IlqmuP0y0od2qezYqSzUGu5qg5X2r UP9Eejukh/3cwZew0BYzIAVRBvIaDsmBY3X9LyPxTxm7HoArGTZxHd5Hc3yxOSFhu5Zs MY0g== X-Gm-Message-State: AOJu0Yy62zWwy8bebSVGm/SomNS/JKWTnSv64Gn/1JOlaaAydx/2quj7 +vWF21kS/Zy/mPGbaoLPlrRsvUn8htL+HNyXbxIxXXURt605y4iGb9WKWb0fSv418sYzuT2PPqQ = X-Google-Smtp-Source: AGHT+IFF/0JHKZOg7roYDkplJjXJv6MytBsP9jenjnJc68jqt2qPvG+Rzr2k0868hbj69QSfJDnixg== X-Received: by 2002:a05:6a20:6f88:b0:19a:47f2:5766 with SMTP id gv8-20020a056a206f8800b0019a47f25766mr12486108pzb.56.1708361464949; Mon, 19 Feb 2024 08:51:04 -0800 (PST) Received: from smtpclient.apple (198-27-189-17.fiber.dynamic.sonic.net. [198.27.189.17]) by smtp.gmail.com with ESMTPSA id e20-20020a62ee14000000b006e4716afa58sm968572pfi.159.2024.02.19.08.51.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2024 08:51:02 -0800 (PST) From: Richard Stanton Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_D44191E5-AD20-4C2F-B50A-DC920006E1A3" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.8\)) Date: Mon, 19 Feb 2024 08:51:01 -0800 In-Reply-To: <3561.1708335717@localhost> References: <9DAA2E34-770F-43A8-AE49-AFD049DEBAEC@berkeley.edu> <3561.1708335717@localhost> X-Mailer: Apple Mail (2.3696.120.41.1.8) X-Spam-Score: -1.9 (-) 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: -2.9 (--) --Apple-Mail=_D44191E5-AD20-4C2F-B50A-DC920006E1A3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 That works. Thanks!=20 The explanation makes perfect sense. But it also means that putting %%% eval: (outline-hide-body) in the file=E2=80=99s local variables doesn=E2=80=99t work. Is there a = similar work-around here, so I can make the settings file-specific if I = want? Thanks! > On Feb 19, 2024, at 1:41 AM, Ikumi Keita wrote: >=20 > Hi Richard, >=20 >>>>>> Richard Stanton via bug-auctex via Bug reporting list for AUCTeX = > writes: >> Using Emacs 29.2 under MacOS 12.7.3, I want LaTeX files to open with >> section bodies hidden, and just headers showing. I can get this to = work >> manually when I'm editing the file by running the command >> "outline-hide-body". But when I run the same command as part of >> LaTeX-mode-hook, the file opens with nothing hidden. >=20 >> Here's the relevant portion of my init.el file. The rest of it just >> deals with setting up straight.el: >=20 >> (use-package tex :straight auctex) >=20 >> (add-hook 'LaTeX-mode-hook (lambda() >> (outline-minor-mode 1) >> (outline-hide-body) >> )) >=20 >> Note that: >=20 >> 1) If I add other commands to this LaTeX-mode-hook, they get executed = just >> fine. it seems to be only the outline-hide-body command that isn't = doing >> what I expect. >=20 >> 2) Everything works as I hope if I don't load AUCTeX but use the >> built-in LaTeX mode instead (with the appropriately renamed hook). >=20 >> Is this a bug, or am i missing something? >=20 > Sorry for bothering you. I think this is an outcome of the fix of > bug#65750[1] last September. >=20 > In the fix, settings for outline mode were deferred after the parsing > file local variables so that user's customize to section commands are > reflected to outline related functionalities. This however means that > `LaTeX-mode-hook' runs before outline mode settings are ready. >=20 > I haven't come up with a clean solutions yet. For a tentative > workaround, you can use > (add-hook 'LaTeX-mode-hook > (lambda () > (add-hook 'find-file-hook > (lambda() > (outline-minor-mode 1) > (outline-hide-body)) > nil t))) >=20 > instead of > (add-hook 'LaTeX-mode-hook (lambda() > (outline-minor-mode 1) > (outline-hide-body) > )) > . >=20 > [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D65750 = >=20 > Regards, > Ikumi Keita > #StandWithUkraine #StopWarInUkraine > #Gaza #StopMassiveKilling #CeasefireNOW --Apple-Mail=_D44191E5-AD20-4C2F-B50A-DC920006E1A3 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 That = works. Thanks! 

The explanation makes perfect sense. But it also means that = putting

%%% = eval: (outline-hide-body)

in = the file=E2=80=99s local variables doesn=E2=80=99t work. Is there a = similar work-around here, so I can make the settings file-specific if I = want?

Thanks!




On Feb 19, 2024, at 1:41 AM, Ikumi Keita = <ikumi@ikumi.que.jp> wrote:

Hi Richard,

Richard Stanton via = bug-auctex via Bug reporting list for AUCTeX <bug-auctex@gnu.org> = writes:
Using = Emacs 29.2 under MacOS 12.7.3, I want LaTeX files to open with
section bodies hidden, and just headers showing. I can get = this to work
manually when I'm editing the file by running = the command
"outline-hide-body". But when I run the same = command as part of
LaTeX-mode-hook, the file opens with = nothing hidden.

Here's the relevant portion of my = init.el file. The rest of it just
deals with setting up = straight.el:

(use-package tex :straight auctex)

(add-hook 'LaTeX-mode-hook = (lambda()
          &nb= sp;            = ;     (outline-minor-mode 1)
          &nb= sp;            = ;     (outline-hide-body)
          &nb= sp;            = ;     ))

Note = that:

1) If I add other commands to this = LaTeX-mode-hook, they get executed just
fine. it seems to = be only the outline-hide-body command that isn't doing
what = I expect.

2) Everything works as I hope if I = don't load AUCTeX but use the
built-in LaTeX mode instead = (with the appropriately renamed hook).

Is = this a bug, or am i missing something?

Sorry for bothering you. I think = this is an outcome of the fix of
bug#65750[1] last September.

In the fix, settings for outline mode were deferred after the = parsing
file local = variables so that user's customize to section commands are
reflected to outline related = functionalities. This however means that
`LaTeX-mode-hook' runs before outline mode settings are = ready.

I haven't = come up with a clean solutions yet. For a tentative
workaround, you can = use
(add-hook = 'LaTeX-mode-hook
=   (lambda ()
    (add-hook = 'find-file-hook
=       = ;(lambda()
          &nb= sp;            = ;(outline-minor-mode 1)
          &nb= sp;            = ;(outline-hide-body))
=       = ;nil t)))

instead = of
(add-hook = 'LaTeX-mode-hook (lambda()
          &nb= sp;            = ;     (outline-minor-mode 1)
          &nb= sp;            = ;     (outline-hide-body)
          &nb= sp;            = ;     ))
.

[1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D65750

Regards,
Ikumi Keita
#StandWithUkraine = #StopWarInUkraine
#Gaza #StopMassiveKilling = #CeasefireNOW

= --Apple-Mail=_D44191E5-AD20-4C2F-B50A-DC920006E1A3-- From unknown Fri Jun 20 19:48:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69254: 14.0.2; outline-hide-body doesn't work when called in LaTeX-mode-hook Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Wed, 21 Feb 2024 08:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69254 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Richard Stanton Cc: 69254@debbugs.gnu.org Received: via spool by 69254-submit@debbugs.gnu.org id=B69254.170850575525347 (code B ref 69254); Wed, 21 Feb 2024 08:56:02 +0000 Received: (at 69254) by debbugs.gnu.org; 21 Feb 2024 08:55:55 +0000 Received: from localhost ([127.0.0.1]:47873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rciOQ-0006ak-M1 for submit@debbugs.gnu.org; Wed, 21 Feb 2024 03:55:54 -0500 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:39050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rciOM-0006aW-87 for 69254@debbugs.gnu.org; Wed, 21 Feb 2024 03:55:53 -0500 Received: from localhost (42-144-34-11.rev.home.ne.jp [42.144.34.11]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 4C89D5F; Wed, 21 Feb 2024 17:55:24 +0900 (JST) From: Ikumi Keita In-reply-to: References: <9DAA2E34-770F-43A8-AE49-AFD049DEBAEC@berkeley.edu> <3561.1708335717@localhost> Comments: In-reply-to Richard Stanton message dated "Mon, 19 Feb 2024 08:51:01 -0800." X-Mailer: MH-E 8.6+git; nmh 1.8; Emacs 29.2 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Date: Wed, 21 Feb 2024 17:55:22 +0900 Message-ID: <2060.1708505722@localhost> X-Spam-Score: -1.9 (-) 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: -2.9 (--) Hi Richard, >>>>> Richard Stanton writes: > That works. Thanks! > The explanation makes perfect sense. But it also means that putting > %%% eval: (outline-hide-body) > in the file’s local variables doesn’t work. Is there a similar > work-around here, so I can make the settings file-specific if I want? Hmm, that's a tough question. :-) I couldn't find a good answer for this request, either. You can do it in only a awkward way, i.e.: %%% eval: (add-hook 'find-file-hook (lambda () (outline-hide-body)) nil t) In general, I suppose that emacs doesn't offer a neat framework to deal with this type of competition between the order of setting variable and running subsidiary functionality. Particularly, (La)TeX is (IMHO) exceptional in that the users can define arbitrary sectioning commands. which makes it difficult to prepare for outline mode. Maybe I close this bug as "won'tfix" type :-( Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine #Gaza #StopMassiveKilling #CeasefireNOW From unknown Fri Jun 20 19:48:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69254: 14.0.2; outline-hide-body doesn't work when called in LaTeX-mode-hook Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 22 Feb 2024 09:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69254 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: Richard Stanton , 69254@debbugs.gnu.org Received: via spool by 69254-submit@debbugs.gnu.org id=B69254.170859302032340 (code B ref 69254); Thu, 22 Feb 2024 09:11:02 +0000 Received: (at 69254) by debbugs.gnu.org; 22 Feb 2024 09:10:20 +0000 Received: from localhost ([127.0.0.1]:38058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rd55v-0008PU-MK for submit@debbugs.gnu.org; Thu, 22 Feb 2024 04:10:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rd4tQ-00056L-6A for 69254@debbugs.gnu.org; Thu, 22 Feb 2024 03:57:25 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rd4su-0006Oh-8G; Thu, 22 Feb 2024 03:56:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=fladhFrkuyrQ0sDsM4AVZrpqg97jYLDmxtphZOKNYW0=; b=SXocKXD3gCw8l4vENlxa P9DJO/mR3J74eDRHlYlLybtmo8aaE2w0OBa1oF0b7TgF9X/Mlh9E5VhEjXQeroKs6HKeO98y6HC1k ZXYt1688OuJ5m5k6pniaQ9Wym131mz1Hos/V/6Mt4XKoS+sK18FZnK8KsIHyHJ3vvHj0SeJfbuYu/ 74TSq5omJeGZWcSjkNN2oeZfZPIdzGAoaG1d0nb6SJfycqGiV9FTZfKCgF4045I++MlUHbDK8rT0d pwcW7SvUpI/95x2ldexUKfLbw04bmfCaFSomf+s14+x/9gjYJZCQSEKM6i4hmHpwrjBS3GYRl+kac +W8FGbRhLMTZ7Q==; From: Arash Esbati In-Reply-To: <2060.1708505722@localhost> (Ikumi Keita's message of "Wed, 21 Feb 2024 17:55:22 +0900") References: <9DAA2E34-770F-43A8-AE49-AFD049DEBAEC@berkeley.edu> <3561.1708335717@localhost> <2060.1708505722@localhost> Date: Thu, 22 Feb 2024 09:56:47 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.2 (----) 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: -5.2 (-----) Hi Keita Ikumi Keita writes: > In general, I suppose that emacs doesn't offer a neat framework to deal > with this type of competition between the order of setting variable and > running subsidiary functionality. Particularly, (La)TeX is (IMHO) > exceptional in that the users can define arbitrary sectioning commands. > which makes it difficult to prepare for outline mode. > > Maybe I close this bug as "won'tfix" type :-( Maybe we revert the change for bug #65750 and declare that one as "won't fix". If we have to find a compromise, I vote for supporting (add-hook 'LaTeX-mode-hook (lambda() (outline-minor-mode 1) (outline-hide-body))) which is something that other modes support as well. Best, Arash From unknown Fri Jun 20 19:48:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69254: 14.0.2; outline-hide-body doesn't work when called in LaTeX-mode-hook Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 22 Feb 2024 10:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69254 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Arash Esbati Cc: Richard Stanton , 69254@debbugs.gnu.org Received: via spool by 69254-submit@debbugs.gnu.org id=B69254.170859855316105 (code B ref 69254); Thu, 22 Feb 2024 10:43:01 +0000 Received: (at 69254) by debbugs.gnu.org; 22 Feb 2024 10:42:33 +0000 Received: from localhost ([127.0.0.1]:44070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rd6XA-0004Bf-IO for submit@debbugs.gnu.org; Thu, 22 Feb 2024 05:42:32 -0500 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:42586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rd6X8-0004BQ-Qr for 69254@debbugs.gnu.org; Thu, 22 Feb 2024 05:42:32 -0500 Received: from localhost (42-144-34-11.rev.home.ne.jp [42.144.34.11]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id A683E74; Thu, 22 Feb 2024 19:42:05 +0900 (JST) From: Ikumi Keita In-reply-to: References: <9DAA2E34-770F-43A8-AE49-AFD049DEBAEC@berkeley.edu> <3561.1708335717@localhost> <2060.1708505722@localhost> Comments: In-reply-to Arash Esbati message dated "Thu, 22 Feb 2024 09:56:47 +0100." X-Mailer: MH-E 8.6+git; nmh 1.8; Emacs 29.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4495.1708598524.1@localhost> Date: Thu, 22 Feb 2024 19:42:04 +0900 Message-ID: <4496.1708598524@localhost> X-Spam-Score: -1.9 (-) 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: -2.9 (--) Hi Arash, >>>>> Arash Esbati writes: > Maybe we revert the change for bug #65750 and declare that one as "won't > fix". Yes, it's a possible option, I think. > If we have to find a compromise, I vote for supporting > (add-hook 'LaTeX-mode-hook (lambda() > (outline-minor-mode 1) > (outline-hide-body))) > which is something that other modes support as well. I feel a bit reluctant about that idea since it doesn't recognize the customized section commands defined in file local variables. In that case, the user has to do by oneself either of the following alternatives: 1. Defer the call to `outline-hide-body' after parsing file local vars. 2. Add parsing file local vars (at least for `LaTeX-section-list') explicitly before calling `outline-minor-mode'. But maybe we can ignore such corner case. Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine #Gaza #StopMassiveKilling #CeasefireNOW From unknown Fri Jun 20 19:48:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69254: 14.0.2; outline-hide-body doesn't work when called in LaTeX-mode-hook Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 22 Feb 2024 14:33:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69254 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: Richard Stanton , 69254@debbugs.gnu.org Received: via spool by 69254-submit@debbugs.gnu.org id=B69254.170861238025115 (code B ref 69254); Thu, 22 Feb 2024 14:33:04 +0000 Received: (at 69254) by debbugs.gnu.org; 22 Feb 2024 14:33:00 +0000 Received: from localhost ([127.0.0.1]:58521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdA8C-0006Wz-10 for submit@debbugs.gnu.org; Thu, 22 Feb 2024 09:33:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdA84-0006W2-0R for 69254@debbugs.gnu.org; Thu, 22 Feb 2024 09:32:55 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rd9Ev-0004u2-Jd; Thu, 22 Feb 2024 08:35:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=BZ6oA+3uBYTK0IB4XWR8TjsYBx16ChFPXO9lLwkK+N4=; b=KB92hP03lgu7nFTKSpk8 mzdsnZ6+VbJFXsvK8j7tmhkJR0lwfzzqlFA2Eu21SVRcnpEseS5QREMlv7osoWT9XiYg5n+csZZRU Mttp2b795nIdXf7NdZSO3RHeODTJeNTDRQWBesBTnmXKzKNXjWBh5o+5GHMYlkdAksuUtKoxnGI9M beLY5MFCq0UDk28Jn+9htleWnSLhFDnkipqmEuAe36JmJfnWjALM4cEUokz29s6UfjKF2IcRaW5dg O7/180IKveL+L3oqATBXoqmHqS4zXDJZw0hVd3q16v0/bWn5TOAjevrk3r/QH7RDFFhXT7Wu8lPgA RtZvfHMZ8LH4PA==; From: Arash Esbati In-Reply-To: <4496.1708598524@localhost> (Ikumi Keita's message of "Thu, 22 Feb 2024 19:42:04 +0900") References: <9DAA2E34-770F-43A8-AE49-AFD049DEBAEC@berkeley.edu> <3561.1708335717@localhost> <2060.1708505722@localhost> <4496.1708598524@localhost> Date: Thu, 22 Feb 2024 14:35:49 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.2 (----) 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: -5.2 (-----) Ikumi Keita writes: > I feel a bit reluctant about that idea since it doesn't recognize the > customized section commands defined in file local variables. In that > case, the user has to do by oneself either of the following > alternatives: > 1. Defer the call to `outline-hide-body' after parsing file local vars. > 2. Add parsing file local vars (at least for `LaTeX-section-list') > explicitly before calling `outline-minor-mode'. > > But maybe we can ignore such corner case. I think that "customized section commands defined in file local variables" is more a corner case than enabling `outline-minor-mode' via `LaTeX-mode-hook'; and we a have recipe for former if needed. So it's up to us to make a decision here: there will be unhappy customers, but how many? ;-) Best, Arash From unknown Fri Jun 20 19:48:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69254: 14.0.2; outline-hide-body doesn't work when called in LaTeX-mode-hook Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Fri, 23 Feb 2024 06:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69254 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Arash Esbati Cc: Richard Stanton , 69254@debbugs.gnu.org Received: via spool by 69254-submit@debbugs.gnu.org id=B69254.170866942324883 (code B ref 69254); Fri, 23 Feb 2024 06:24:02 +0000 Received: (at 69254) by debbugs.gnu.org; 23 Feb 2024 06:23:43 +0000 Received: from localhost ([127.0.0.1]:41330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdOyF-0006TH-8X for submit@debbugs.gnu.org; Fri, 23 Feb 2024 01:23:43 -0500 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:44100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdOyC-0006T1-DD for 69254@debbugs.gnu.org; Fri, 23 Feb 2024 01:23:42 -0500 Received: from localhost (42-144-34-11.rev.home.ne.jp [42.144.34.11]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 4B74D74; Fri, 23 Feb 2024 15:23:14 +0900 (JST) From: Ikumi Keita In-reply-to: References: <9DAA2E34-770F-43A8-AE49-AFD049DEBAEC@berkeley.edu> <3561.1708335717@localhost> <2060.1708505722@localhost> <4496.1708598524@localhost> Comments: In-reply-to Arash Esbati message dated "Thu, 22 Feb 2024 14:35:49 +0100." X-Mailer: MH-E 8.6+git; nmh 1.8; Emacs 29.2 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Fri, 23 Feb 2024 15:23:13 +0900 Message-ID: <7670.1708669393@localhost> 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: -1.0 (-) --=-=-= Content-Type: text/plain Hi Arash, >>>>> Arash Esbati writes: > I think that "customized section commands defined in file local > variables" is more a corner case than enabling `outline-minor-mode' via > `LaTeX-mode-hook'; and we a have recipe for former if needed. So it's > up to us to make a decision here: there will be unhappy customers, but > how many? ;-) I see, here is a tentative patch. Do you think that we should also revert the similar changes for paragraph related variables? Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine #Gaza #StopMassiveKilling #CeasefireNOW --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=diff Content-Description: revert outline treatment diff --git a/context.el b/context.el index 5ee0217d..86991ccf 100644 --- a/context.el +++ b/context.el @@ -1875,9 +1875,8 @@ that is, you do _not_ have to cater for this yourself by adding \\\\\\=' or $." ;; Outline support (require 'outline) (set (make-local-variable 'outline-level) #'ConTeXt-outline-level) - ;; Moved after `run-mode-hooks'. (bug#65750) - ;; (set (make-local-variable 'outline-regexp) (ConTeXt-outline-regexp t)) - ;;(make-local-variable 'outline-heading-end-regexp) + (set (make-local-variable 'outline-regexp) (ConTeXt-outline-regexp t)) + (make-local-variable 'outline-heading-end-regexp) (setq TeX-header-end (ConTeXt-header-end) TeX-trailer-start (ConTeXt-trailer-start)) @@ -1913,10 +1912,7 @@ Run after mode hooks and file local variables application." "[ \t]*\\(" (ConTeXt-paragraph-commands-regexp) "\\|" "\\$\\$\\|" ; Plain TeX display math - "$\\)")) - - (or (local-variable-p 'outline-regexp) - (setq-local outline-regexp (ConTeXt-outline-regexp t)))) + "$\\)"))) (defun context-guess-current-interface () "Guess what ConTeXt interface the current buffer is using." diff --git a/latex.el b/latex.el index 83de0e84..de70c7f5 100644 --- a/latex.el +++ b/latex.el @@ -8268,16 +8268,6 @@ Run after mode hooks and file local variables application." (if (bound-and-true-p filladapt-mode) (turn-off-filladapt-mode)) - ;; Don't overwrite the value the user set by hooks or file - ;; (directory) local variables. - (or (local-variable-p 'outline-regexp) - (setq-local outline-regexp (LaTeX-outline-regexp t))) - (or (local-variable-p 'outline-heading-alist) - (setq outline-heading-alist - (mapcar (lambda (x) - (cons (concat "\\" (nth 0 x)) (nth 1 x))) - LaTeX-section-list))) - ;; Keep `LaTeX-paragraph-commands-regexp' in sync with ;; `LaTeX-paragraph-commands' in case the latter is updated by ;; hooks or file (directory) local variables. @@ -8441,13 +8431,12 @@ function would return non-nil and `(match-string 1)' would return (require 'outline) (set (make-local-variable 'outline-level) #'LaTeX-outline-level) - ;; Moved after `run-mode-hooks'. (bug#65750) - ;; (set (make-local-variable 'outline-regexp) (LaTeX-outline-regexp t)) - ;; (when (boundp 'outline-heading-alist) - ;; (setq outline-heading-alist - ;; (mapcar (lambda (x) - ;; (cons (concat "\\" (nth 0 x)) (nth 1 x))) - ;; LaTeX-section-list))) + (set (make-local-variable 'outline-regexp) (LaTeX-outline-regexp t)) + (when (boundp 'outline-heading-alist) + (setq outline-heading-alist + (mapcar (lambda (x) + (cons (concat "\\" (nth 0 x)) (nth 1 x))) + LaTeX-section-list))) (setq-local TeX-auto-full-regexp-list (delete-dups (append LaTeX-auto-regexp-list diff --git a/tex-info.el b/tex-info.el index fc10f018..9f919ee3 100644 --- a/tex-info.el +++ b/tex-info.el @@ -31,9 +31,6 @@ (require 'texinfo) -;; Silence the compiler for variables: -(defvar outline-heading-alist) - ;;; Environments: (defvar Texinfo-environment-list '(("cartouche") ("command") ("copying") ("defcv") ("deffn") ("defivar") @@ -672,13 +669,12 @@ value of `Texinfo-mode-hook'." (set (make-local-variable 'syntax-propertize-function) texinfo-syntax-propertize-function) - ;; Moved after `run-mode-hooks'. (bug#65750) - ;; (setq-local outline-heading-alist - ;; (mapcar (lambda (x) (cons (concat "@" (car x)) (cadr x))) - ;; texinfo-section-list)) - ;; (setq-local outline-regexp - ;; (concat (regexp-opt (mapcar #'car outline-heading-alist) t) - ;; "\\>")) + (setq-local outline-heading-alist + (mapcar (lambda (x) (cons (concat "@" (car x)) (cadr x))) + texinfo-section-list)) + (setq-local outline-regexp + (concat (regexp-opt (mapcar #'car outline-heading-alist) t) + "\\>")) ;; Mostly AUCTeX stuff (set (make-local-variable 'TeX-command-current) #'TeX-command-master) @@ -873,16 +869,6 @@ Run after mode hooks and file local variables application." texinfo-chapter-level-regexp "\\)"))) - ;; Outline settings. - (or (local-variable-p 'outline-heading-alist) - (setq-local outline-heading-alist - (mapcar (lambda (x) (cons (concat "@" (car x)) (cadr x))) - texinfo-section-list))) - (or (local-variable-p 'outline-regexp) - (setq-local outline-regexp - (concat (regexp-opt (mapcar #'car outline-heading-alist) t) - "\\>"))) - (or (local-variable-p 'TeX-complete-list) (setq-local TeX-complete-list (list (list "@\\([a-zA-Z]*\\)" 1 #'TeX-symbol-list-filtered nil) --=-=-=-- From unknown Fri Jun 20 19:48:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69254: 14.0.2; outline-hide-body doesn't work when called in LaTeX-mode-hook Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Fri, 23 Feb 2024 09:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69254 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: Richard Stanton , 69254@debbugs.gnu.org Received: via spool by 69254-submit@debbugs.gnu.org id=B69254.17086803805207 (code B ref 69254); Fri, 23 Feb 2024 09:27:01 +0000 Received: (at 69254) by debbugs.gnu.org; 23 Feb 2024 09:26:20 +0000 Received: from localhost ([127.0.0.1]:54103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdRox-0001Lt-VL for submit@debbugs.gnu.org; Fri, 23 Feb 2024 04:26:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdRov-0001LZ-OP for 69254@debbugs.gnu.org; Fri, 23 Feb 2024 04:26:19 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rdQwH-0006Kj-O8; Fri, 23 Feb 2024 03:29:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=5DcN7kUDy6T/NpHR7gu4Nxz3uQ36lhPuBA/BOxebqS0=; b=o6jasE+IdOtw3+y+45lE +BYH3hnhMjNX/VZvovmuAUrI6Z99Cngmmt4OKI0C1yB0r55vpAdESvirvAd2irfhuE/t91VeI7tPt BxwQw3aQ+sCE/3zYgQhy/n6t1jbV5rr04G0VJlXOZqir801uIYGWsO+2Q3qFbWY65Mfhy1/40hnNm IwWCQRoqOgfamDXu0JZUMDaKAYSg3R4aqe9CuAPnNexFwiN5UXGwhknpoFy6XNHYxNX0+1Is4ErNG GfyD77SubsipAVxvNpjrgse1mxbEqYOfompktVuwuWSFuuUzgRFVm/EyL8msmrumnGBLHL11di5So qpcO9NCCxWTztQ==; From: Arash Esbati In-Reply-To: <7670.1708669393@localhost> (Ikumi Keita's message of "Fri, 23 Feb 2024 15:23:13 +0900") References: <9DAA2E34-770F-43A8-AE49-AFD049DEBAEC@berkeley.edu> <3561.1708335717@localhost> <2060.1708505722@localhost> <4496.1708598524@localhost> <7670.1708669393@localhost> Date: Fri, 23 Feb 2024 09:29:44 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.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: -3.3 (---) Hi Keita, Ikumi Keita writes: > I see, here is a tentative patch. Thanks. > Do you think that we should also revert the similar changes for > paragraph related variables? I'm not sure if that part is really relevant for users. I suggest we keep that as is and touch it if we get feedback from the users. Does it make sense? Best, Arash From unknown Fri Jun 20 19:48:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69254: 14.0.2; outline-hide-body doesn't work when called in LaTeX-mode-hook Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Fri, 23 Feb 2024 09:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69254 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Arash Esbati Cc: Richard Stanton , 69254@debbugs.gnu.org Received: via spool by 69254-submit@debbugs.gnu.org id=B69254.17086816978731 (code B ref 69254); Fri, 23 Feb 2024 09:49:01 +0000 Received: (at 69254) by debbugs.gnu.org; 23 Feb 2024 09:48:17 +0000 Received: from localhost ([127.0.0.1]:55310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdSAC-0002Gd-93 for submit@debbugs.gnu.org; Fri, 23 Feb 2024 04:48:17 -0500 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:44434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdSA8-0002G8-Iw for 69254@debbugs.gnu.org; Fri, 23 Feb 2024 04:48:14 -0500 Received: from localhost (42-144-34-11.rev.home.ne.jp [42.144.34.11]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 92A6360; Fri, 23 Feb 2024 18:39:13 +0900 (JST) From: Ikumi Keita In-reply-to: References: <9DAA2E34-770F-43A8-AE49-AFD049DEBAEC@berkeley.edu> <3561.1708335717@localhost> <2060.1708505722@localhost> <4496.1708598524@localhost> <7670.1708669393@localhost> Comments: In-reply-to Arash Esbati message dated "Fri, 23 Feb 2024 09:29:44 +0100." X-Mailer: MH-E 8.6+git; nmh 1.8; Emacs 29.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7910.1708681153.1@localhost> Date: Fri, 23 Feb 2024 18:39:13 +0900 Message-ID: <7912.1708681153@localhost> 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: -1.0 (-) Hi Arash, >>>>> Arash Esbati writes: > Ikumi Keita writes: >> Do you think that we should also revert the similar changes for >> paragraph related variables? > I'm not sure if that part is really relevant for users. I suggest we > keep that as is and touch it if we get feedback from the users. Does it > make sense? OK, then I'll install the current patch. Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine #Gaza #StopMassiveKilling #CeasefireNOW From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 24 03:40:26 2024 Received: (at control) by debbugs.gnu.org; 24 Feb 2024 08:40:27 +0000 Received: from localhost ([127.0.0.1]:39041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdna6-0001dA-4t for submit@debbugs.gnu.org; Sat, 24 Feb 2024 03:40:26 -0500 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:46010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdnLy-0006Xy-AO for control@debbugs.gnu.org; Sat, 24 Feb 2024 03:25:50 -0500 Received: from localhost (42-144-34-11.rev.home.ne.jp [42.144.34.11]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 682155C for ; Sat, 24 Feb 2024 17:25:25 +0900 (JST) To: control@debbugs.gnu.org From: Ikumi Keita Subject: control message for bug #69254 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10099.1708763125.1@localhost> Date: Sat, 24 Feb 2024 17:25:25 +0900 Message-ID: <10100.1708763125@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 69254 quit