From unknown Fri Jun 20 07:12:41 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#61210 <61210@debbugs.gnu.org> To: bug#61210 <61210@debbugs.gnu.org> Subject: Status: 28.2; Request to modify code which can accidentally overwrite AUCTeX function Reply-To: bug#61210 <61210@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:12:41 +0000 retitle 61210 28.2; Request to modify code which can accidentally overwrite= AUCTeX function reassign 61210 emacs submitter 61210 Ikumi Keita severity 61210 normal tag 61210 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 01 07:13:31 2023 Received: (at submit) by debbugs.gnu.org; 1 Feb 2023 12:13:31 +0000 Received: from localhost ([127.0.0.1]:56630 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNBzW-0001rN-NQ for submit@debbugs.gnu.org; Wed, 01 Feb 2023 07:13:31 -0500 Received: from lists.gnu.org ([209.51.188.17]:50398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNBzS-0001rB-SS for submit@debbugs.gnu.org; Wed, 01 Feb 2023 07:13:29 -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 1pNBzQ-0006MH-Pn for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2023 07:13:24 -0500 Received: from smtp1a.inetd.co.jp ([210.129.88.11]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNBzN-0002JJ-V1 for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2023 07:13:24 -0500 Received: from localhost (42-144-46-173.rev.home.ne.jp [42.144.46.173]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id AC4A05C for ; Wed, 1 Feb 2023 21:13:16 +0900 (JST) From: Ikumi Keita To: bug-gnu-emacs@gnu.org Subject: 28.2; Request to modify code which can accidentally overwrite AUCTeX function X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.2 X-Debbugs-Cc: Stefan Monnier MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13006.1675253595.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Wed, 01 Feb 2023 21:13:16 +0900 Message-ID: <13008.1675253596@localhost> Received-SPF: pass client-ip=210.129.88.11; envelope-from=ikumi@ikumi.que.jp; helo=smtp1a.inetd.co.jp X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) I'm working on arranging AUCTeX to reconcile built-in tex modes better. One of the primary aim is to avoid clash of major mode name; for example, to change `latex-mode' to `LaTeX-mode'. In the course of reviewing the code, I realized the following problem. If we do that in natural ways like (define-derived-mode LaTeX-mode text-mode "LaTeX" ...) or (defun LaTeX-mode () ...) , it could wreak havoc because tex-mode.el has these lines: ---------------------------------------------------------------------- ;;;###autoload (defalias 'TeX-mode #'tex-mode) ;;;###autoload (defalias 'plain-TeX-mode #'plain-tex-mode) ;;;###autoload (defalias 'LaTeX-mode #'latex-mode) ---------------------------------------------------------------------- These defalias'es overwrite the AUCTeX definition unconditionally if tex-mode.el are loaded after AUCTeX. So AUCTeX has to do workarounds like ---------------------------------------------------------------------- (define-derived-mode TeX-latex-mode text-mode "LaTeX" ... (setq major-mode 'LaTeX-mode) ...) (defalias 'LaTeX-mode #'TeX-latex-mode) ---------------------------------------------------------------------- and advertise `LaTeX-mode' as its official name. (Additionally, we need some gotchas so that directory local variable entry like ((LaTeX-mode (...))) should work.) Hence I'd like to request to modify the built-in tex-modes.el to delete those lines, or at least to do fboundp test like (unless (fboundp 'LaTeX-mode) (defalias 'LaTeX-mode #'latex-mode)) in, say, emacs-30. If that is accepted, we can clean up the above workarounds in the future, when the least emacs version supported by AUCTeX becomes 30. Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine In GNU Emacs 28.2 (build 1, x86_64-unknown-freebsd13.1, GTK+ Version 3.24.= 33, cairo version 1.17.4) of 2022-09-15 built on freebsd.vmware Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: 13.1-RELEASE-p5 Configured using: 'configure --with-canna --with-canna-includes=3D/usr/local/canna/include --with-canna-libraries=3D/usr/local/canna/lib --without-xim --disable-largefile --without-modules --with-sound=3Dyes --with-file-notification=3Dyes CFLAGS=3D-O3' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBXML2 NOTIFY KQUEUE PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $EMACSLOADPATH: /home/keita/elisp: value of $LANG: ja_JP.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: shell-dirtrack-mode: t TeX-PDF-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: /home/keita/.emacs.d/elpa/transient-20230124.2013/transient hides /usr/loc= al/share/emacs/28.2/lisp/transient ~/elisp/reftex-parse hides /usr/local/share/emacs/28.2/lisp/textmodes/reft= ex-parse /home/keita/.emacs.d/elpa/soap-client-3.2.1/soap-inspect hides /usr/local/= share/emacs/28.2/lisp/net/soap-inspect /home/keita/.emacs.d/elpa/soap-client-3.2.1/soap-client hides /usr/local/s= hare/emacs/28.2/lisp/net/soap-client Features: (shadow emacsbug mh-thread supercite regi mh-identity mh-letter mh-comp sendmail reftex-sel reftex-ref reftex-parse preview reftex-dcr reftex-auc reftex reftex-loaddefs reftex-vars tex-bar toolbar-x noutline outline tex-mode shell pcomplete font-latex tex-jp latex easy-mmode latex-flymake flymake-proc flymake project compile comint ansi-color ring warnings tex-ispell tex-style tex texmathp latexenc mh-search qp mm-archive smiley mail-extr mh-mime mh-gnus mh-alias multi-prompt crm mh-show goto-addr thingatpt gnus-cite gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum shr svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int message dired dired-loaddefs rfc822 mml mml-sec mm-decode mm-bodies mm-encode gmm-utils mailheader gnus-win gnus-range gnus nnheader wid-edit mh-seq mh-inc hl-line mh-tool-bar mh-xface mh-utils mh-folder which-func imenu gnus-util rmail rmail-loaddefs mail-utils text-property-search mh-scan mh-e mh-compat mailabbrev mh-buffers mh-loaddefs skeleton misearch multi-isearch conf-mode mule-util kinsoku cl-extra help-mode parse-time iso8601 time-date ucs-normalize epa derived epg rfc6068 epg-config url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc puny jka-compr twittering-mode advice xml edmacro kmacro preview-latex tex-site canna-im info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib japan-util iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind kqueue lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 823574 92247) (symbols 48 23600 10) (strings 32 129178 21854) (string-bytes 1 5678353) (vectors 16 74334) (vector-slots 8 1690475 62672) (floats 8 431 886) (intervals 56 20117 6833) (buffers 992 34)) From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 18 18:35:19 2023 Received: (at 61210) by debbugs.gnu.org; 18 Mar 2023 22:35:19 +0000 Received: from localhost ([127.0.0.1]:49157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdf8w-0001bp-QK for submit@debbugs.gnu.org; Sat, 18 Mar 2023 18:35:19 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:57244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdf8u-0001ba-2e for 61210@debbugs.gnu.org; Sat, 18 Mar 2023 18:35:16 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 1564980814; Sat, 18 Mar 2023 18:35:10 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 8D069805B7; Sat, 18 Mar 2023 18:35:08 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1679178908; bh=kXMSYdu5VT/trR01eqwqhgS6ft3TaJw4ntX0hBzutRk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=E0MwLZkuNN4yFBzga0WR5TKGb0/Irju88GHwEAL6iX4rjW9vU9eo08ELPvtyIu39Q s/mE1cfsk8w2p9JK1QnZWOyWkfG7Usaikhkn4kRrJvutSuceXzTFjb+xnddxmxqJpB Z+K/yMD1j4v49csitsaTVC3nTWVx5e3zsyjEYRMbcNIsEBjYdiiiNnlNxnHrucCtJa 8JRpi47upIh076+mHuMxjMUklBGsMCF0RGdDlfjkmielE/e4iWZgt4k6buMf9YRQc5 Gsoe96z+R2hVSqKAogtvKbxDh1zNSfC3mPi3eUiOvq6PxafbOY1WieVizavfFa4B/m YJCdB6vU15hyg== Received: from alfajor (unknown [216.154.34.24]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 66FAB1232CE; Sat, 18 Mar 2023 18:35:08 -0400 (EDT) From: Stefan Monnier To: Ikumi Keita Subject: Re: bug#61210: 28.2; Request to modify code which can accidentally overwrite AUCTeX function In-Reply-To: <13008.1675253596@localhost> (Ikumi Keita's message of "Wed, 01 Feb 2023 21:13:16 +0900") Message-ID: References: <13008.1675253596@localhost> Date: Sat, 18 Mar 2023 18:35:05 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.434 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain KAM_ASCII_DIVIDERS 0.8 Email that uses ascii formatting dividers and possible spam tricks X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61210 Cc: 61210@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: -3.3 (---) > If we do that in natural ways like > (define-derived-mode LaTeX-mode text-mode "LaTeX" ...) > or > (defun LaTeX-mode () ...) > , it could wreak havoc because tex-mode.el has these lines: > ---------------------------------------------------------------------- > ;;;###autoload > (defalias 'TeX-mode #'tex-mode) > ;;;###autoload > (defalias 'plain-TeX-mode #'plain-tex-mode) > ;;;###autoload > (defalias 'LaTeX-mode #'latex-mode) > ---------------------------------------------------------------------- > These defalias'es overwrite the AUCTeX definition unconditionally if > tex-mode.el are loaded after AUCTeX. So AUCTeX has to do workarounds In Emacs-29 (see commit 18d75b4ab91fef6e344e612580088b714acfdb6e), the above `defalias` are now predefined once and for all: ;;;###autoload (defalias 'TeX-mode #'tex-mode) ;;;###autoload (defalias 'plain-TeX-mode #'plain-tex-mode) ;;;###autoload (defalias 'LaTeX-mode #'latex-mode) It's still not ideal, but at least loading `tex-mode` won't override any other definition such as AUCTeX's. I'd like to hear what you think about this "solution", both in the short term and what we could try to do in the longer term (e.g. I'd like to aim to get rid of those defaliases, but I'm not sure how to get there progressively. `define-obsolete-function-alias` is not a solution because almost noone will see those obsolescence warnings, and to make matters worse the obsolecence will stay (and thus become incorrect) after AUCTeX redefines the function. Maybe we should predefine things like `TeX-mode` not as an alias but as an actual function that emits an obsolecence warning of some kind?). Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 20 08:25:18 2023 Received: (at 61210) by debbugs.gnu.org; 20 Mar 2023 12:25:18 +0000 Received: from localhost ([127.0.0.1]:53889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peEZi-0006vD-Dm for submit@debbugs.gnu.org; Mon, 20 Mar 2023 08:25:18 -0400 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:34884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peEZf-0006v3-ML for 61210@debbugs.gnu.org; Mon, 20 Mar 2023 08:25:16 -0400 Received: from localhost (42-144-46-173.rev.home.ne.jp [42.144.46.173]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 514D15C; Mon, 20 Mar 2023 21:25:13 +0900 (JST) From: Ikumi Keita To: Stefan Monnier Subject: Re: bug#61210: 28.2; Request to modify code which can accidentally overwrite AUCTeX function In-reply-to: References: <13008.1675253596@localhost> Comments: In-reply-to Stefan Monnier message dated "Sat, 18 Mar 2023 18:35:05 -0400." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24107.1679315111.1@localhost> Date: Mon, 20 Mar 2023 21:25:12 +0900 Message-ID: <24110.1679315112@localhost> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61210 Cc: 61210@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 Stefan, >>>>> Stefan Monnier writes: > In Emacs-29 (see commit 18d75b4ab91fef6e344e612580088b714acfdb6e), the > above `defalias` are now predefined once and for all: > ;;;###autoload (defalias 'TeX-mode #'tex-mode) > ;;;###autoload (defalias 'plain-TeX-mode #'plain-tex-mode) > ;;;###autoload (defalias 'LaTeX-mode #'latex-mode) > It's still not ideal, but at least loading `tex-mode` won't override > any other definition such as AUCTeX's. Thanks, then AUCTeX can use LaTeX-mode etc. for names of its own major modes for emacs 29 and later. (I assume that it isn't problematic that AUCTeX overrides unconditionally them by `autoload' for them in the init code and (define-derived-mode LaTeX-mode text-mode "LaTeX" ...) or (defun LaTeX-mode () ...) later.) > I'd like to hear what you think about this "solution", both in the > short term and what we could try to do in the longer term (e.g. I'd > like to aim to get rid of those defaliases, but I'm not sure how to > get there progressively. I see that `major-mode-remap-alist' was also incorporated into emacs-29. So in short term, the conflicts between built-in modes and AUCTeX modes will reduce, and disappear when the least supported emacs version is raised to emacs-29. In the longer term, I think there's no practical problem regardless of existence of those aliases. 1. If they persist, AUCTeX changes the doc string for LaTeX-mode etc. in a brutal manner, but most ordinary users won't mind it. (Maybe it increases difficulty a bit in debug process? But I expect that drawback is small enough.) 2. The only reason that built-in tex-mode.el needs those aliases is, as you wrote in tex-mode.el, "for those users who may have files annotated with -*- LaTeX -*- (e.g. because they received them from someone using AUCTeX)." They can install AUCTeX even when those aliases are erased. Best regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 20 11:07:27 2023 Received: (at 61210) by debbugs.gnu.org; 20 Mar 2023 15:07:27 +0000 Received: from localhost ([127.0.0.1]:55510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peH6c-00089G-Sq for submit@debbugs.gnu.org; Mon, 20 Mar 2023 11:07:27 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:54359) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peH6a-000890-5Q for 61210@debbugs.gnu.org; Mon, 20 Mar 2023 11:07:25 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 3B864800A8; Mon, 20 Mar 2023 11:07:18 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id E539680677; Mon, 20 Mar 2023 11:07:16 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1679324836; bh=n1Ny2soKNiy0qyk3VLEQzD/b1eM9rdcQrL0eFWIqnt4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=TivyCPlOJyrbCEZrvrKf9idRL7olfIByrlkZ3gGRYzmD+32LArwuzOJsZ6JPwEPUn +lLy+gjioJWh0D7VH+P7rCTKn+a3qfkZBm5+2hDaKwgcyX0vrgS5E4FUyYZpDE8dj+ huz8fG0G/Zivy+4PYhEkOn/PEHLZdk+7rYHi+4Z6kCOpuozFNZHCYKNPQxaFGj5SNj jMu9vX9Sx5Ij+hWsI+aR9fwvY7wyJ80617H30K9iPjyF357BayVhwh6cwEU0Hv9oDi OTzE8Fn/vih5Vm2vLyaKnHcABtNE2MCBq/3k6/OJAbLl7T0gF44O9HvjwBI5q+jJv6 JVvO4LOMlYNRg== Received: from pastel (unknown [216.154.34.24]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id C45521232C1; Mon, 20 Mar 2023 11:07:16 -0400 (EDT) From: Stefan Monnier To: Ikumi Keita Subject: Re: bug#61210: 28.2; Request to modify code which can accidentally overwrite AUCTeX function In-Reply-To: <24110.1679315112@localhost> (Ikumi Keita's message of "Mon, 20 Mar 2023 21:25:12 +0900") Message-ID: References: <13008.1675253596@localhost> <24110.1679315112@localhost> Date: Mon, 20 Mar 2023 11:07:14 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.028 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61210 Cc: 61210@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: -3.3 (---) > Thanks, then AUCTeX can use LaTeX-mode etc. for names of its own major > modes for emacs 29 and later. (I assume that it isn't problematic that > AUCTeX overrides unconditionally them by `autoload' for them in the init > code and > (define-derived-mode LaTeX-mode text-mode "LaTeX" ...) > or > (defun LaTeX-mode () ...) > later.) It isn't problematic from Emacs's point of view, no. >From AUCTeX's point of view you do need to take into account that `autoload` does nothing if the function is already defined, so AUCTeX will need to remove the aliases before calling `autoload`. Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 20 13:45:02 2023 Received: (at 61210) by debbugs.gnu.org; 20 Mar 2023 17:45:02 +0000 Received: from localhost ([127.0.0.1]:56705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJZ7-0005wa-Tp for submit@debbugs.gnu.org; Mon, 20 Mar 2023 13:45:02 -0400 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:35204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJZ6-0005vv-11 for 61210@debbugs.gnu.org; Mon, 20 Mar 2023 13:45:00 -0400 Received: from localhost (42-144-46-173.rev.home.ne.jp [42.144.46.173]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id B6EDB5C; Tue, 21 Mar 2023 02:44:56 +0900 (JST) From: Ikumi Keita To: Stefan Monnier Subject: Re: bug#61210: 28.2; Request to modify code which can accidentally overwrite AUCTeX function In-reply-to: References: <13008.1675253596@localhost> <24110.1679315112@localhost> Comments: In-reply-to Stefan Monnier message dated "Mon, 20 Mar 2023 11:07:14 -0400." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26245.1679334295.1@localhost> Date: Tue, 21 Mar 2023 02:44:55 +0900 Message-ID: <26248.1679334295@localhost> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61210 Cc: 61210@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 (-) >>>>> Stefan Monnier writes: > From AUCTeX's point of view you do need to take into account that > `autoload` does nothing if the function is already defined, so AUCTeX > will need to remove the aliases before calling `autoload`. Ah, I see. Thank you. Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 05 19:29:36 2023 Received: (at 61210) by debbugs.gnu.org; 5 Sep 2023 23:29:37 +0000 Received: from localhost ([127.0.0.1]:59791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdfUG-00026G-KD for submit@debbugs.gnu.org; Tue, 05 Sep 2023 19:29:36 -0400 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]:55363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdfUD-00025x-1c for 61210@debbugs.gnu.org; Tue, 05 Sep 2023 19:29:35 -0400 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-500c63c9625so5213085e87.2 for <61210@debbugs.gnu.org>; Tue, 05 Sep 2023 16:29:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693956566; x=1694561366; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=nyl0e6pDnC93GgwzZiil7joqYsRLI9guTKS+Lao7WMo=; b=gW4+JnG6XYq2r6Oej/s31T0uIi2Z2k9La2VpOy5sxR5ajzYcQM+g6EWMlSQFAVBu2R 6aNlnblRfb/hmcFQuiGA0tpjk1wCOnLAmipGY5LBwBTdQX2XI6Pz2vMOLuDJ/qqV0/e3 PGW7aCVzHuEsznFmu3Y5hISRxwvcoybsxrLytCDggEJGVWv7HNR5CyIkUo3j60a1FtO7 shp56Lf7NCD29vi1NbmkY/bMpuDuPvOuV4MFEVC0AUthJKA/0C2rwNvn0xEFgiazUBWm fyGZlgJFb4nNRskvNY4Cfd10ootggpyfFpgEW1PcqCQ+1cPLDn0ve/sKWVUMX0LqTZdG d58g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693956566; x=1694561366; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nyl0e6pDnC93GgwzZiil7joqYsRLI9guTKS+Lao7WMo=; b=lEuDQad6+PLOCQc+mOPjgdWRbLBTPTPEaCuY9Y7SXqKbZqSnVBZlz1oToxjxcPfKbu qosrTnF49uWVk977CkCYB30wUFS5KxZpfR63hn7ci/hQLdksIxyNvFSG5nuObIYbnfJP AH0LcBty0dUH2zASsMHtfWC3f7cMNQ3IHJmq7LvDrpxAJP/eVjMgKqM3W5bGIMtoDuLu WANVIEm6RxbvakNBqkSASNouonhRf1SH6u0+kyXuCbmEq9fKje5ONikP/+XMlA44zBPj bm4iKnAHJiBowaYBiJLBPHEbs5w3gisS3sTY2WmGIU++8M1uchTRkKFAP2PkrYvlIngA XYxQ== X-Gm-Message-State: AOJu0YzZtY+0WoTZlchTMYfPEVYGZEZSGdapERBDkp5sY3jDbJZnk0Jo AFbWXclCEQcALH4Xh2UGVSQ6f7Ms48YPWgckojOQd0lEiew= X-Google-Smtp-Source: AGHT+IH457ri2wdpjZpf4xUDw2/sZx/YraRQmrGmVVPZhkcrUkZSX1Aln03Dyxi6C0NHVkCIDw+07cvQho977W82/3U= X-Received: by 2002:a05:6512:2522:b0:4f8:5886:186d with SMTP id be34-20020a056512252200b004f85886186dmr879159lfb.9.1693956566158; Tue, 05 Sep 2023 16:29:26 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 5 Sep 2023 16:29:25 -0700 From: Stefan Kangas In-Reply-To: <26248.1679334295@localhost> (Ikumi Keita's message of "Tue, 21 Mar 2023 02:44:55 +0900") References: <13008.1675253596@localhost> <24110.1679315112@localhost> <26248.1679334295@localhost> MIME-Version: 1.0 Date: Tue, 5 Sep 2023 16:29:25 -0700 Message-ID: Subject: Re: bug#61210: 28.2; Request to modify code which can accidentally overwrite AUCTeX function To: Ikumi Keita Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61210 Cc: Stefan Monnier , 61210@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 (-) Ikumi Keita writes: >>>>>> Stefan Monnier writes: >> From AUCTeX's point of view you do need to take into account that >> `autoload` does nothing if the function is already defined, so AUCTeX >> will need to remove the aliases before calling `autoload`. > > Ah, I see. Thank you. >From skimming this bug report, it seems like all the issues were resolved here? Or is there anything left to do? From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 05 19:29:50 2023 Received: (at control) by debbugs.gnu.org; 5 Sep 2023 23:29:50 +0000 Received: from localhost ([127.0.0.1]:59794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdfUT-00026g-Tr for submit@debbugs.gnu.org; Tue, 05 Sep 2023 19:29:50 -0400 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]:44226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdfUR-00026R-0w for control@debbugs.gnu.org; Tue, 05 Sep 2023 19:29:48 -0400 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-501bd164fbfso2280201e87.0 for ; Tue, 05 Sep 2023 16:29:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693956580; x=1694561380; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=f5/E06HQaYY7kfBNRFAYt2FGf6QmVrz2kF6EojA6QYU=; b=HBATgvVsf8mULITLRXdhwJOuNk7xzrzfLpqLgl1uQfq0LsAOi9Fz02jOA1mUzlqnzf nZbmGS/lwIWaPR7ZQQ/BdkSKjRpiPRxAs4ugQaf+a84FSwIqEBz2XrS5pLbjsKhJmaoV CRWk0JP+iSt+IM3cjkUSXYdxnTLsTK6AHlAjIj95YG4u2dMnt+kt6ncRxnE6yjwTC+xl d3MP5kUDVfp/DwRd2LI3iInNwFiOspyjQnFF0Hxp7uB9D0i3Skzya1WZQQmn3yq13dH5 Rks0nS84BNco4uh+Y4Su6AefAb8QxI3zbOxW1FKNQzEexgsHrkNbcx26qxCFD4p9qdub 5gCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693956580; x=1694561380; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=f5/E06HQaYY7kfBNRFAYt2FGf6QmVrz2kF6EojA6QYU=; b=lV0HSnXNxOrAVxnR/BKFBLXG4il/Sz1LJyX74Qhf4KwkRSS17Tnl8JV8VH+Z+SPw5E 77hSurEPmz9iW1CJHswF9uvAM28DKadZmht83SPKYuuEnkTihqEw8+Jc9pNyy1i/bfk3 V55IYto49vPLAQPGU6itvnV5Ir/FECib0RxG5mmiScQQ7uq/u/jkOoUg6wMZrENOQkMn gE1BVn9wHbpRzJlEQmgsa9dYkzxLneZHWVrD6TcEhrX8gXQNAeRahfuMtdV4wHQYsGRs MRDHmH158DRL3Rtsi/2772quUXGq8nL6WJIKaca5NkbkNLGwoVrEluOQWkK0prbd8QoA 7Hjw== X-Gm-Message-State: AOJu0YzAiMGa+dGGcVoZC6F7jF+FXa78xUz4kTPqx4Izvf8LH9jGnUPM 72YVJBuI7rqM/H33USGPZDN6xvZ1L7qY74H4469gJc69wFM= X-Google-Smtp-Source: AGHT+IG3IvdaoMd/sOwD5zY4FzNtoDSneG4bpZCl5bEUr8oNbeHioD/7D2Growkc8A5+lqjShklhPdnLAz6+V33gxEc= X-Received: by 2002:a05:6512:214c:b0:500:99e8:573e with SMTP id s12-20020a056512214c00b0050099e8573emr1055786lfr.7.1693956580255; Tue, 05 Sep 2023 16:29:40 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 5 Sep 2023 16:29:39 -0700 From: Stefan Kangas MIME-Version: 1.0 Date: Tue, 5 Sep 2023 16:29:39 -0700 Message-ID: Subject: control message for bug #61210 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" 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 (-) tags 61210 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 06 02:09:06 2023 Received: (at 61210) by debbugs.gnu.org; 6 Sep 2023 06:09:06 +0000 Received: from localhost ([127.0.0.1]:60610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdlir-0001Bb-Nu for submit@debbugs.gnu.org; Wed, 06 Sep 2023 02:09:05 -0400 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:56620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdlin-0001B8-8C for 61210@debbugs.gnu.org; Wed, 06 Sep 2023 02:09:03 -0400 Received: from localhost (42-144-34-11.rev.home.ne.jp [42.144.34.11]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 16E7260; Wed, 6 Sep 2023 15:08:58 +0900 (JST) From: Ikumi Keita To: Stefan Kangas Subject: Re: bug#61210: 28.2; Request to modify code which can accidentally overwrite AUCTeX function In-reply-to: References: <13008.1675253596@localhost> <24110.1679315112@localhost> <26248.1679334295@localhost> Comments: In-reply-to Stefan Kangas message dated "Tue, 05 Sep 2023 16:29:25 -0700." 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: <87899.1693980537.1@localhost> Date: Wed, 06 Sep 2023 15:08:57 +0900 Message-ID: <87901.1693980537@localhost> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61210 Cc: Stefan Monnier , 61210@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 Stefan, >>>>> Stefan Kangas writes: > From skimming this bug report, it seems like all the issues were > resolved here? Or is there anything left to do? As a longer term goal, it would be ideal to remove the current autoloads in my opinion. However, if it is considered difficult to do so for some reason (e.g. keeping backward compatibility), I don't mind much. Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 06 04:02:35 2023 Received: (at 61210-done) by debbugs.gnu.org; 6 Sep 2023 08:02:36 +0000 Received: from localhost ([127.0.0.1]:60729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdnUh-0004A7-LH for submit@debbugs.gnu.org; Wed, 06 Sep 2023 04:02:35 -0400 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]:56612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdnUd-00049s-Dg for 61210-done@debbugs.gnu.org; Wed, 06 Sep 2023 04:02:33 -0400 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-50098cc8967so5268584e87.1 for <61210-done@debbugs.gnu.org>; Wed, 06 Sep 2023 01:02:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693987344; x=1694592144; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=xN81bIVLd3RDxhmj2UWHn0qpWJtb8QKMv0bTxgXFr6g=; b=mgCNogzAkoCIXJ7YP+GPlLCLq0uWiKp08dKi9ZrEdLGcNK20/oiu+DLzcfyqKGRiCA VXg6/jelQO8aTVwG74tUWNrmQwOz2s4OZS2tPM0HZZOeA7e2mdWq0HQ+O/fvf6C0Uh/I pF+vPrH6QIETFvWINttEQ4nRF2dNCVUcazNilPmieTyaahWpfvGnc83g1qFmkWNynXqr KsoPsc7Qwj1jP2imESJIbMGPYxJLDct31V/MgXX4n+6q9ZuyuGH+ecxsurfQZJuiOqw1 UvCrtM1yFgVzbXLprpjFF608dpPZUovRw7vFi6tvuDsrTXR/Kh4wHnHBkJM1BXUR47Zi 8NGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693987344; x=1694592144; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xN81bIVLd3RDxhmj2UWHn0qpWJtb8QKMv0bTxgXFr6g=; b=ZgSzjXOm6jIv2CIQey+GVNFNU/pCMrRCfwm70eyidbgLKb7DmwJ0L1IBWbhIqaGvXy SsNixXkh+/43vmPprf7ahxbnclRv68LaFaMz1Yh9Ye+jt9Zrg9dZlOCb7VS9BC4ls2vw aT6222y02JoaPaqEGeITOsEiYsxxWqLPzOwFzchODAucuLWGltqNLt/mScLsidRrij9H DHLm+2NZMaeUgFcyG01XnFtzqmkJy+oKhzkukCea3gME4MRcvbz5YatYJ6P6boZgDfiW mOQyI17sL1CkQv1SQSs+XRSIkDtdf2WLO6KxCPL+gwwy/iOeZBxXO4FMPV4ChkwfrpVT 1KXA== X-Gm-Message-State: AOJu0Yxoa0qwGBA34suLC0y7jVEWzehmQzLeW1p7uKwt9M9Q514/MaK6 9rFJBGl8K8C5EH8jeMphB763YoHZ7N3UYjc4+jk= X-Google-Smtp-Source: AGHT+IEj0t+SlsxFpVSfJzLghGpKwZok35VTpyTanNSRoapqFNvrOEc1PYc8BxaBj7whVrGbo+azHzJowd5S610Ari8= X-Received: by 2002:a05:6512:3c8a:b0:500:bffa:5b85 with SMTP id h10-20020a0565123c8a00b00500bffa5b85mr1828085lfv.32.1693987344077; Wed, 06 Sep 2023 01:02:24 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 6 Sep 2023 01:02:23 -0700 From: Stefan Kangas In-Reply-To: <87901.1693980537@localhost> References: <13008.1675253596@localhost> <24110.1679315112@localhost> <26248.1679334295@localhost> <87901.1693980537@localhost> MIME-Version: 1.0 Date: Wed, 6 Sep 2023 01:02:23 -0700 Message-ID: Subject: Re: bug#61210: 28.2; Request to modify code which can accidentally overwrite AUCTeX function To: Ikumi Keita Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61210-done Cc: 61210-done@debbugs.gnu.org, Stefan Monnier 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 (-) Ikumi Keita writes: > Hi Stefan, > >>>>>> Stefan Kangas writes: >> From skimming this bug report, it seems like all the issues were >> resolved here? Or is there anything left to do? > > As a longer term goal, it would be ideal to remove the current autoloads > in my opinion. However, if it is considered difficult to do so for some > reason (e.g. keeping backward compatibility), I don't mind much. I think it will be a breaking change unfortunately. To do it safely, we'd have to obsolete the relevant functions, and introduce new ones that are not autoloaded. Which I guess is not ideal here. I'm closing this bug for now. If you can think of anything else, please reopen this bug or file a new one. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 12 17:52:04 2023 Received: (at 61210) by debbugs.gnu.org; 12 Sep 2023 21:52:04 +0000 Received: from localhost ([127.0.0.1]:60204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgBIh-00076J-MO for submit@debbugs.gnu.org; Tue, 12 Sep 2023 17:52:04 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:12204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgBIb-00075l-M2 for 61210@debbugs.gnu.org; Tue, 12 Sep 2023 17:52:03 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 1060C805B2; Tue, 12 Sep 2023 17:51:47 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1694555505; bh=5Twqr+LLxTblnl4a0vPVFvlNm1rW4l/1Zz42eGgXe6E=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=RZYmoR/BRn+txXA6STi0jKM/G2aDF+7xxrlqzPLCmpE1PG/q9poc4LWRDIbjW8o1x m/5oblmJsUQAdaV9vwr7ZahyxoChG3AWGODhCXOTEhLytPrd637mTOroZB8mKIsRmF JGYOT8y/QC8TgjHq9zLgQ4EQ4vGuJGiZyiMPP3de4cJ4NBRFtOFCYxY6VETQoNQ8+g 2I7Qjl9dL4A6h5+F9E7ZNB+ebk65ThaE4uBOQHdWbuzUHj8muNs0KJpM1zYeZl31TS cV0jbpOhU+8hG2uT33uAdTdOJ9Q2nX5TFTxuNCINzMuew7+74jYaR8HSukqMdjlG+k n0VKKF/izTE0w== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id AADB18019D; Tue, 12 Sep 2023 17:51:45 -0400 (EDT) Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9A99B120193; Tue, 12 Sep 2023 17:51:45 -0400 (EDT) From: Stefan Monnier To: Ikumi Keita Subject: Re: bug#61210: 28.2; Request to modify code which can accidentally overwrite AUCTeX function In-Reply-To: <87901.1693980537@localhost> (Ikumi Keita's message of "Wed, 06 Sep 2023 15:08:57 +0900") Message-ID: References: <13008.1675253596@localhost> <24110.1679315112@localhost> <26248.1679334295@localhost> <87901.1693980537@localhost> Date: Tue, 12 Sep 2023 17:50:37 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.099 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61210 Cc: Stefan Kangas , 61210@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: -3.3 (---) >>>>>> Stefan Kangas writes: >> From skimming this bug report, it seems like all the issues were >> resolved here? Or is there anything left to do? > As a longer term goal, it would be ideal to remove the current autoloads > in my opinion. However, if it is considered difficult to do so for some > reason (e.g. keeping backward compatibility), I don't mind much. These autoloads are currently used in the case where a file says `mode: LaTeX` to provide a fallback that redirect to `latex-mode`. We currently don't have any other way to provide such a fallback. Maybe the better long term strategy is to encourage users to use `mode: latex` instead (e.g. by emitting warnings, or highlighting such `mode:` settings), i.e. to use the mode as a specification of the file type *without* enforcing a particular preference of major mode and then rely on the user's `major-mode-remap-alist` to choose between `latex-mode` and `LaTeX-mode` (or any other mode the user may fancy to edit such files). Stefan From unknown Fri Jun 20 07:12:41 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 11 Oct 2023 11:24:06 +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