From unknown Thu Jun 19 12:38:32 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#16573 <16573@debbugs.gnu.org> To: bug#16573 <16573@debbugs.gnu.org> Subject: Status: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile Reply-To: bug#16573 <16573@debbugs.gnu.org> Date: Thu, 19 Jun 2025 19:38:32 +0000 retitle 16573 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on= compile reassign 16573 emacs,auctex submitter 16573 Neil Jackson severity 16573 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 27 13:16:45 2014 Received: (at submit) by debbugs.gnu.org; 27 Jan 2014 18:16:45 +0000 Received: from localhost ([127.0.0.1]:38395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7qjj-0008Nv-C6 for submit@debbugs.gnu.org; Mon, 27 Jan 2014 13:16:45 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46036) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7qaN-000897-Sq for submit@debbugs.gnu.org; Mon, 27 Jan 2014 13:07:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7qaG-00084z-6T for submit@debbugs.gnu.org; Mon, 27 Jan 2014 13:07:03 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_50,FREEMAIL_FROM, MSGID_FROM_MTA_HEADER,RECEIVED_FROM_WINDOWS_HOST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7qaG-00084v-3Q for submit@debbugs.gnu.org; Mon, 27 Jan 2014 13:06:56 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7qa9-0000CK-Cx for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 13:06:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7qa2-00083M-O4 for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 13:06:49 -0500 Received: from blu0-omc1-s35.blu0.hotmail.com ([65.55.116.46]:17515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7qa2-00083E-Jo for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 13:06:42 -0500 Received: from BLU0-SMTP117 ([65.55.116.7]) by blu0-omc1-s35.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 27 Jan 2014 10:06:42 -0800 X-TMN: [4jrCyuWmukyr4L0pY9SBFQolvaH4zS8qnfbSbFBxlfw=] X-Originating-Email: [neil.jackson@live.ca] Message-ID: Received: from moondust.localdomain.nodomain.none ([134.190.135.133]) by BLU0-SMTP117.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 27 Jan 2014 10:06:40 -0800 From: Neil Jackson To: bug-gnu-emacs@gnu.org Subject: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile Date: Mon, 27 Jan 2014 14:06:39 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 27 Jan 2014 18:06:40.0748 (UTC) FILETIME=[875CDAC0:01CF1B8A] X-detected-operating-system: by eggs.gnu.org: Windows XP X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 27 Jan 2014 13:16:39 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Observed behaviour: On updating to latest Auctex from the Package Manager, there were hundreds of warnings during compilation. Expected behaviour: Packages in Elpa compile without warnings. The warnings begin thus: Compiling file /home/nlj/.emacs.d/elpa/auctex-11.87.2/bib-cite.el at Mon Ja= n 27 13:14:02 2014 In bib-cite-minor-mode: bib-cite.el:772:35:Warning: reference to free variable `current-menubar' In bib-apropos: bib-cite.el:1148:19:Warning: Use `with-current-buffer' rather than save-excursion+set-buffer bib-cite.el:1164:12:Warning: `mapcar' called for effect; use `mapc' or `dolist' instead In bib-cite-fontify-red: bib-cite.el:1234:31:Warning: Use `with-current-buffer' rather than save-excursion+set-buffer In bib-cite-fontify-help-xemacs: bib-cite.el:1250:15:Warning: assignment to free variable `font-lock-defaults-computed' In bib-etags: bib-cite.el:1336:23:Warning: Use `with-current-buffer' rather than save-excursion+set-buffer bib-cite.el:1357:54:Warning: Use `with-current-buffer' rather than save-excursion+set-buffer In bib-guess-or-prompt-for-label: bib-cite.el:1687:40:Warning: reference to free variable `LaTeX-label-list' In bib-master-file: bib-cite.el:2129:31:Warning: reference to free variable `TeX-master' In bib-document-TeX-files: bib-cite.el:2187:12:Warning: Use `with-current-buffer' rather than save-excursion+set-buffer In bib-document-citekeys-obarray: bib-cite.el:2241:23:Warning: Use `with-current-buffer' rather than save-excursion+set-buffer In bib-get-bibliography: bib-cite.el:2368:12:Warning: Use `with-current-buffer' rather than save-excursion+set-buffer bib-cite.el:2393:43:Warning: Use `with-current-buffer' rather than save-excursion+set-buffer In bib-create-auto-file: bib-cite.el:2440:30:Warning: reference to free variable `BibTeX-auto-regexp-list' bib-cite.el:2455:14:Warning: reference to free variable `TeX-header-end' bib-cite.el:2456:30:Warning: reference to free variable `LaTeX-header-end' bib-cite.el:2456:15:Warning: assignment to free variable `TeX-header-end' In end of data: bib-cite.el:2623:1:Warning: the following functions are not known to be def= ined: make-local-hook, set-buffer-menubar, delete-extent, delete-menu-item, set-keymap-name, reftex-view-crossref, font-lock-find-font-lock-defaults, extent-detached-p, extent-start-position, extent-end-position, make-extent, set-extent-property, extent-string, TeX-master-file, TeX-auto-write, dired-split Compiling file /home/nlj/.emacs.d/elpa/auctex-11.87.2/context-en.el at Mon = Jan 27 13:14:02 2014 Compiling file /home/nlj/.emacs.d/elpa/auctex-11.87.2/context-nl.el at Mon = Jan 27 13:14:02 2014 Compiling file /home/nlj/.emacs.d/elpa/auctex-11.87.2/context.el at Mon Jan= 27 13:14:02 2014 context.el:71:1:Warning: global/dynamic var `reference' lacks a prefix context.el:74:1:Warning: global/dynamic var `title' lacks a prefix In ConTeXt-paragraph-commands-regexp: context.el:916:25:Warning: reference to free variable `ConTeXt-extra-paragraph-commands' In end of data: context.el:1663:1:Warning: the function `make-local-hook' is not known to be defined. Compiling file /home/nlj/.emacs.d/elpa/auctex-11.87.2/font-latex.el at Mon = Jan 27 13:14:03 2014 In font-latex-update-sectioning-faces: font-latex.el:184:37:Warning: reference to free variable `font-latex-fontify-sectioning' In font-latex-set-syntactic-keywords: font-latex.el:934:9:Warning: assignment to free variable `font-latex-doctex-syntactic-keywords' In font-latex-syntactic-face-function: font-latex.el:949:7:Warning: `char-valid-p' is an obsolete function (as of 23.1); use `characterp' instead. In end of data: font-latex.el:1994:1:Warning: the following functions are not known to be d= efined: face-property-instance, set-face-property Compiling file /home/nlj/.emacs.d/elpa/auctex-11.87.2/latex.el at Mon Jan 2= 7 13:14:03 2014 In LaTeX-section-heading: latex.el:427:11:Warning: assignment to free variable `level' In LaTeX-section-toc: latex.el:443:22:Warning: assignment to free variable `toc' latex.el:444:13:Warning: reference to free variable `toc' In LaTeX-section-section: latex.el:462:16:Warning: reference to free variable `toc' In LaTeX-close-environment: latex.el:599:14:Warning: `next-line' used from Lisp code That command is designed for interactive use only In LaTeX-auto-prepare: latex.el:1244:9:Warning: assignment to free variable `LaTeX-auto-arguments' latex.el:1245:9:Warning: assignment to free variable `LaTeX-auto-optional' latex.el:1246:9:Warning: assignment to free variable `LaTeX-auto-env-args' latex.el:1247:9:Warning: assignment to free variable `LaTeX-auto-style' In LaTeX-listify-package-options: latex.el:1288:45:Warning: `delete-backward-char' used from Lisp code That command is designed for interactive use only In LaTeX-auto-cleanup: latex.el:1299:32:Warning: reference to free variable `LaTeX-auto-bibliograp= hy' latex.el:1299:32:Warning: assignment to free variable `LaTeX-auto-bibliography' latex.el:1302:17:Warning: reference to free variable `LaTeX-auto-style' latex.el:1310:37:Warning: assignment to free variable `LaTeX-auto-style' latex.el:1324:29:Warning: assignment to free variable `TeX-auto-file' latex.el:1370:25:Warning: assignment to free variable `TeX-auto-symbol' latex.el:1366:9:Warning: reference to free variable `LaTeX-auto-arguments' latex.el:1374:9:Warning: reference to free variable `LaTeX-auto-optional' latex.el:1403:27:Warning: assignment to free variable `LaTeX-auto-environme= nt' latex.el:1381:9:Warning: reference to free variable `LaTeX-auto-env-args' latex.el:1391:46:Warning: assignment to free variable `TeX-auto-symbol' ... In GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.8.2) of 2013-08-14 on buildvm-15.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.11404000 System Description: Fedora release 19 (Schr=C3=B6dinger=E2=80=99s Cat) Configured using: `configure '--build=3Dx86_64-redhat-linux-gnu' '--host=3Dx86_64-redhat-linux-gnu' '--program-prefix=3D' '--disable-dependency-tracking' '--prefix=3D/usr' '--exec-prefix=3D/usr' '--bindir=3D/usr/bin' '--sbindir=3D/usr/sbin' '--sysconfdir=3D/etc' '--datadir=3D/usr/share' '--includedir=3D/usr/include' '--libdir=3D/usr/lib64' '--libexecdir=3D/usr/libexec' '--localstatedir=3D/var' '--sharedstatedir=3D/var/lib' '--mandir=3D/usr/share/man' '--infodir=3D/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=3Dgtk3' '--with-gpm=3Dno' 'build_alias=3Dx86_64-redhat-linux-gnu' 'host_alias=3Dx86_64-redhat-linux-gnu' 'CFLAGS=3D-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector --param=3Dssp-buffer-size=3D4 -grecord-gcc-switches -m64 -mtune=3Dgeneric' 'LDFLAGS=3D-Wl,-z,relro '' Important settings: value of $LC_MONETARY: en_DK.utf8 value of $LC_NUMERIC: en_DK.utf8 value of $LC_TIME: en_DK.utf8 value of $LANG: en_CA.utf8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Summary Minor modes in effect: recentf-mode: t show-paren-mode: t display-time-mode: t display-battery-mode: t cua-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-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 buffer-read-only: t size-indication-mode: t column-number-mode: t line-number-mode: t global-visual-line-mode: t visual-line-mode: t transient-mark-mode: t Recent input: =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 C-c C-c=20 C-c M-x r e p o r t - e Recent messages: Sending... Mark set [2 times] Sending via mail... Sending email=20 Sending email done gnutls.c: [0] (Emacs) fatal error: The TLS connection was non-properly term= inated. Mark set Saving file /home/nlj/Mail/archive/sent/2014-01... Wrote /home/nlj/Mail/archive/sent/2014-01 Sending...done Load-path shadows: /home/nlj/.emacs.d/elpa/auctex-11.87/plain-tex hides /usr/share/emacs/site-= lisp/auctex/plain-tex /home/nlj/.emacs.d/elpa/auctex-11.87/tex hides /usr/share/emacs/site-lisp/a= uctex/tex /home/nlj/.emacs.d/elpa/auctex-11.87/tex-buf hides /usr/share/emacs/site-li= sp/auctex/tex-buf /home/nlj/.emacs.d/elpa/auctex-11.87/preview hides /usr/share/emacs/site-li= sp/auctex/preview /home/nlj/.emacs.d/elpa/auctex-11.87/font-latex hides /usr/share/emacs/site= -lisp/auctex/font-latex /home/nlj/.emacs.d/elpa/auctex-11.87/context-en hides /usr/share/emacs/site= -lisp/auctex/context-en /home/nlj/.emacs.d/elpa/auctex-11.87/toolbar-x hides /usr/share/emacs/site-= lisp/auctex/toolbar-x /home/nlj/.emacs.d/elpa/auctex-11.87/texmathp hides /usr/share/emacs/site-l= isp/auctex/texmathp /home/nlj/.emacs.d/elpa/auctex-11.87/tex-bar hides /usr/share/emacs/site-li= sp/auctex/tex-bar /home/nlj/.emacs.d/elpa/auctex-11.87/context hides /usr/share/emacs/site-li= sp/auctex/context /home/nlj/.emacs.d/elpa/auctex-11.87/tex-info hides /usr/share/emacs/site-l= isp/auctex/tex-info /home/nlj/.emacs.d/elpa/auctex-11.87/latex hides /usr/share/emacs/site-lisp= /auctex/latex /home/nlj/.emacs.d/elpa/auctex-11.87/tex-style hides /usr/share/emacs/site-= lisp/auctex/tex-style /home/nlj/.emacs.d/elpa/auctex-11.87/tex-jp hides /usr/share/emacs/site-lis= p/auctex/tex-jp /home/nlj/.emacs.d/elpa/auctex-11.87/multi-prompt hides /usr/share/emacs/si= te-lisp/auctex/multi-prompt /home/nlj/.emacs.d/elpa/auctex-11.87/tex-fold hides /usr/share/emacs/site-l= isp/auctex/tex-fold /home/nlj/.emacs.d/elpa/auctex-11.87/bib-cite hides /usr/share/emacs/site-l= isp/auctex/bib-cite /home/nlj/.emacs.d/elpa/auctex-11.87/context-nl hides /usr/share/emacs/site= -lisp/auctex/context-nl /home/nlj/.emacs.d/elpa/auctex-11.87/tex-mik hides /usr/share/emacs/site-li= sp/auctex/tex-mik /home/nlj/.emacs.d/elpa/auctex-11.87/tex-font hides /usr/share/emacs/site-l= isp/auctex/tex-font /home/nlj/.emacs.d/elpa/auctex-11.87/prv-emacs hides /usr/share/emacs/site-= lisp/auctex/prv-emacs /home/nlj/.emacs.d/elpa/auctex-11.87/tex-site hides /usr/share/emacs/site-l= isp/tex-site /usr/share/emacs/site-lisp/site-start.d/maxima-modes hides /usr/share/emacs= /site-lisp/maxima/site_start.d/maxima-modes /home/nlj/.emacs.d/elpa/org-20130930/ob-maxima hides /usr/share/emacs/24.3/= lisp/org/ob-maxima /home/nlj/.emacs.d/elpa/org-20130930/ob-haskell hides /usr/share/emacs/24.3= /lisp/org/ob-haskell /home/nlj/.emacs.d/elpa/org-20130930/org-indent hides /usr/share/emacs/24.3= /lisp/org/org-indent /home/nlj/.emacs.d/elpa/org-20130930/org-habit hides /usr/share/emacs/24.3/= lisp/org/org-habit /home/nlj/.emacs.d/elpa/org-20130930/org-datetree hides /usr/share/emacs/24= .3/lisp/org/org-datetree /home/nlj/.emacs.d/elpa/org-20130930/ob-lob hides /usr/share/emacs/24.3/lis= p/org/ob-lob /home/nlj/.emacs.d/elpa/org-20130930/ob-ruby hides /usr/share/emacs/24.3/li= sp/org/ob-ruby /home/nlj/.emacs.d/elpa/org-20130930/org-table hides /usr/share/emacs/24.3/= lisp/org/org-table /home/nlj/.emacs.d/elpa/org-20130930/org-install hides /usr/share/emacs/24.= 3/lisp/org/org-install /home/nlj/.emacs.d/elpa/org-20130930/org-mhe hides /usr/share/emacs/24.3/li= sp/org/org-mhe /home/nlj/.emacs.d/elpa/org-20130930/org-crypt hides /usr/share/emacs/24.3/= lisp/org/org-crypt /home/nlj/.emacs.d/elpa/org-20130930/org-eshell hides /usr/share/emacs/24.3= /lisp/org/org-eshell /home/nlj/.emacs.d/elpa/org-20130930/ob-picolisp hides /usr/share/emacs/24.= 3/lisp/org/ob-picolisp /home/nlj/.emacs.d/elpa/org-20130930/org-id hides /usr/share/emacs/24.3/lis= p/org/org-id /home/nlj/.emacs.d/elpa/org-20130930/ob-clojure hides /usr/share/emacs/24.3= /lisp/org/ob-clojure /home/nlj/.emacs.d/elpa/org-20130930/org-pcomplete hides /usr/share/emacs/2= 4.3/lisp/org/org-pcomplete /home/nlj/.emacs.d/elpa/org-20130930/ob-scheme hides /usr/share/emacs/24.3/= lisp/org/ob-scheme /home/nlj/.emacs.d/elpa/org-20130930/org-bibtex hides /usr/share/emacs/24.3= /lisp/org/org-bibtex /home/nlj/.emacs.d/elpa/org-20130930/org-docview hides /usr/share/emacs/24.= 3/lisp/org/org-docview /home/nlj/.emacs.d/elpa/org-20130930/ob-mscgen hides /usr/share/emacs/24.3/= lisp/org/ob-mscgen /home/nlj/.emacs.d/elpa/org-20130930/org-irc hides /usr/share/emacs/24.3/li= sp/org/org-irc /home/nlj/.emacs.d/elpa/org-20130930/org-faces hides /usr/share/emacs/24.3/= lisp/org/org-faces /home/nlj/.emacs.d/elpa/org-20130930/ob-lilypond hides /usr/share/emacs/24.= 3/lisp/org/ob-lilypond /home/nlj/.emacs.d/elpa/org-20130930/ob-ditaa hides /usr/share/emacs/24.3/l= isp/org/ob-ditaa /home/nlj/.emacs.d/elpa/org-20130930/ob-python hides /usr/share/emacs/24.3/= lisp/org/ob-python /home/nlj/.emacs.d/elpa/org-20130930/ob-css hides /usr/share/emacs/24.3/lis= p/org/ob-css /home/nlj/.emacs.d/elpa/org-20130930/org-capture hides /usr/share/emacs/24.= 3/lisp/org/org-capture /home/nlj/.emacs.d/elpa/org-20130930/org-protocol hides /usr/share/emacs/24= .3/lisp/org/org-protocol /home/nlj/.emacs.d/elpa/org-20130930/org hides /usr/share/emacs/24.3/lisp/o= rg/org /home/nlj/.emacs.d/elpa/org-20130930/org-src hides /usr/share/emacs/24.3/li= sp/org/org-src /home/nlj/.emacs.d/elpa/org-20130930/ob-eval hides /usr/share/emacs/24.3/li= sp/org/ob-eval /home/nlj/.emacs.d/elpa/org-20130930/ob-gnuplot hides /usr/share/emacs/24.3= /lisp/org/ob-gnuplot /home/nlj/.emacs.d/elpa/org-20130930/org-version hides /usr/share/emacs/24.= 3/lisp/org/org-version /home/nlj/.emacs.d/elpa/org-20130930/org-mobile hides /usr/share/emacs/24.3= /lisp/org/org-mobile /home/nlj/.emacs.d/elpa/org-20130930/org-plot hides /usr/share/emacs/24.3/l= isp/org/org-plot /home/nlj/.emacs.d/elpa/org-20130930/ob-emacs-lisp hides /usr/share/emacs/2= 4.3/lisp/org/ob-emacs-lisp /home/nlj/.emacs.d/elpa/org-20130930/ob-exp hides /usr/share/emacs/24.3/lis= p/org/ob-exp /home/nlj/.emacs.d/elpa/org-20130930/org-footnote hides /usr/share/emacs/24= .3/lisp/org/org-footnote /home/nlj/.emacs.d/elpa/org-20130930/ob-sh hides /usr/share/emacs/24.3/lisp= /org/ob-sh /home/nlj/.emacs.d/elpa/org-20130930/ob-perl hides /usr/share/emacs/24.3/li= sp/org/ob-perl /home/nlj/.emacs.d/elpa/org-20130930/org-compat hides /usr/share/emacs/24.3= /lisp/org/org-compat /home/nlj/.emacs.d/elpa/org-20130930/org-inlinetask hides /usr/share/emacs/= 24.3/lisp/org/org-inlinetask /home/nlj/.emacs.d/elpa/org-20130930/org-gnus hides /usr/share/emacs/24.3/l= isp/org/org-gnus /home/nlj/.emacs.d/elpa/org-20130930/ob-screen hides /usr/share/emacs/24.3/= lisp/org/ob-screen /home/nlj/.emacs.d/elpa/org-20130930/org-colview hides /usr/share/emacs/24.= 3/lisp/org/org-colview /home/nlj/.emacs.d/elpa/org-20130930/ob-shen hides /usr/share/emacs/24.3/li= sp/org/ob-shen /home/nlj/.emacs.d/elpa/org-20130930/ob-sass hides /usr/share/emacs/24.3/li= sp/org/ob-sass /home/nlj/.emacs.d/elpa/org-20130930/org-list hides /usr/share/emacs/24.3/l= isp/org/org-list /home/nlj/.emacs.d/elpa/org-20130930/org-bbdb hides /usr/share/emacs/24.3/l= isp/org/org-bbdb /home/nlj/.emacs.d/elpa/org-20130930/ob-lisp hides /usr/share/emacs/24.3/li= sp/org/ob-lisp /home/nlj/.emacs.d/elpa/org-20130930/org-info hides /usr/share/emacs/24.3/l= isp/org/org-info /home/nlj/.emacs.d/elpa/org-20130930/ob-keys hides /usr/share/emacs/24.3/li= sp/org/ob-keys /home/nlj/.emacs.d/elpa/org-20130930/ob-io hides /usr/share/emacs/24.3/lisp= /org/ob-io /home/nlj/.emacs.d/elpa/org-20130930/ob-comint hides /usr/share/emacs/24.3/= lisp/org/ob-comint /home/nlj/.emacs.d/elpa/org-20130930/ob-sqlite hides /usr/share/emacs/24.3/= lisp/org/ob-sqlite /home/nlj/.emacs.d/elpa/org-20130930/org-rmail hides /usr/share/emacs/24.3/= lisp/org/org-rmail /home/nlj/.emacs.d/elpa/org-20130930/org-entities hides /usr/share/emacs/24= .3/lisp/org/org-entities /home/nlj/.emacs.d/elpa/org-20130930/org-clock hides /usr/share/emacs/24.3/= lisp/org/org-clock /home/nlj/.emacs.d/elpa/org-20130930/org-agenda hides /usr/share/emacs/24.3= /lisp/org/org-agenda /home/nlj/.emacs.d/elpa/org-20130930/ob-tangle hides /usr/share/emacs/24.3/= lisp/org/ob-tangle /home/nlj/.emacs.d/elpa/org-20130930/org-timer hides /usr/share/emacs/24.3/= lisp/org/org-timer /home/nlj/.emacs.d/elpa/org-20130930/ob-org hides /usr/share/emacs/24.3/lis= p/org/ob-org /home/nlj/.emacs.d/elpa/org-20130930/ob-matlab hides /usr/share/emacs/24.3/= lisp/org/ob-matlab /home/nlj/.emacs.d/elpa/org-20130930/ob-ref hides /usr/share/emacs/24.3/lis= p/org/ob-ref /home/nlj/.emacs.d/elpa/org-20130930/ob-java hides /usr/share/emacs/24.3/li= sp/org/ob-java /home/nlj/.emacs.d/elpa/org-20130930/org-attach hides /usr/share/emacs/24.3= /lisp/org/org-attach /home/nlj/.emacs.d/elpa/org-20130930/ob-octave hides /usr/share/emacs/24.3/= lisp/org/ob-octave /home/nlj/.emacs.d/elpa/org-20130930/ob-fortran hides /usr/share/emacs/24.3= /lisp/org/ob-fortran /home/nlj/.emacs.d/elpa/org-20130930/ob-js hides /usr/share/emacs/24.3/lisp= /org/ob-js /home/nlj/.emacs.d/elpa/org-20130930/ob-sql hides /usr/share/emacs/24.3/lis= p/org/ob-sql /home/nlj/.emacs.d/elpa/org-20130930/org-feed hides /usr/share/emacs/24.3/l= isp/org/org-feed /home/nlj/.emacs.d/elpa/org-20130930/ob-C hides /usr/share/emacs/24.3/lisp/= org/ob-C /home/nlj/.emacs.d/elpa/org-20130930/ob-ledger hides /usr/share/emacs/24.3/= lisp/org/ob-ledger /home/nlj/.emacs.d/elpa/org-20130930/ob-plantuml hides /usr/share/emacs/24.= 3/lisp/org/ob-plantuml /home/nlj/.emacs.d/elpa/org-20130930/org-mouse hides /usr/share/emacs/24.3/= lisp/org/org-mouse /home/nlj/.emacs.d/elpa/org-20130930/org-element hides /usr/share/emacs/24.= 3/lisp/org/org-element /home/nlj/.emacs.d/elpa/org-20130930/org-loaddefs hides /usr/share/emacs/24= .3/lisp/org/org-loaddefs /home/nlj/.emacs.d/elpa/org-20130930/ob-scala hides /usr/share/emacs/24.3/l= isp/org/ob-scala /home/nlj/.emacs.d/elpa/org-20130930/ob-awk hides /usr/share/emacs/24.3/lis= p/org/ob-awk /home/nlj/.emacs.d/elpa/org-20130930/org-macs hides /usr/share/emacs/24.3/l= isp/org/org-macs /home/nlj/.emacs.d/elpa/org-20130930/ob-calc hides /usr/share/emacs/24.3/li= sp/org/ob-calc /home/nlj/.emacs.d/elpa/org-20130930/org-w3m hides /usr/share/emacs/24.3/li= sp/org/org-w3m /home/nlj/.emacs.d/elpa/org-20130930/ob-dot hides /usr/share/emacs/24.3/lis= p/org/ob-dot /home/nlj/.emacs.d/elpa/org-20130930/org-ctags hides /usr/share/emacs/24.3/= lisp/org/org-ctags /home/nlj/.emacs.d/elpa/org-20130930/org-archive hides /usr/share/emacs/24.= 3/lisp/org/org-archive /home/nlj/.emacs.d/elpa/org-20130930/ob-R hides /usr/share/emacs/24.3/lisp/= org/ob-R /home/nlj/.emacs.d/elpa/org-20130930/ob-asymptote hides /usr/share/emacs/24= .3/lisp/org/ob-asymptote /home/nlj/.emacs.d/elpa/org-20130930/ob-latex hides /usr/share/emacs/24.3/l= isp/org/ob-latex /home/nlj/.emacs.d/elpa/org-20130930/ob-ocaml hides /usr/share/emacs/24.3/l= isp/org/ob-ocaml /home/nlj/.emacs.d/elpa/org-20130930/ob-table hides /usr/share/emacs/24.3/l= isp/org/ob-table /home/nlj/.emacs.d/elpa/org-20130930/ob hides /usr/share/emacs/24.3/lisp/or= g/ob Features: (smtpmail gnus-cite gnus-kill gnus-ml disp-table nndraft nnmh url-handlers nnrss mm-url utf-7 nnimap utf7 gnutls nnfolder parse-time netrc gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime dig nntp gnus-cache mailalias mailclient qp cus-edit help-mode shadow sort mail-extr emacsbug sendmail misearch multi-isearch sgml-mode ibuf-ext ibuffer timezone texinfo toolbar-x prv-emacs reporter desktop context plain-tex latex tex-style tex-buf tex dbus xml rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox derived org-table gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util doc-view jka-compr image-mode dired vc-git org-id rx ob-octave calc calc-loaddefs calc-macs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine autoload tar-mode mule-util mail-utils network-stream starttls url-http tls mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source eieio mm-util mail-prsvr password-cache url-vars mailcap finder-inf org-element org-rmail org-mhe org-irc org-info org-gnus gnus-util org-docview org-bibtex bibtex org-bbdb org-w3m org-latex org-export-latex org-beamer org-exp org-exp-blocks org-agenda footnote org byte-opt warnings bytecomp byte-compile cconv org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs auctex-autoloads csv-mode-autoloads org-autoloads info package cl-macs gv edmacro kmacro recentf tree-widget saveplace wheatgrass-theme paren time battery cua-base cus-start cus-load preview-latex ido ess-toolbar ess-mouse mouseme thingatpt browse-url ess-menu ess-swv ess-noweb ess-noweb-font-lock-mode ess-bugs-l essd-els ess-sas-d ess-sas-l ess-sas-a shell pcomplete ess-arc-d ess-vst-d ess-xls-d ess-lsp-l ess-sta-d ess-sta-l cc-vars cc-defs make-regexp ess-sp6-d ess-sp5-d ess-sp3-d ess-julia ess-r-d compile ess-tracebug ess-roxy advice advice-preload hideshow ess-help ess-developer ess-r-args eldoc help-fns ess-s-l ess ess-inf comint ansi-color ring ess-mode ess-noweb-mode ess-utils ess-custom executable ess-compat ess-site color-theme easymenu wid-edit cl cl-lib bbdb-autoloads tex-site auto-loads time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 27 13:23:41 2014 Received: (at 16573) by debbugs.gnu.org; 27 Jan 2014 18:23:41 +0000 Received: from localhost ([127.0.0.1]:38407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7qqS-00008j-Ab for submit@debbugs.gnu.org; Mon, 27 Jan 2014 13:23:40 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:55809) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7qqQ-00008b-74 for 16573@debbugs.gnu.org; Mon, 27 Jan 2014 13:23:38 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1W7qqP-0004zW-Dz; Mon, 27 Jan 2014 13:23:37 -0500 From: Glenn Morris To: Neil Jackson Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile References: X-Spook: ASPIC ARPA ANC crypto anarchy Compsec Comirex mania kilo X-Ran: my\^4[UdB:z0p+d%'sTrUp{;.BU9I_?ab))!IiFcY\WV:0y~Gt$.fq{`[e45R(7,/.v^4i X-Hue: cyan X-Debbugs-No-Ack: yes X-Attribution: GM Date: Mon, 27 Jan 2014 13:23:37 -0500 In-Reply-To: (Neil Jackson's message of "Mon, 27 Jan 2014 14:06:39 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.5 (-----) X-Debbugs-Envelope-To: 16573 Cc: 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.5 (-----) None of the following are (clear evidence of) bugs. See my comments in http://debbugs.gnu.org/16572#8 Neil Jackson wrote: > bib-cite.el:772:35:Warning: reference to free variable `current-menubar' > > In bib-apropos: > bib-cite.el:1148:19:Warning: Use `with-current-buffer' rather than > save-excursion+set-buffer > bib-cite.el:1164:12:Warning: `mapcar' called for effect; use `mapc' or > `dolist' instead > > In bib-cite-fontify-red: > bib-cite.el:1234:31:Warning: Use `with-current-buffer' rather than > save-excursion+set-buffer > > In bib-cite-fontify-help-xemacs: > bib-cite.el:1250:15:Warning: assignment to free variable > `font-lock-defaults-computed' > > In bib-etags: > bib-cite.el:1336:23:Warning: Use `with-current-buffer' rather than > save-excursion+set-buffer > bib-cite.el:1357:54:Warning: Use `with-current-buffer' rather than > save-excursion+set-buffer > > In bib-guess-or-prompt-for-label: > bib-cite.el:1687:40:Warning: reference to free variable `LaTeX-label-list' > > In bib-master-file: > bib-cite.el:2129:31:Warning: reference to free variable `TeX-master' > > In bib-document-TeX-files: > bib-cite.el:2187:12:Warning: Use `with-current-buffer' rather than > save-excursion+set-buffer > > In bib-document-citekeys-obarray: > bib-cite.el:2241:23:Warning: Use `with-current-buffer' rather than > save-excursion+set-buffer > > In bib-get-bibliography: > bib-cite.el:2368:12:Warning: Use `with-current-buffer' rather than > save-excursion+set-buffer > bib-cite.el:2393:43:Warning: Use `with-current-buffer' rather than > save-excursion+set-buffer > > In bib-create-auto-file: > bib-cite.el:2440:30:Warning: reference to free variable > `BibTeX-auto-regexp-list' > bib-cite.el:2455:14:Warning: reference to free variable `TeX-header-end' > bib-cite.el:2456:30:Warning: reference to free variable `LaTeX-header-end' > bib-cite.el:2456:15:Warning: assignment to free variable `TeX-header-end' > > In end of data: > bib-cite.el:2623:1:Warning: the following functions are not known to be defined: > make-local-hook, set-buffer-menubar, delete-extent, > delete-menu-item, set-keymap-name, reftex-view-crossref, > font-lock-find-font-lock-defaults, extent-detached-p, > extent-start-position, extent-end-position, make-extent, > set-extent-property, extent-string, TeX-master-file, > TeX-auto-write, dired-split > > Compiling file /home/nlj/.emacs.d/elpa/auctex-11.87.2/context-en.el at Mon Jan 27 13:14:02 2014 > > Compiling file /home/nlj/.emacs.d/elpa/auctex-11.87.2/context-nl.el at Mon Jan 27 13:14:02 2014 > > Compiling file /home/nlj/.emacs.d/elpa/auctex-11.87.2/context.el at Mon Jan 27 13:14:02 2014 > context.el:71:1:Warning: global/dynamic var `reference' lacks a prefix > context.el:74:1:Warning: global/dynamic var `title' lacks a prefix > > In ConTeXt-paragraph-commands-regexp: > context.el:916:25:Warning: reference to free variable > `ConTeXt-extra-paragraph-commands' > > In end of data: > context.el:1663:1:Warning: the function `make-local-hook' is not known to be > defined. > > Compiling file /home/nlj/.emacs.d/elpa/auctex-11.87.2/font-latex.el at Mon Jan 27 13:14:03 2014 > > In font-latex-update-sectioning-faces: > font-latex.el:184:37:Warning: reference to free variable > `font-latex-fontify-sectioning' > > In font-latex-set-syntactic-keywords: > font-latex.el:934:9:Warning: assignment to free variable > `font-latex-doctex-syntactic-keywords' > > In font-latex-syntactic-face-function: > font-latex.el:949:7:Warning: `char-valid-p' is an obsolete function (as of > 23.1); use `characterp' instead. > > In end of data: > font-latex.el:1994:1:Warning: the following functions are not known to be defined: > face-property-instance, set-face-property > > Compiling file /home/nlj/.emacs.d/elpa/auctex-11.87.2/latex.el at Mon Jan 27 13:14:03 2014 > > In LaTeX-section-heading: > latex.el:427:11:Warning: assignment to free variable `level' > > In LaTeX-section-toc: > latex.el:443:22:Warning: assignment to free variable `toc' > latex.el:444:13:Warning: reference to free variable `toc' > > In LaTeX-section-section: > latex.el:462:16:Warning: reference to free variable `toc' > > In LaTeX-close-environment: > latex.el:599:14:Warning: `next-line' used from Lisp code > That command is designed for interactive use only > > In LaTeX-auto-prepare: > latex.el:1244:9:Warning: assignment to free variable `LaTeX-auto-arguments' > latex.el:1245:9:Warning: assignment to free variable `LaTeX-auto-optional' > latex.el:1246:9:Warning: assignment to free variable `LaTeX-auto-env-args' > latex.el:1247:9:Warning: assignment to free variable `LaTeX-auto-style' > > In LaTeX-listify-package-options: > latex.el:1288:45:Warning: `delete-backward-char' used from Lisp code > That command is designed for interactive use only > > In LaTeX-auto-cleanup: > latex.el:1299:32:Warning: reference to free variable `LaTeX-auto-bibliography' > latex.el:1299:32:Warning: assignment to free variable > `LaTeX-auto-bibliography' > latex.el:1302:17:Warning: reference to free variable `LaTeX-auto-style' > latex.el:1310:37:Warning: assignment to free variable `LaTeX-auto-style' > latex.el:1324:29:Warning: assignment to free variable `TeX-auto-file' > latex.el:1370:25:Warning: assignment to free variable `TeX-auto-symbol' > latex.el:1366:9:Warning: reference to free variable `LaTeX-auto-arguments' > latex.el:1374:9:Warning: reference to free variable `LaTeX-auto-optional' > latex.el:1403:27:Warning: assignment to free variable `LaTeX-auto-environment' > latex.el:1381:9:Warning: reference to free variable `LaTeX-auto-env-args' > latex.el:1391:46:Warning: assignment to free variable `TeX-auto-symbol' From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 27 19:22:33 2014 Received: (at 16573) by debbugs.gnu.org; 28 Jan 2014 00:22:33 +0000 Received: from localhost ([127.0.0.1]:38465 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7wRl-0001w6-0z for submit@debbugs.gnu.org; Mon, 27 Jan 2014 19:22:33 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:19046) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7wRj-0001vx-O8 for 16573@debbugs.gnu.org; Mon, 27 Jan 2014 19:22:32 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+IO1/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av4EABK/CFHO+IO1/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="46209889" Received: from 206-248-131-181.dsl.teksavvy.com (HELO pastel.home) ([206.248.131.181]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 27 Jan 2014 19:22:31 -0500 Received: by pastel.home (Postfix, from userid 20848) id 20C8160EDE; Mon, 27 Jan 2014 19:22:31 -0500 (EST) From: Stefan Monnier To: Neil Jackson Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile Message-ID: References: Date: Mon, 27 Jan 2014 19:22:31 -0500 In-Reply-To: (Neil Jackson's message of "Mon, 27 Jan 2014 14:06:39 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16573 Cc: 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > On updating to latest Auctex from the Package Manager, there were > hundreds of warnings during compilation. Indeed. > Expected behaviour: > Packages in Elpa compile without warnings. ELPA packages are not magical that way, no. It completely depends on the package's maintainers to try and make their code "warning-free", and even if they do that, it's difficult to make sure it's warning-free under all Emacs versions (some maintainers insist on warning-freeness to the point of disabling warnings or obfuscating code, which I find to be both very bad ideas). For GNU ELPA packages, I occasionally try to address some of those warnings. In the case of AUCTeX, I haven't tackled that job yet. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 28 03:14:27 2014 Received: (at 16573) by debbugs.gnu.org; 28 Jan 2014 08:14:27 +0000 Received: from localhost ([127.0.0.1]:38665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W83oQ-0006QX-AY for submit@debbugs.gnu.org; Tue, 28 Jan 2014 03:14:26 -0500 Received: from deliver.uni-koblenz.de ([141.26.64.15]:37041) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W83oL-0006QL-45 for 16573@debbugs.gnu.org; Tue, 28 Jan 2014 03:14:22 -0500 Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 590821A8433; Tue, 28 Jan 2014 09:14:20 +0100 (CET) X-Virus-Scanned: amavisd-new at uni-koblenz.de Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nkOe7j5gI6qK; Tue, 28 Jan 2014 09:14:19 +0100 (CET) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Received: from thinkpad-t61 (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id DE8FA1A8431; Tue, 28 Jan 2014 09:14:19 +0100 (CET) From: Tassilo Horn To: Stefan Monnier Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile References: Date: Tue, 28 Jan 2014 09:14:14 +0100 In-Reply-To: (Stefan Monnier's message of "Mon, 27 Jan 2014 19:22:31 -0500") Message-ID: <87k3dkttex.fsf@gnu.org> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 16573 Cc: Neil Jackson , 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (-) Stefan Monnier writes: Hi Neil & Stefan, >> On updating to latest Auctex from the Package Manager, there were >> hundreds of warnings during compilation. > > Indeed. Oh, yes. Hm, compiling AUCTeX from its Git sources issues just one warning (and a few more in preview). With the ELPA package, there're much more of them... Ah, ok, AUCTeX has an lpath.el that disables byte-compile warnings. Now I also get pages over pages of warnings. Most of them are references to free variables and unknown functions from style files. But the style files can't be used without AUCTeX being loaded anyway, so at runtime the vars/functions will be defined. Any good idea to fix those? I could add requires, but that would possibly slow down the compilation and is not neccessary as explained above. I could add defvars (but no declare-functions cause that's not available on older emacsen/xemacs) for the free variables, but again that's not really neccessary. I could change AUCTeX' build process so that free-vars and unresolved warnings are ignored for the style files, but that won't affect the ELPA builds... >> Expected behaviour: >> Packages in Elpa compile without warnings. > > ELPA packages are not magical that way, no. It completely depends on > the package's maintainers to try and make their code "warning-free", > and even if they do that, it's difficult to make sure it's > warning-free under all Emacs versions (some maintainers insist on > warning-freeness to the point of disabling warnings or obfuscating > code, which I find to be both very bad ideas). AUCTeX tries to be compatible with Emacs 21.4+ and even XEmacs 21.4+, so changing code just for eliminating some warning is hard because is requires quite some testing effort to check all supported emacsen in all supported versions (or at least the oldest and the newest). > For GNU ELPA packages, I occasionally try to address some of those > warnings. In the case of AUCTeX, I haven't tackled that job yet. Now that I know that there are warnings, I'll tackle those that can be addressed in a meaningful manner myself. Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 28 11:33:27 2014 Received: (at 16573) by debbugs.gnu.org; 28 Jan 2014 16:33:27 +0000 Received: from localhost ([127.0.0.1]:39455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8BbK-0004Yn-F4 for submit@debbugs.gnu.org; Tue, 28 Jan 2014 11:33:27 -0500 Received: from outrelay06.libero.it ([212.52.84.110]:36019) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W842l-0006mP-T9 for 16573@debbugs.gnu.org; Tue, 28 Jan 2014 03:29:16 -0500 X-CTCH-Spam: Unknown X-CTCH-RefID: str=0001.0A0C020A.52E76A5A.0143,ss=1,re=0.000,fgs=0 X-libjamoibt: 1823 Received: from mail-ve0-f173.google.com (209.85.128.173) by outrelay06.libero.it (8.6.033) (authenticated as giordano.mose@libero.it) id 52D7EF47026F2F9C for 16573@debbugs.gnu.org; Tue, 28 Jan 2014 09:29:14 +0100 Received: by mail-ve0-f173.google.com with SMTP id oz11so44022veb.18 for <16573@debbugs.gnu.org>; Tue, 28 Jan 2014 00:29:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=Cr0LlNwGbkk8WjHwDwPglaOzOuFDVWJj/0t4rutFk5o=; b=QGQqDBJtx5I4OJW+u1OoMNoM29dqsya3sUnuFF77q7nznXkwj9437ILwX0Tz+83OaV TYsFEodkHScoTIf+WRyi8gAwhhDCL5MLkiWFg3u4yMaoEdiBnl6RarCInSgtxjyIzoym PH2rIWqwjA5w/u0FsO+261W8gG1p9owzaTqyJxH9hsRG3pGmqMnf5oCcG3v7Lfk/Cfth O+o/pvpzDdVw+X59qh4umJAnU+Rb1oyC8n2O6aGOmlYyGM/0yV/ntTqQHckljU7Neaca VxHiD8GVJAHmgmX5Ym/XK3aUsKC9mmDMBdAA+17eyiAAC3Os0MmZ3nS5t+R9OkK7s5AO 7gxA== X-Received: by 10.58.187.161 with SMTP id ft1mr68281vec.54.1390897753133; Tue, 28 Jan 2014 00:29:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.91.230 with HTTP; Tue, 28 Jan 2014 00:28:32 -0800 (PST) In-Reply-To: References: From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Tue, 28 Jan 2014 09:28:32 +0100 Message-ID: Subject: Re: [Bug-AUCTeX] bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile To: Stefan Monnier Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 16573 X-Mailman-Approved-At: Tue, 28 Jan 2014 11:33:23 -0500 Cc: Neil Jackson , 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) 2014-01-28 Stefan Monnier : > In the case of AUCTeX, I haven't tackled that job yet. Since the release of AUCTeX 11.87, some compilation warnings have been addressed, e.g. see these commits: http://git.savannah.gnu.org/cgit/auctex.git/commit/?id=3D6178c5110a24175d0d= 5df1410e66039ad383daba http://git.savannah.gnu.org/cgit/auctex.git/commit/?id=3D04927d01a3dfd8b088= 6d1070abe8e11e925f0e4e Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 28 12:07:16 2014 Received: (at 16573) by debbugs.gnu.org; 28 Jan 2014 17:07:16 +0000 Received: from localhost ([127.0.0.1]:39459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8C83-0005Ns-O0 for submit@debbugs.gnu.org; Tue, 28 Jan 2014 12:07:15 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:49265) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8C81-0005Ni-F7 for 16573@debbugs.gnu.org; Tue, 28 Jan 2014 12:07:13 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1W8C7y-0004k8-LW; Tue, 28 Jan 2014 12:07:10 -0500 From: Glenn Morris To: Tassilo Horn Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile References: <87k3dkttex.fsf@gnu.org> X-Spook: Medco Skipjack ASO NWO BLU-97 A/B Echelon hackers Nazi X-Ran: =Q[m:t-@9/mIw\ZxRiX^Q01sC~(,)Gm( X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 28 Jan 2014 12:07:10 -0500 In-Reply-To: <87k3dkttex.fsf@gnu.org> (Tassilo Horn's message of "Tue, 28 Jan 2014 09:14:14 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.5 (-----) X-Debbugs-Envelope-To: 16573 Cc: 16573@debbugs.gnu.org, Stefan Monnier , Neil Jackson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.5 (-----) Tassilo Horn wrote: > (but no declare-functions cause that's not available on older > emacsen/xemacs) It's available since Emacs 22.2, ie 6 years, or the past 9 Emacs releases. If XEmacs has not added even a compat stub in that time, which would take about a minute, that seems telling. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 28 12:28:00 2014 Received: (at submit) by debbugs.gnu.org; 28 Jan 2014 17:28:00 +0000 Received: from localhost ([127.0.0.1]:39475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8CS7-0005tK-SY for submit@debbugs.gnu.org; Tue, 28 Jan 2014 12:28:00 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41931) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8CS5-0005tB-1v for submit@debbugs.gnu.org; Tue, 28 Jan 2014 12:27:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8CRx-0004ra-Nb for submit@debbugs.gnu.org; Tue, 28 Jan 2014 12:27:56 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8CRx-0004rS-LG for submit@debbugs.gnu.org; Tue, 28 Jan 2014 12:27:49 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8CRr-0006Bj-Fn for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 12:27:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8CRl-0004lk-5Q for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 12:27:43 -0500 Received: from plane.gmane.org ([80.91.229.3]:35025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8CRk-0004l2-VK for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 12:27:37 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W8CRi-0004O1-4s for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 18:27:34 +0100 Received: from pd9eb0c26.dip0.t-ipconnect.de ([217.235.12.38]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Jan 2014 18:27:34 +0100 Received: from Stromeko by pd9eb0c26.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Jan 2014 18:27:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Achim Gratz Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile Date: Tue, 28 Jan 2014 18:27:22 +0100 Organization: Linux Private Site Lines: 26 Message-ID: <8761p4585h.fsf@Rainer.invalid> References: <87k3dkttex.fsf__27231.9985939705$1390896945$gmane$org@gnu.org> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb0c26.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:bM4LizmuLmyi4Zry/PmY0ZK5jPE= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.1 (----) Tassilo Horn writes: > Any good idea to fix those? I could add requires, but that would > possibly slow down the compilation and is not neccessary as explained > above. I could add defvars (but no declare-functions cause that's not > available on older emacsen/xemacs) for the free variables, but again > that's not really neccessary. I could change AUCTeX' build process so > that free-vars and unresolved warnings are ignored for the style files, > but that won't affect the ELPA builds... In Org we use compatibility macros, mostly using the org namespace, but in a few cases simply addign a missing definition. More specifically for declare-function: (eval-and-compile (unless (fboundp 'declare-function) (defmacro declare-function (fn file &optional arglist fileonly) `(autoload ',fn ,file)))) Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf rackAttack V1.04R1: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 28 12:28:48 2014 Received: (at submit) by debbugs.gnu.org; 28 Jan 2014 17:28:48 +0000 Received: from localhost ([127.0.0.1]:39479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8CSu-0005v0-An for submit@debbugs.gnu.org; Tue, 28 Jan 2014 12:28:48 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42286) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8CSs-0005uq-55 for submit@debbugs.gnu.org; Tue, 28 Jan 2014 12:28:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8CSm-0005C2-HK for submit@debbugs.gnu.org; Tue, 28 Jan 2014 12:28:46 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FSL_HELO_BARE_IP_2,RCVD_NUMERIC_HELO autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8CSm-0005Bw-FB for submit@debbugs.gnu.org; Tue, 28 Jan 2014 12:28:40 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8CSh-0007kX-4B for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 12:28:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8CSa-00056Y-To for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 12:28:35 -0500 Received: from plane.gmane.org ([80.91.229.3]:35106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8CSa-00056P-NB for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 12:28:28 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W8CSX-0004jD-S7 for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 18:28:25 +0100 Received: from 37.160.117.223 ([37.160.117.223]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Jan 2014 18:28:25 +0100 Received: from thierry.volpiatto by 37.160.117.223 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Jan 2014 18:28:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Thierry Volpiatto Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile Date: Tue, 28 Jan 2014 18:28:09 +0100 Organization: Emacs Helm Lines: 23 Message-ID: <87eh3sm2xi.fsf@gmail.com> References: <87k3dkttex.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 37.160.117.223 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:W3Xx5mHhX0383ytsXxk/Yon3eqA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.2 (---) Glenn Morris writes: > Tassilo Horn wrote: > >> (but no declare-functions cause that's not available on older >> emacsen/xemacs) > > It's available since Emacs 22.2, ie 6 years, or the past 9 Emacs releases. > If XEmacs has not added even a compat stub in that time, which would > take about a minute, that seems telling. While you are at it, I had often complaints about some completing-read's working badly with helm. This is because they are not written correctly in Auctex. I have submitted a bug long time ago but never had an answer. If you are interested to fix this you can have a look here: https://github.com/thierryvolpiatto/auctex -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 28 15:43:44 2014 Received: (at 16573) by debbugs.gnu.org; 28 Jan 2014 20:43:44 +0000 Received: from localhost ([127.0.0.1]:39596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8FVX-0004h5-U0 for submit@debbugs.gnu.org; Tue, 28 Jan 2014 15:43:44 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:53145) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8FVU-0004gs-13 for 16573@debbugs.gnu.org; Tue, 28 Jan 2014 15:43:40 -0500 Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 8BBC820AF9; Tue, 28 Jan 2014 15:43:37 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Tue, 28 Jan 2014 15:43:37 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:date :in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=anTSoyaEk84r9dYQnZnXSbJ0dTM=; b=DMlb96NW9vV2moxEG3g7XdyvujJh N87PC51bYWjo07Oho1eydK64vNVgVukMpTOETJNC2y4XCCbNYJu7yf/QhvcJviuv Baf0PYvpFAHYaYvBt6nhIQcCerY5RppEcg+2skax1YEOnMUjffwVRDwCFpsu8Ub4 52aETueKhZOqHds= X-Sasl-enc: KYMjNthHRcu+2enwaIcnZigeAmONjOoFZ4idc5VBCZZe 1390941817 Received: from thinkpad-t61 (unknown [95.88.145.206]) by mail.messagingengine.com (Postfix) with ESMTPA id BCAD96801E0; Tue, 28 Jan 2014 15:43:36 -0500 (EST) From: Tassilo Horn To: Glenn Morris Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile References: <87k3dkttex.fsf@gnu.org> Date: Tue, 28 Jan 2014 21:43:30 +0100 In-Reply-To: (Glenn Morris's message of "Tue, 28 Jan 2014 12:07:10 -0500") Message-ID: <87wqhjx2fh.fsf@gnu.org> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16573 Cc: 16573@debbugs.gnu.org, Stefan Monnier , Neil Jackson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Glenn Morris writes: >> (but no declare-functions cause that's not available on older >> emacsen/xemacs) > > It's available since Emacs 22.2, ie 6 years, or the past 9 Emacs releases. > If XEmacs has not added even a compat stub in that time, which would > take about a minute, that seems telling. I've just checked XEmacs 21.5_beta33, and no, it's not there. And it wouldn't matter much since AUCTeX tries to support at least the latest released XEmacs version which is 21.4. (Actually, I'm not really trying hard to achieve that actively, but I try not to break that support carelessly.) Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 28 16:36:47 2014 Received: (at 16573) by debbugs.gnu.org; 28 Jan 2014 21:36:47 +0000 Received: from localhost ([127.0.0.1]:39601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8GKt-000613-5T for submit@debbugs.gnu.org; Tue, 28 Jan 2014 16:36:47 -0500 Received: from mercure.iro.umontreal.ca ([132.204.24.67]:37001) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8GKr-00060v-OV for 16573@debbugs.gnu.org; Tue, 28 Jan 2014 16:36:46 -0500 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 117CC84C82; Tue, 28 Jan 2014 16:36:45 -0500 (EST) Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 030FC1E5874; Tue, 28 Jan 2014 16:36:21 -0500 (EST) Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id D94BDB4108; Tue, 28 Jan 2014 16:36:20 -0500 (EST) From: Stefan Monnier To: Achim Gratz Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile Message-ID: References: <87k3dkttex.fsf__27231.9985939705$1390896945$gmane$org@gnu.org> <8761p4585h.fsf@Rainer.invalid> Date: Tue, 28 Jan 2014 16:36:20 -0500 In-Reply-To: <8761p4585h.fsf@Rainer.invalid> (Achim Gratz's message of "Tue, 28 Jan 2014 18:27:22 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 16573 Cc: 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.8 (--) > (eval-and-compile > (unless (fboundp 'declare-function) > (defmacro declare-function (fn file &optional arglist fileonly) > `(autoload ',fn ,file)))) Yuck! This is an ugly trick trying to silence warnings. Better macroexpand it to nil: you'll get warnings in older Emacsen, but at least you won't end up changing the code's behavior. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 28 17:29:38 2014 Received: (at submit) by debbugs.gnu.org; 28 Jan 2014 22:29:38 +0000 Received: from localhost ([127.0.0.1]:39623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8HA2-0007Lm-8J for submit@debbugs.gnu.org; Tue, 28 Jan 2014 17:29:38 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53286) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8H9z-0007Le-Uk for submit@debbugs.gnu.org; Tue, 28 Jan 2014 17:29:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8H9s-0005cK-9u for submit@debbugs.gnu.org; Tue, 28 Jan 2014 17:29:35 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8H9s-0005cC-7A for submit@debbugs.gnu.org; Tue, 28 Jan 2014 17:29:28 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8H9l-00034t-Sz for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 17:29:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8H9f-0005ac-E4 for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 17:29:21 -0500 Received: from plane.gmane.org ([80.91.229.3]:58558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8H9f-0005aV-6j for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 17:29:15 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W8H9d-0000JL-WD for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 23:29:14 +0100 Received: from pd9eb33cd.dip0.t-ipconnect.de ([217.235.51.205]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Jan 2014 23:29:13 +0100 Received: from Stromeko by pd9eb33cd.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Jan 2014 23:29:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Achim Gratz Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile Date: Tue, 28 Jan 2014 23:29:02 +0100 Organization: Linux Private Site Lines: 32 Message-ID: <87ppnb4u6p.fsf@Rainer.invalid> References: <87k3dkttex.fsf__27231.9985939705$1390896945$gmane$org@gnu.org> <8761p4585h.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb33cd.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:kEHnkeA50ogt7wJDIRLNfZa/vno= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.1 (----) Stefan Monnier writes: >> (eval-and-compile >> (unless (fboundp 'declare-function) >> (defmacro declare-function (fn file &optional arglist fileonly) >> `(autoload ',fn ,file)))) > > Yuck! This is an ugly trick trying to silence warnings. Not much uglier than declare-function itself. These things would perhaps benefit if one could declare-require the source file in question (it's almost invariably callbacks and guarded calls into external packages that end up needing this treatment), but that still doesn't address how to make it backward compatible. > Better macroexpand it to nil: you'll get warnings in older Emacsen, but > at least you won't end up changing the code's behavior. That's certainly not recommended for everyone and everything, but since declare-function must used in situations were the function to be declared is known to be already defined at runtime, the autoload will never do anything anyway; if it does it was a bug to begin with. Defining this nil and then not finding the one warning that must be dealt with in the hundreds of spurious warnings is decidedly worse. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Waldorf MIDI Implementation & additional documentation: http://Synth.Stromeko.net/Downloads.html#WaldorfDocs From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 28 20:26:49 2014 Received: (at 16573) by debbugs.gnu.org; 29 Jan 2014 01:26:49 +0000 Received: from localhost ([127.0.0.1]:39694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8JvU-0003Hc-T5 for submit@debbugs.gnu.org; Tue, 28 Jan 2014 20:26:49 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:37334) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8JvS-0003HN-Ih for 16573@debbugs.gnu.org; Tue, 28 Jan 2014 20:26:47 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpZg5/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBrEfkA6RCgOIYZwZgV6DFQ X-IPAS-Result: Av4EABK/CFFFpZg5/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBrEfkA6RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="46306487" Received: from 69-165-152-57.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.165.152.57]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 28 Jan 2014 20:26:42 -0500 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id AA837AE267; Tue, 28 Jan 2014 20:26:42 -0500 (EST) From: Stefan Monnier To: Achim Gratz Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile Message-ID: References: <87k3dkttex.fsf__27231.9985939705$1390896945$gmane$org@gnu.org> <8761p4585h.fsf@Rainer.invalid> <87ppnb4u6p.fsf@Rainer.invalid> Date: Tue, 28 Jan 2014 20:26:42 -0500 In-Reply-To: <87ppnb4u6p.fsf@Rainer.invalid> (Achim Gratz's message of "Tue, 28 Jan 2014 23:29:02 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16573 Cc: 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > That's certainly not recommended for everyone and everything, but since > declare-function must used in situations were the function to be > declared is known to be already defined at runtime, the autoload will > never do anything anyway; It does do something: - it does something during byte-compilation. - it does something during run-time if the function is "already loaded when you call it" but not "already loaded when you load the file". Both of those situations are quite common. The reason why you don't suffer from it is not that the autoload doesn't do anything, but because the autoload is usually harmless. > Defining this nil and then not finding the one warning that must be > dealt with in the hundreds of spurious warnings is decidedly worse. Admittedly I haven't spent much time dealing with compatibility with older Emacsen lately, but in the past I've never found warnings useful for that work. So I only ever used warnings to help debug & improve my code on my "main" Emacs version, and completely ignored warnings when porting to older Emacsen (relying on testing and bug-reports instead). Of course, it's probably got to do with taste, but if you're going to use `autoload', then I strongly suggest you name it `-declare-function', since when "adding a missing definition" you're better off defining it *exactly* like a recentish Emacs. Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 29 01:27:05 2014 Received: (at submit) by debbugs.gnu.org; 29 Jan 2014 06:27:05 +0000 Received: from localhost ([127.0.0.1]:39734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8Oc3-0003P9-Qx for submit@debbugs.gnu.org; Wed, 29 Jan 2014 01:27:04 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54492) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8Obv-0003Oc-Qc for submit@debbugs.gnu.org; Wed, 29 Jan 2014 01:26:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8Obo-0003tw-FO for submit@debbugs.gnu.org; Wed, 29 Jan 2014 01:26:55 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8Obo-0003tp-CQ for submit@debbugs.gnu.org; Wed, 29 Jan 2014 01:26:48 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8Obi-00058g-0n for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2014 01:26:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8Obb-0003qn-RZ for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2014 01:26:41 -0500 Received: from plane.gmane.org ([80.91.229.3]:36738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8Obb-0003qb-LN for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2014 01:26:35 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W8Oba-0000K4-LA for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2014 07:26:34 +0100 Received: from pd9eb36fe.dip0.t-ipconnect.de ([217.235.54.254]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Jan 2014 07:26:34 +0100 Received: from Stromeko by pd9eb36fe.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Jan 2014 07:26:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Achim Gratz Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile Date: Wed, 29 Jan 2014 07:26:24 +0100 Organization: Linux Private Site Lines: 58 Message-ID: <87txcni9rj.fsf@Rainer.invalid> References: <87k3dkttex.fsf__27231.9985939705$1390896945$gmane$org@gnu.org> <8761p4585h.fsf@Rainer.invalid> <87ppnb4u6p.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb36fe.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:Vzi/0jjmx5kDST1iD1xp5yZX0pI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.1 (----) Stefan Monnier writes: >> That's certainly not recommended for everyone and everything, but since >> declare-function must used in situations were the function to be >> declared is known to be already defined at runtime, the autoload will >> never do anything anyway; > > It does do something: > - it does something during byte-compilation. That's the intended effect. I haven't checked if it could in fact skip the compile part of eval-and-compile; if so, that would be an obvious improvement. > - it does something during run-time if the function is "already loaded > when you call it" but not "already loaded when you load the file". Which is not supposed to happen in these cases, otherwise you'd be able to use a plain require. > Both of those situations are quite common. The reason why you don't > suffer from it is not that the autoload doesn't do anything, but because > the autoload is usually harmless. That too. >> Defining this nil and then not finding the one warning that must be >> dealt with in the hundreds of spurious warnings is decidedly worse. > > Admittedly I haven't spent much time dealing with compatibility with > older Emacsen lately, but in the past I've never found warnings useful > for that work. So I only ever used warnings to help debug & improve my > code on my "main" Emacs version, and completely ignored warnings when > porting to older Emacsen (relying on testing and bug-reports instead). I can't speak for other eLisp libraries, but testing came late for Org and test coverage isn't quite up where it would need to be for this to work. Besides, testing on older Emacsen gets rather difficult since they don't compile on my system any more and I'd need to set up a container or VM. > Of course, it's probably got to do with taste, but if you're going to > use `autoload', then I strongly suggest you name it > `-declare-function', since when "adding a missing definition" you're > better off defining it *exactly* like a recentish Emacs. Moving it to Org namespace may be in the cards given that Org already does that for most other compatibility macros. If you know a way to have it really just declare the function without byte-compiler magic let me know. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Samples for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 29 08:54:15 2014 Received: (at 16573) by debbugs.gnu.org; 29 Jan 2014 13:54:15 +0000 Received: from localhost ([127.0.0.1]:39994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8Vao-0007FL-EU for submit@debbugs.gnu.org; Wed, 29 Jan 2014 08:54:14 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:39289) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8Val-0007FB-9z for 16573@debbugs.gnu.org; Wed, 29 Jan 2014 08:54:12 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpZg5/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IPAS-Result: Av4EABK/CFFFpZg5/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="46334549" Received: from 69-165-152-57.dsl.teksavvy.com (HELO pastel.home) ([69.165.152.57]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 29 Jan 2014 08:54:10 -0500 Received: by pastel.home (Postfix, from userid 20848) id E40B86032D; Wed, 29 Jan 2014 08:54:09 -0500 (EST) From: Stefan Monnier To: Achim Gratz Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile Message-ID: References: <87k3dkttex.fsf__27231.9985939705$1390896945$gmane$org@gnu.org> <8761p4585h.fsf@Rainer.invalid> <87ppnb4u6p.fsf@Rainer.invalid> <87txcni9rj.fsf@Rainer.invalid> Date: Wed, 29 Jan 2014 08:54:09 -0500 In-Reply-To: <87txcni9rj.fsf@Rainer.invalid> (Achim Gratz's message of "Wed, 29 Jan 2014 07:26:24 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16573 Cc: 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) >> Admittedly I haven't spent much time dealing with compatibility with >> older Emacsen lately, but in the past I've never found warnings useful >> for that work. So I only ever used warnings to help debug & improve my >> code on my "main" Emacs version, and completely ignored warnings when >> porting to older Emacsen (relying on testing and bug-reports instead). > I can't speak for other eLisp libraries, but testing came late for Org > and test coverage isn't quite up where it would need to be for this to > work. By testing I meant "start up an old Emacs and try to play a bit with the feature see if it seems to work". Of course, if you have a test suite scripted up and all, that's even better. > Besides, testing on older Emacsen gets rather difficult since they > don't compile on my system any more and I'd need to set up a container > or VM. "dpkg" was able to install emacs19, emacs20, emacs21, emacs22, emacs23, emacs24 on my machines, so I haven't had to build them by hand. Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 29 14:30:45 2014 Received: (at 16573) by debbugs.gnu.org; 29 Jan 2014 19:30:45 +0000 Received: from localhost ([127.0.0.1]:40614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8aqS-0007bW-Bx for submit@debbugs.gnu.org; Wed, 29 Jan 2014 14:30:44 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:51382) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8aqP-0007bN-4Z for 16573@debbugs.gnu.org; Wed, 29 Jan 2014 14:30:42 -0500 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 999C020617; Wed, 29 Jan 2014 14:30:40 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Wed, 29 Jan 2014 14:30:40 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:date :in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=D8BFr8pBteET32ag+1wiZRSptBM=; b=eebg/JzM+k01unlExnyzI49p5ZwX aHNOfMLLib/Sx2AxvsmHUm+TADBBD/5OAYfMCIpVZvSpwDqekSKC6r24JpTr/pAa TYxueYnKK2XzevRjrHw0Nr5VBPUDm8j/jb/ntn4sXoosx/EWb1V8iR0pOw7rGWlp nU6v8ppdFmVTJV8= X-Sasl-enc: 9tXnwQAxLfzuHW5ZgPqutApcgSd6ckv6AP07zvycdF+s 1391023840 Received: from thinkpad-t61.fritz.box (unknown [95.88.145.206]) by mail.messagingengine.com (Postfix) with ESMTPA id C4BBA680097; Wed, 29 Jan 2014 14:30:39 -0500 (EST) From: Tassilo Horn To: =?utf-8?Q?Mos=C3=A8?= Giordano Subject: Re: bug#16573: [Bug-AUCTeX] bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile References: Date: Wed, 29 Jan 2014 20:30:33 +0100 In-Reply-To: (=?utf-8?Q?=22Mos=C3=A8?= Giordano"'s message of "Tue, 28 Jan 2014 09:28:32 +0100") Message-ID: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16573 Cc: 16573@debbugs.gnu.org, Stefan Monnier , Neil Jackson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) >> In the case of AUCTeX, I haven't tackled that job yet. > > Since the release of AUCTeX 11.87, some compilation warnings have been > addressed, I'm just trying to squash the gazillion warnings in auctex/style. Those are all free-vars and unresolved function warnings that will be ok at runtime (style files can assume auctex is loaded, so they don't need to require any auctex core files). I've thought a simple fix would be to add a file local variable section like this: ;; Local Variables: ;; byte-compile-warnings: (free-vars unresolved) ;; End: That does indeed stop the unresolved function warnings but not the free-vars warnings. Why not? Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 29 15:00:16 2014 Received: (at 16573) by debbugs.gnu.org; 29 Jan 2014 20:00:16 +0000 Received: from localhost ([127.0.0.1]:40702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8bJ2-0008N0-1F for submit@debbugs.gnu.org; Wed, 29 Jan 2014 15:00:16 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:57176) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8bIz-0008Mr-Lh for 16573@debbugs.gnu.org; Wed, 29 Jan 2014 15:00:14 -0500 Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 2A09720C19; Wed, 29 Jan 2014 15:00:13 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Wed, 29 Jan 2014 15:00:13 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:date :in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=b1e/mQHLFZn7IWY/XZgDCd/Y5fk=; b=HCUO7sVFMNg0WpOTqqUFzZq3jF1H GHf+QhHfDopBSwmuBu4KH5O7t7+3IfxcEI4Fa13IrD7v3Qu/AMeiZKwxtr6AqtkL ro5nLSox1gno37lMkrFUR4/j4HsWJdfgdrN3gjg/Vpd72Tsc8YA+6+Q7xCcjQL12 BQ86xR0M+2cj57w= X-Sasl-enc: b9rds8RnkbLbH6m5kI/LtbqyTihYYRd+RRM9DPkDxOTO 1391025612 Received: from thinkpad-t61.fritz.box (unknown [95.88.145.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 91B63680147; Wed, 29 Jan 2014 15:00:12 -0500 (EST) From: Tassilo Horn To: Thierry Volpiatto Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile References: <87k3dkttex.fsf@gnu.org> <87eh3sm2xi.fsf__44933.1636344597$1390940459$gmane$org@gmail.com> Date: Wed, 29 Jan 2014 21:00:06 +0100 In-Reply-To: <87eh3sm2xi.fsf__44933.1636344597$1390940459$gmane$org@gmail.com> (Thierry Volpiatto's message of "Tue, 28 Jan 2014 18:28:09 +0100") Message-ID: <8738k68sop.fsf@thinkpad-t61.fritz.box> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16573 Cc: 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Thierry Volpiatto writes: Hi Thierry, > While you are at it, I had often complaints about some completing-read's > working badly with helm. > This is because they are not written correctly in Auctex. > I have submitted a bug long time ago but never had an answer. Oh, sorry, I must have missed it. > If you are interested to fix this you can have a look here: > > https://github.com/thierryvolpiatto/auctex Fixed, thanks! Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 29 15:18:57 2014 Received: (at 16573) by debbugs.gnu.org; 29 Jan 2014 20:18:57 +0000 Received: from localhost ([127.0.0.1]:40706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8bb7-0000LZ-2I for submit@debbugs.gnu.org; Wed, 29 Jan 2014 15:18:57 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:45876) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8bb6-0000LS-2o for 16573@debbugs.gnu.org; Wed, 29 Jan 2014 15:18:56 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1W8bb4-00068z-Qr; Wed, 29 Jan 2014 15:18:54 -0500 From: Glenn Morris To: Tassilo Horn Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile References: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> X-Spook: Aladdin satellite imagery offensive information warfare X-Ran: QoBak:0y88_u\E&Mkc.Al&~JCs~{!&z]ptfwpP~)]Ef;cmtGmeR*\4U}:pehM)$*kFNa*f X-Hue: red X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 29 Jan 2014 15:18:54 -0500 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.5 (-----) X-Debbugs-Envelope-To: 16573 Cc: =?utf-8?Q?Mos=C3=A8?= Giordano , Neil Jackson , 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.5 (-----) Tassilo Horn wrote: > ;; Local Variables: > ;; byte-compile-warnings: (free-vars unresolved) > ;; End: > > That does indeed stop the unresolved function warnings but not the > free-vars warnings. Why not? Personally I think this is bad practice. Anyway, aren't you missing a "not": byte-compile-warnings: (not free-vars unresolved) ? Note that this only works since Emacs 23.1. In older Emacs it will at best have precisely the opposite effect to the one you intend. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 30 00:54:13 2014 Received: (at 16573) by debbugs.gnu.org; 30 Jan 2014 05:54:13 +0000 Received: from localhost ([127.0.0.1]:40802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8kZo-0005Tg-UV for submit@debbugs.gnu.org; Thu, 30 Jan 2014 00:54:13 -0500 Received: from mail-wg0-f44.google.com ([74.125.82.44]:63303) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8kZm-0005TW-29 for 16573@debbugs.gnu.org; Thu, 30 Jan 2014 00:54:10 -0500 Received: by mail-wg0-f44.google.com with SMTP id l18so5272399wgh.23 for <16573@debbugs.gnu.org>; Wed, 29 Jan 2014 21:54:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=J2kM5OdYQXAz3OD6wgbUGd4I8zgxvtVi2fGrM6ZbTkY=; b=boL+V0HGXcHibEGSl3IdK9MvKORV8hPHx3ZG4Q5dg39FhHlcy4s8panRqwZXxHQg3A ZfnzzW4LI1bTzFJqXctd1kS+yK5p6GB/aIJY6E5REUWFVtHdXwX4WQzPN01uCLghhsU5 Xz5ze8z4wDRyLE0JS6uPy/6xJ/PG7KMC4955ovqbrAHUVjCqpgJzP054fVlQdNl9blUf PPGOHbMKHqOfs+2hGqyw9hmr2/K3WiT8IcrAHwlHj2ZwaYrBu2Q51Nji9B7qIQxET8lY ZsOFYBqzPvlSRG1TgmYFRprxJs/0NbrIjmd9VGzdf8Ib8zq5PLY2c/n60EaKNeiaTXcO 4Z2g== X-Received: by 10.194.176.163 with SMTP id cj3mr7790094wjc.8.1391061248714; Wed, 29 Jan 2014 21:54:08 -0800 (PST) Received: from dell-14z ([37.160.139.170]) by mx.google.com with ESMTPSA id uq2sm9940267wjc.5.2014.01.29.21.54.05 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 29 Jan 2014 21:54:08 -0800 (PST) From: Thierry Volpiatto To: Tassilo Horn Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile Organization: Emacs Helm References: <87k3dkttex.fsf@gnu.org> <87eh3sm2xi.fsf__44933.1636344597$1390940459$gmane$org@gmail.com> <8738k68sop.fsf@thinkpad-t61.fritz.box> Date: Thu, 30 Jan 2014 06:53:41 +0100 In-Reply-To: <8738k68sop.fsf@thinkpad-t61.fritz.box> (Tassilo Horn's message of "Wed, 29 Jan 2014 21:00:06 +0100") Message-ID: <874n4mc8wq.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16573 Cc: 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.7 (/) Tassilo Horn writes: > Thierry Volpiatto writes: > > Hi Thierry, > >> While you are at it, I had often complaints about some completing-read's >> working badly with helm. >> This is because they are not written correctly in Auctex. >> I have submitted a bug long time ago but never had an answer. > > Oh, sorry, I must have missed it. > >> If you are interested to fix this you can have a look here: >> >> https://github.com/thierryvolpiatto/auctex > > Fixed, thanks! Great! I will remove my branch. > Bye, > Tassilo -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 30 02:59:24 2014 Received: (at 16573) by debbugs.gnu.org; 30 Jan 2014 07:59:24 +0000 Received: from localhost ([127.0.0.1]:40810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8mWy-0008WP-4s for submit@debbugs.gnu.org; Thu, 30 Jan 2014 02:59:24 -0500 Received: from deliver.uni-koblenz.de ([141.26.64.15]:49584) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8mWt-0008WE-LN for 16573@debbugs.gnu.org; Thu, 30 Jan 2014 02:59:20 -0500 Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id A5A8C1A8543; Thu, 30 Jan 2014 08:59:17 +0100 (CET) X-Virus-Scanned: amavisd-new at uni-koblenz.de Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MMI6zCql7SmB; Thu, 30 Jan 2014 08:59:17 +0100 (CET) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Received: from thinkpad-t61 (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 315781A8542; Thu, 30 Jan 2014 08:59:16 +0100 (CET) From: Tassilo Horn To: Glenn Morris Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile References: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> Date: Thu, 30 Jan 2014 08:59:11 +0100 In-Reply-To: (Glenn Morris's message of "Wed, 29 Jan 2014 15:18:54 -0500") Message-ID: <87ppn9nbn4.fsf@gnu.org> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 16573 Cc: =?utf-8?Q?Mos=C3=A8?= Giordano , Neil Jackson , 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (-) Glenn Morris writes: Hi Glenn, >> ;; Local Variables: >> ;; byte-compile-warnings: (free-vars unresolved) >> ;; End: >> >> That does indeed stop the unresolved function warnings but not the >> free-vars warnings. Why not? > > Personally I think this is bad practice. Why? As said, all those style files use LaTeX-* and TeX-* vars and functions defined by AUCTeX's core. However, the style files can't be required individually, but AUCTeX itself loads them dynamically depending on the \usepackages and \documentclass you use in your LaTeX document. And then it's evident that those vars/functions are defined. > Anyway, aren't you missing a "not": > > byte-compile-warnings: (not free-vars unresolved) > > ? Arg, indeed. :-) > Note that this only works since Emacs 23.1. In older Emacs it will at > best have precisely the opposite effect to the one you intend. Well, AUCTeX releases have a (setq byte-compile-warnings nil) in a custom lpath.el that's used when byte-compiling anyway. My intent is only to get rid of warnings that are actually ok just for the ELPA builds. Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 30 03:08:04 2014 Received: (at 16573) by debbugs.gnu.org; 30 Jan 2014 08:08:04 +0000 Received: from localhost ([127.0.0.1]:40819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8mfL-0000JB-Uh for submit@debbugs.gnu.org; Thu, 30 Jan 2014 03:08:04 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:54583) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8mfJ-0000It-SN for 16573@debbugs.gnu.org; Thu, 30 Jan 2014 03:08:02 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1W8mfH-0002le-MH; Thu, 30 Jan 2014 03:07:59 -0500 From: Glenn Morris To: Tassilo Horn Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile References: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> <87ppn9nbn4.fsf@gnu.org> X-Spook: jihad clones UFO JPL STARLAN Israel FSF brigand X-Ran: $!s4)+"/0f(*aJ+P%cTVcfu![>#V0_*Ga($r?LN;4n!zFJk^|cFi1ybjn.~!dt=~<=:G=+ X-Hue: magenta X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 30 Jan 2014 03:07:59 -0500 In-Reply-To: <87ppn9nbn4.fsf@gnu.org> (Tassilo Horn's message of "Thu, 30 Jan 2014 08:59:11 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.5 (-----) X-Debbugs-Envelope-To: 16573 Cc: =?utf-8?Q?Mos=C3=A8?= Giordano , Neil Jackson , 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.5 (-----) Tassilo Horn wrote: >> Personally I think this is bad practice. > > Why? Well, what if you make a typo and use a function that is really undefined? > As said, all those style files use LaTeX-* and TeX-* vars and > functions defined by AUCTeX's core. However, the style files can't be > required individually, but AUCTeX itself loads them dynamically > depending on the \usepackages and \documentclass you use in your LaTeX > document. Why can't the style files require whatever AUCTeX files they need? > Well, AUCTeX releases have a (setq byte-compile-warnings nil) in a > custom lpath.el that's used when byte-compiling anyway. Which makes this whole exercise rather laughable, doesn't it? "All releases must ship with no warnings." "Job done!" From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 30 05:27:52 2014 Received: (at 16573) by debbugs.gnu.org; 30 Jan 2014 10:27:53 +0000 Received: from localhost ([127.0.0.1]:40841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8oqe-0003gN-9A for submit@debbugs.gnu.org; Thu, 30 Jan 2014 05:27:52 -0500 Received: from deliver.uni-koblenz.de ([141.26.64.15]:39665) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8oqa-0003gA-R5 for 16573@debbugs.gnu.org; Thu, 30 Jan 2014 05:27:50 -0500 Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id C71E03D6008; Thu, 30 Jan 2014 11:27:46 +0100 (CET) X-Virus-Scanned: amavisd-new at uni-koblenz.de Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cb6v2FIOdGjZ; Thu, 30 Jan 2014 11:27:46 +0100 (CET) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Received: from thinkpad-t61 (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 3D55F3D6005; Thu, 30 Jan 2014 11:27:46 +0100 (CET) From: Tassilo Horn To: Glenn Morris Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile References: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> <87ppn9nbn4.fsf@gnu.org> Date: Thu, 30 Jan 2014 11:27:40 +0100 In-Reply-To: (Glenn Morris's message of "Thu, 30 Jan 2014 03:07:59 -0500") Message-ID: <87lhxxn4rn.fsf@gnu.org> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 16573 Cc: =?utf-8?Q?Mos=C3=A8?= Giordano , Neil Jackson , 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (-) Glenn Morris writes: >>> Personally I think this is bad practice. >> >> Why? > > Well, what if you make a typo and use a function that is really > undefined? It'll throw at runtime, but hopefully it does so before shipping a release. >> As said, all those style files use LaTeX-* and TeX-* vars and >> functions defined by AUCTeX's core. However, the style files can't >> be required individually, but AUCTeX itself loads them dynamically >> depending on the \usepackages and \documentclass you use in your >> LaTeX document. > > Why can't the style files require whatever AUCTeX files they need? They could, I guess. However, style files should be easy to write for non-elisp experts. They usually are nothing more than: --8<---------------cut here---------------start------------->8--- (TeX-add-style-hook "" (lambda () (TeX-add-symbols '("" 1) ;has one arg '("" 2)))) ;has two args --8<---------------cut here---------------end--------------->8--- So that would need a (require 'tex), if it would also define latex environments, it'll need (require 'latex) too, and if it'd also fiddles with font-locking, it'll also (require 'font-latex). I mean, we could document in the manual section about writing custom style files which AUCTeX files need to be required when using which function. But style files are usually written in parallel to working on/testing with a sample tex document using the corresponding LaTeX style, so then the functions/vars are defined anyway and one can just TAB your way through. Another thing is that the style files reside in a subdirectory, so to make the requires working their compilation would need a different load-path. (No big thing for the regular Makefile build job, but I'm not sure about ELPA...) And possibly adding requires would slow down the compilation process quite a bit. There are currently 144 style files. As said, most of them are rather short, but the tex, latex, and font-latex they'd need to require are large (~14000 LOC in total). >> Well, AUCTeX releases have a (setq byte-compile-warnings nil) in a >> custom lpath.el that's used when byte-compiling anyway. > > Which makes this whole exercise rather laughable, doesn't it? Kinda. I didn't notice that before this bug report, too. And I'll to address the relevant warnings and remove that config. > "All releases must ship with no warnings." > > "Job done!" vc-annotate says: 73660122 (Per Abrahamsen 1996-08-29 20:32:16 +0000 6) Good job, Per! And it lasted for almost 18 years now. ;-) Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 30 08:11:30 2014 Received: (at 16573) by debbugs.gnu.org; 30 Jan 2014 13:11:30 +0000 Received: from localhost ([127.0.0.1]:41146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8rP0-0000WH-5c for submit@debbugs.gnu.org; Thu, 30 Jan 2014 08:11:30 -0500 Received: from outrelay07.libero.it ([212.52.84.111]:40211) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8rOx-0000W6-O1 for 16573@debbugs.gnu.org; Thu, 30 Jan 2014 08:11:28 -0500 X-CTCH-Spam: Unknown X-CTCH-RefID: str=0001.0A0C0207.52EA4F7E.0121,ss=1,re=0.000,fgs=0 X-libjamoibt: 1823 Received: from mail-vc0-f182.google.com (209.85.220.182) by outrelay07.libero.it (8.6.033) (authenticated as giordano.mose@libero.it) id 52DE7F6001FD190C for 16573@debbugs.gnu.org; Thu, 30 Jan 2014 14:11:26 +0100 Received: by mail-vc0-f182.google.com with SMTP id id10so2094081vcb.13 for <16573@debbugs.gnu.org>; Thu, 30 Jan 2014 05:11:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=Y1NY3WjR4HWIoJd2LdBgYtytyLkv5I9gNK7qeR5G+B4=; b=mbZn7XO2zX7lqlwSsgWxQjXKVd677I05wVK1d7vE+Ftfu1QyXBjwT7X1rN0pI3vqyh OXHnfhSmhaQJn5QHuGQJ9/Dlr9vPg0WURcPlZbMrS4RDhzcF0w90WWaB78uEaZzuASfA OjyxA+C4GwlhdPi9DVi9V76i5CWe6xuyOXw19y0IGvSPYHEgIj/11OE6omlgl7sJ6iEP uYcLGdXwe6v5NCIz/ff+D40rkiaFOSBxc0FqV7n+jJaYWfiRyGn4RoJFTlKs5LcVaCWc JwCCe4U61FfIyCmRjHUZl5Mc/250bMTvfCowLT49zABxAABKqTJVEjlOc10f84FlxSpY stfw== X-Received: by 10.220.99.72 with SMTP id t8mr11789310vcn.10.1391087485083; Thu, 30 Jan 2014 05:11:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.91.230 with HTTP; Thu, 30 Jan 2014 05:10:44 -0800 (PST) In-Reply-To: <87lhxxn4rn.fsf@gnu.org> References: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> <87ppn9nbn4.fsf@gnu.org> <87lhxxn4rn.fsf@gnu.org> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Thu, 30 Jan 2014 14:10:44 +0100 Message-ID: Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile To: Tassilo Horn Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 16573 Cc: Glenn Morris , Neil Jackson , 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.4 (/) 2014-01-30 Tassilo Horn : > And possibly adding requires would slow down the compilation process > quite a bit. There are currently 144 style files. As said, most of > them are rather short, but the tex, latex, and font-latex they'd need to > require are large (~14000 LOC in total). Is it possible to load `tex.el', `latex.el', and `font-latex.el' just once through command line before compiling all style files instead of adding a `require' in each file? Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 30 08:16:04 2014 Received: (at 16573) by debbugs.gnu.org; 30 Jan 2014 13:16:04 +0000 Received: from localhost ([127.0.0.1]:41154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8rTQ-0000di-6y for submit@debbugs.gnu.org; Thu, 30 Jan 2014 08:16:04 -0500 Received: from deliver.uni-koblenz.de ([141.26.64.15]:34371) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8rTM-0000d7-Uz for 16573@debbugs.gnu.org; Thu, 30 Jan 2014 08:16:02 -0500 Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 529393D6013; Thu, 30 Jan 2014 14:15:59 +0100 (CET) X-Virus-Scanned: amavisd-new at uni-koblenz.de Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4GLbWhcsFCPu; Thu, 30 Jan 2014 14:15:58 +0100 (CET) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Received: from thinkpad-t61 (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id D76753D6012; Thu, 30 Jan 2014 14:15:58 +0100 (CET) From: Tassilo Horn To: Glenn Morris Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile In-Reply-To: <87lhxxn4rn.fsf@gnu.org> (Tassilo Horn's message of "Thu, 30 Jan 2014 11:27:40 +0100") References: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> <87ppn9nbn4.fsf@gnu.org> <87lhxxn4rn.fsf@gnu.org> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) Date: Thu, 30 Jan 2014 14:15:52 +0100 Message-ID: <87a9edmwzb.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 16573 Cc: Neil Jackson , 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (-) Tassilo Horn writes: >> Why can't the style files require whatever AUCTeX files they need? > > They could, I guess. I was wrong. I've just added the needed requires to all style files, but I get exactly as many warnings as before. This is because of these reasons. 1. Many TeX-* and LaTeX-* functions and variables are not generated before tex.el and latex.el are loaded. AUCTeX has an auto parser facility that generates a parser for some kind of LaTeX thingy. Typical "thingies" in LaTeX are symbols/macros, environments, lengths, counters, or labels. For each such thingy, functions and variables named TeX-thingy-* or LaTeX-thingy-* are generated. E.g., tex.el itself does (TeX-auto-add-type "symbol" "TeX") which generates functions/vars TeX-symbol-list, TeX-symbol-list-filtered, TeX-symbol-changed, etc. (And the same for 10 other thingies.) The byte-compiler doesn't seem to execute top-level funcalls, so all those functions/vars are unknown at compile-time. 2. The AUCTeX's auto parser is open to be used for style-files, too. For example, style/acronym.el does (TeX-auto-add-type "acronym" "LaTeX") which when evaluated creates LaTeX-acronym-list, etc. Again, those are unknown to the byte-compiler. I guess I should wrap those TeX-auto-add-type calls with a `eval-when-compile', right? 3. How should one deal with code like this? (when (featurep 'font-latex) (font-latex-add-keywords ...)) 4. Or with code like this? (defun foo () (require 'url-util) (url-util-* ...)) Thanks, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 30 08:21:51 2014 Received: (at 16573) by debbugs.gnu.org; 30 Jan 2014 13:21:51 +0000 Received: from localhost ([127.0.0.1]:41163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8rZ1-0000mP-DZ for submit@debbugs.gnu.org; Thu, 30 Jan 2014 08:21:51 -0500 Received: from deliver.uni-koblenz.de ([141.26.64.15]:34819) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8rYy-0000mF-5b for 16573@debbugs.gnu.org; Thu, 30 Jan 2014 08:21:49 -0500 Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 4F52B3D6013; Thu, 30 Jan 2014 14:21:48 +0100 (CET) X-Virus-Scanned: amavisd-new at uni-koblenz.de Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r7bldcR1Q3eX; Thu, 30 Jan 2014 14:21:47 +0100 (CET) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Received: from thinkpad-t61 (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id E4C2A3D6012; Thu, 30 Jan 2014 14:21:47 +0100 (CET) From: Tassilo Horn To: =?utf-8?Q?Mos=C3=A8?= Giordano Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile References: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> <87ppn9nbn4.fsf@gnu.org> <87lhxxn4rn.fsf@gnu.org> Date: Thu, 30 Jan 2014 14:21:41 +0100 In-Reply-To: (=?utf-8?Q?=22Mos=C3=A8?= Giordano"'s message of "Thu, 30 Jan 2014 14:10:44 +0100") Message-ID: <8761p1mwpm.fsf@gnu.org> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 16573 Cc: Glenn Morris , Neil Jackson , 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (-) Mos=C3=A8 Giordano writes: >> And possibly adding requires would slow down the compilation process >> quite a bit. There are currently 144 style files. As said, most of >> them are rather short, but the tex, latex, and font-latex they'd need >> to require are large (~14000 LOC in total). > > Is it possible to load `tex.el', `latex.el', and `font-latex.el' just > once through command line before compiling all style files instead of > adding a `require' in each file? Our Makefile does just one emacs -f batch-byte-compile call passing all *.el files as arguments, so even with many requires, each file will be parsed only once. And with the ELPA builds, I think it's the same thing. So my argument is not substantial. Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 30 10:34:08 2014 Received: (at 16573) by debbugs.gnu.org; 30 Jan 2014 15:34:08 +0000 Received: from localhost ([127.0.0.1]:41593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8td1-0006JI-EW for submit@debbugs.gnu.org; Thu, 30 Jan 2014 10:34:07 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:22933) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8tcy-0006J9-F4 for 16573@debbugs.gnu.org; Thu, 30 Jan 2014 10:34:05 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+J67/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IPAS-Result: Av4EABK/CFHO+J67/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="46420606" Received: from 206-248-158-187.dsl.teksavvy.com (HELO pastel.home) ([206.248.158.187]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 30 Jan 2014 10:34:03 -0500 Received: by pastel.home (Postfix, from userid 20848) id 41AF860171; Thu, 30 Jan 2014 10:34:03 -0500 (EST) From: Stefan Monnier To: Tassilo Horn Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile Message-ID: References: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> <87ppn9nbn4.fsf@gnu.org> <87lhxxn4rn.fsf@gnu.org> <8761p1mwpm.fsf@gnu.org> Date: Thu, 30 Jan 2014 10:34:03 -0500 In-Reply-To: <8761p1mwpm.fsf@gnu.org> (Tassilo Horn's message of "Thu, 30 Jan 2014 14:21:41 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16573 Cc: =?windows-1252?Q?Mos=E8?= Giordano , Neil Jackson , 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > And with the ELPA builds, I think it's the same thing. IIRC there are different cases. When installing an ELPA package, indeed all the .el files are compiled within the running Emacs. There aren't many guarantees of ordering tho, so it could potentially happen that the style files get compiled before loading tex.el. When installing the whole GNU ELPA branch via "git clone .../elpa; make", then each file is compiled individually in a separate Emacs process. But IIRC only the files in the top-level directory of each package are byte-compiled in that case, so the style files won't be byte-compiled at all. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 30 10:41:23 2014 Received: (at 16573) by debbugs.gnu.org; 30 Jan 2014 15:41:23 +0000 Received: from localhost ([127.0.0.1]:41605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8tk2-0006Vw-SY for submit@debbugs.gnu.org; Thu, 30 Jan 2014 10:41:23 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:60534) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8tjz-0006Vn-R5 for 16573@debbugs.gnu.org; Thu, 30 Jan 2014 10:41:20 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+J67/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJC6HcAbBLZEKA4hhnBmBXoMV X-IPAS-Result: Av4EABK/CFHO+J67/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJC6HcAbBLZEKA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="46421225" Received: from 206-248-158-187.dsl.teksavvy.com (HELO pastel.home) ([206.248.158.187]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 30 Jan 2014 10:41:19 -0500 Received: by pastel.home (Postfix, from userid 20848) id D502760171; Thu, 30 Jan 2014 10:41:18 -0500 (EST) From: Stefan Monnier To: Tassilo Horn Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile Message-ID: References: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> <87ppn9nbn4.fsf@gnu.org> <87lhxxn4rn.fsf@gnu.org> <87a9edmwzb.fsf@gnu.org> Date: Thu, 30 Jan 2014 10:41:18 -0500 In-Reply-To: <87a9edmwzb.fsf@gnu.org> (Tassilo Horn's message of "Thu, 30 Jan 2014 14:15:52 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16573 Cc: Glenn Morris , Neil Jackson , 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > 1. Many TeX-* and LaTeX-* functions and variables are not generated > before tex.el and latex.el are loaded. AUCTeX has an auto parser [...] > The byte-compiler doesn't seem to execute top-level funcalls, so all > those functions/vars are unknown at compile-time. Indeed, the byte-compiler compiles the code, rather than executes it. But if it sees a (require 'foo) it will run that (require 'foo), i.e. it will load foo.el(c), which executes all of the code in there. So a (require 'tex) will execute (TeX-auto-add-type "symbol" "TeX") at compile-time, and will hence cause TeX-symbol-list to exist at compile-time. > (TeX-auto-add-type "acronym" "LaTeX") [...] > I guess I should wrap those TeX-auto-add-type calls with a > `eval-when-compile', right? You could. Or you could turn them into macros. > 3. How should one deal with code like this? > (when (featurep 'font-latex) > (font-latex-add-keywords ...)) (when (fboundp 'font-latex-add-keywords) (font-latex-add-keywords ...)) > 4. Or with code like this? > > (defun foo () > (require 'url-util) > (url-util-* ...)) Good question. We usually use `declare-function' for these, but admittedly, it's not a great solution. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 31 03:05:33 2014 Received: (at 16573) by debbugs.gnu.org; 31 Jan 2014 08:05:33 +0000 Received: from localhost ([127.0.0.1]:42299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W996S-0002KQ-OQ for submit@debbugs.gnu.org; Fri, 31 Jan 2014 03:05:33 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:34282) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W996M-0002KD-G9 for 16573@debbugs.gnu.org; Fri, 31 Jan 2014 03:05:32 -0500 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id B9727209AA for <16573@debbugs.gnu.org>; Fri, 31 Jan 2014 03:05:23 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Fri, 31 Jan 2014 03:05:23 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:date :in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=HCrRW5L/mxjKmh8QJumqGtTsnxs=; b=nRInsjEgP52cXuKyvrGUw6IgMTV3 RiBtagy0Q7s2Zn+GmF741dlhOr7CWG+U4aixkfkwWhNDWplJlOR3AhvV9in92zHQ Ba4sbzvu7DU+o/pTp8mKvT1/09sT6LgWdLn0tg/NUwSdD6nPMViwjRdB7w6oZixC /dqacSoaEQPAa2s= X-Sasl-enc: 7R4DdDZpV3a05FMwL4a8NiQIPZHDbkODILYHtORN9HLI 1391155523 Received: from thinkpad-t61.fritz.box (unknown [95.88.145.206]) by mail.messagingengine.com (Postfix) with ESMTPA id BAB07C0000C; Fri, 31 Jan 2014 03:05:22 -0500 (EST) From: Tassilo Horn To: Stefan Monnier Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile References: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> <87ppn9nbn4.fsf@gnu.org> <87lhxxn4rn.fsf@gnu.org> <8761p1mwpm.fsf@gnu.org> Date: Fri, 31 Jan 2014 09:05:16 +0100 In-Reply-To: (Stefan Monnier's message of "Thu, 30 Jan 2014 10:34:03 -0500") Message-ID: <87ob2sbmpv.fsf@thinkpad-t61.fritz.box> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 16573 Cc: =?utf-8?Q?Mos=C3=A8?= Giordano , Neil Jackson , 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Stefan Monnier writes: >> And with the ELPA builds, I think it's the same thing. > > IIRC there are different cases. > > When installing an ELPA package, indeed all the .el files are compiled > within the running Emacs. There aren't many guarantees of ordering > tho, so it could potentially happen that the style files get compiled > before loading tex.el. Ok, I see. > When installing the whole GNU ELPA branch via "git clone .../elpa; > make", then each file is compiled individually in a separate Emacs > process. But IIRC only the files in the top-level directory of each > package are byte-compiled in that case, so the style files won't be > byte-compiled at all. That's ok. But if the style files were compiled, adding the requires into the style files would make the compilation take minutes, because each style file compilation would need to load the core files first. Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 31 04:50:18 2014 Received: (at 16573) by debbugs.gnu.org; 31 Jan 2014 09:50:18 +0000 Received: from localhost ([127.0.0.1]:42358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W9Ajq-0007ER-6f for submit@debbugs.gnu.org; Fri, 31 Jan 2014 04:50:18 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:58145) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W9Ajm-0007EH-NO for 16573@debbugs.gnu.org; Fri, 31 Jan 2014 04:50:15 -0500 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 057A620EE9; Fri, 31 Jan 2014 04:50:13 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Fri, 31 Jan 2014 04:50:14 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:date :in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=R/6weaoSc1p6dpZFv5CU1Vm1pgQ=; b=jgf7xGqLSIKF5/BCKmLuGNMtxKBo kFsZiW37u3DtKVnoyM1wotw7qEhosEVLVRAilymYVkauyOvQdrTOTgfUpaosT+uw eY6sj45S8SJUrOzK3ngZIEwKO7Y8ruH5kcOKcij6ttsY1xzNmb80MCfq6itJDZS9 hOvh/9enGWktYzw= X-Sasl-enc: BEBjCTLfh3RukKnqwxTizsXZPWx/eYeNsQNl1ldl+MlH 1391161813 Received: from thinkpad-t61.fritz.box (unknown [95.88.145.206]) by mail.messagingengine.com (Postfix) with ESMTPA id A4656680228; Fri, 31 Jan 2014 04:50:12 -0500 (EST) From: Tassilo Horn To: Stefan Monnier Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile References: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> <87ppn9nbn4.fsf@gnu.org> <87lhxxn4rn.fsf@gnu.org> <87a9edmwzb.fsf@gnu.org> Date: Fri, 31 Jan 2014 10:50:06 +0100 In-Reply-To: (Stefan Monnier's message of "Thu, 30 Jan 2014 10:41:18 -0500") Message-ID: <87eh3obhv5.fsf@thinkpad-t61.fritz.box> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16573 Cc: Glenn Morris , David Kastrup , Neil Jackson , 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Stefan Monnier writes: >> 1. Many TeX-* and LaTeX-* functions and variables are not generated >> before tex.el and latex.el are loaded. AUCTeX has an auto parser > [...] >> The byte-compiler doesn't seem to execute top-level funcalls, so all >> those functions/vars are unknown at compile-time. > > Indeed, the byte-compiler compiles the code, rather than executes it. > > But if it sees a (require 'foo) it will run that (require 'foo), > i.e. it will load foo.el(c), which executes all of the code in there. > So a (require 'tex) will execute (TeX-auto-add-type "symbol" "TeX") at > compile-time, and will hence cause TeX-symbol-list to exist at > compile-time. Ah, ok, but that doesn't help when foo.el does (TeX-auto-add-type "foo" "TeX") and uses the generated functions itself, like it's done by tex.el, latex.el, and all style files that define their own auto parsers. Concretely, I still get warnings if tex.el uses (TeX-symbol-list) generated by (TeX-auto-add-type "symbol" "TeX"), but if latex uses the same function, it's ok for the compiler. >> (TeX-auto-add-type "acronym" "LaTeX") > [...] >> I guess I should wrap those TeX-auto-add-type calls with a >> `eval-when-compile', right? > > You could. No, I get a compile error in tex.el when compiling (defun TeX-auto-add-type (...) ...) ... (eval-when-compile (TeX-auto-add-type "symbol" "TeX")) because then TeX-auto-add-type is not known at compile-time. So then I'd need to wrap the defun, too, and also the function and variables that are used in TeX-auto-add-type. That doesn't seem manageable... And if I wrap, e.g., the (TeX-auto-add-type "environment" "LaTeX") with eval-with-compile, it compiles fine (cause it's in latex.el which requires tex.el) and I get rid of some free-vars and unresolved warnings, but then I get an error when finding a latex document. Debugger entered--Lisp error: (void-function LaTeX-add-environments-auto) Wrapping with (eval-when (compile load eval) ...) seems to work, but I'm not sure if that's a good idea. > Or you could turn them into macros. Indeed, that looks like a typical use-case for macros, but I'm rather sure that there's a good reason that the auto parser stuff is like it is. David? >> 3. How should one deal with code like this? >> (when (featurep 'font-latex) >> (font-latex-add-keywords ...)) > > (when (fboundp 'font-latex-add-keywords) > (font-latex-add-keywords ...)) While we are at it: David, is there any reason why somebody would want to set TeX-install-font-lock to 'ignore nowadays so that font-latex is not loaded? If not, I'm tempted to remove the variable, require font-latex in tex.el, and get rid of all those boundness checks in the styles. >> 4. Or with code like this? >> >> (defun foo () >> (require 'url-util) >> (url-util-* ...)) > > Good question. We usually use `declare-function' for these, but > admittedly, it's not a great solution. I see. The reason for the code above is that foo is only callable in very special conditions. Concretely, there're some functions that are only used with recent GNU emacs version with dbus support and the user using Evince as pdf viewer. Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 31 05:06:00 2014 Received: (at 16573) by debbugs.gnu.org; 31 Jan 2014 10:06:00 +0000 Received: from localhost ([127.0.0.1]:42374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W9Az2-0007dT-0T for submit@debbugs.gnu.org; Fri, 31 Jan 2014 05:06:00 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:50477) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W9Ayz-0007dJ-BZ for 16573@debbugs.gnu.org; Fri, 31 Jan 2014 05:05:58 -0500 Received: from localhost ([127.0.0.1]:57782 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9Ayy-0007CB-3g; Fri, 31 Jan 2014 05:05:56 -0500 Received: by lola (Postfix, from userid 1000) id B7CD0E0521; Fri, 31 Jan 2014 11:05:55 +0100 (CET) From: David Kastrup To: Tassilo Horn Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile References: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> <87ppn9nbn4.fsf@gnu.org> <87lhxxn4rn.fsf@gnu.org> <87a9edmwzb.fsf@gnu.org> <87eh3obhv5.fsf@thinkpad-t61.fritz.box> Date: Fri, 31 Jan 2014 11:05:55 +0100 In-Reply-To: <87eh3obhv5.fsf@thinkpad-t61.fritz.box> (Tassilo Horn's message of "Fri, 31 Jan 2014 10:50:06 +0100") Message-ID: <877g9g4gak.fsf@fencepost.gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -5.4 (-----) X-Debbugs-Envelope-To: 16573 Cc: Glenn Morris , 16573@debbugs.gnu.org, Stefan Monnier , Neil Jackson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.4 (-----) Tassilo Horn writes: > Wrapping with (eval-when (compile load eval) ...) seems to work, but I'm > not sure if that's a good idea. > >> Or you could turn them into macros. > > Indeed, that looks like a typical use-case for macros, but I'm rather > sure that there's a good reason that the auto parser stuff is like it > is. David? Sorry to disappoint you here, but that stuff was there well before me and I've not messed with it to any noticeable degree. I seem to remember that Reiner Steib might have done a bit more in that respect, but I might be mixing up names here, too. At any rate, the base of the style code has probably not been touched for something like 20 years, so it's quite likely that the reasons for making any particular technical decision in that area are decidedly historical. > While we are at it: David, is there any reason why somebody would want > to set TeX-install-font-lock to 'ignore nowadays so that font-latex is > not loaded? font-latex has different font highlighting from the Emacs default modes, and some may prefer the latter (which also tends to track Emacs' current capabilities better and might be more efficient for that reason). -- David Kastrup From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 31 07:21:09 2014 Received: (at 16573) by debbugs.gnu.org; 31 Jan 2014 12:21:09 +0000 Received: from localhost ([127.0.0.1]:42424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W9D5o-0002el-G9 for submit@debbugs.gnu.org; Fri, 31 Jan 2014 07:21:08 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:50661) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W9D5l-0002ec-H7 for 16573@debbugs.gnu.org; Fri, 31 Jan 2014 07:21:06 -0500 Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 929E4207B6 for <16573@debbugs.gnu.org>; Fri, 31 Jan 2014 07:21:04 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Fri, 31 Jan 2014 07:21:04 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:date :in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=0fNCeS0+LisBLtYA8OVLEdIMFB4=; b=aDXoOQ3N4H2CG+Mc2juuj7KGyrij aMAgq1vKHAYmUm3picV7BWjrJTMUx2fL1/AKbTOBPNufiHN9ukHqn3Blm3DijTxs ih8yauFHmKl8+487rchbb42EBu+m95qHUNb2yS+gKkVw7Cseixqf0qu8ZjDK6TFS VUoD1MJK/y7bRpQ= X-Sasl-enc: ycZEtih3Pz1aNzk0UBBvP/3YDBd40oXjNN2Zww8OdQhp 1391170864 Received: from thinkpad-t61.fritz.box (unknown [95.88.145.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 77D0DC00003; Fri, 31 Jan 2014 07:21:03 -0500 (EST) From: Tassilo Horn To: David Kastrup Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile References: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> <87ppn9nbn4.fsf@gnu.org> <87lhxxn4rn.fsf@gnu.org> <87a9edmwzb.fsf@gnu.org> <87eh3obhv5.fsf@thinkpad-t61.fritz.box> <877g9g4gak.fsf@fencepost.gnu.org> Date: Fri, 31 Jan 2014 13:20:57 +0100 In-Reply-To: <877g9g4gak.fsf@fencepost.gnu.org> (David Kastrup's message of "Fri, 31 Jan 2014 11:05:55 +0100") Message-ID: <8738k4bavq.fsf@thinkpad-t61.fritz.box> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16573 Cc: Glenn Morris , 16573@debbugs.gnu.org, Stefan Monnier , Neil Jackson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) David Kastrup writes: >>> Or you could turn them into macros. >> >> Indeed, that looks like a typical use-case for macros, but I'm rather >> sure that there's a good reason that the auto parser stuff is like it >> is. David? > > [...] > At any rate, the base of the style code has probably not been touched > for something like 20 years, so it's quite likely that the reasons for > making any particular technical decision in that area are decidedly > historical. Ok. I've now turned TeX-auto-add-type into a macro and it seems to work. And it also uncovered a bug where the lambda added to TeX-remove-style-hook contained (setq "[La]TeX--list" nil), i.e., there's a string rather a symbol. I'll have to do some more testing before merging my local branch into master and pushing, though. >> While we are at it: David, is there any reason why somebody would >> want to set TeX-install-font-lock to 'ignore nowadays so that >> font-latex is not loaded? > > font-latex has different font highlighting from the Emacs default > modes, and some may prefer the latter (which also tends to track > Emacs' current capabilities better and might be more efficient for > that reason). Ok, thanks. Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 31 09:38:11 2014 Received: (at 16573) by debbugs.gnu.org; 31 Jan 2014 14:38:11 +0000 Received: from localhost ([127.0.0.1]:42477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W9FEQ-0007FX-B0 for submit@debbugs.gnu.org; Fri, 31 Jan 2014 09:38:10 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:18866) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W9FEO-0007FO-Ej for 16573@debbugs.gnu.org; Fri, 31 Jan 2014 09:38:08 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+J67/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IPAS-Result: Av4EABK/CFHO+J67/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="46491358" Received: from 206-248-158-187.dsl.teksavvy.com (HELO pastel.home) ([206.248.158.187]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 31 Jan 2014 09:38:07 -0500 Received: by pastel.home (Postfix, from userid 20848) id A90BD6011E; Fri, 31 Jan 2014 09:38:07 -0500 (EST) From: Stefan Monnier To: Tassilo Horn Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile Message-ID: References: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> <87ppn9nbn4.fsf@gnu.org> <87lhxxn4rn.fsf@gnu.org> <8761p1mwpm.fsf@gnu.org> <87ob2sbmpv.fsf@thinkpad-t61.fritz.box> Date: Fri, 31 Jan 2014 09:38:07 -0500 In-Reply-To: <87ob2sbmpv.fsf@thinkpad-t61.fritz.box> (Tassilo Horn's message of "Fri, 31 Jan 2014 09:05:16 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16573 Cc: =?windows-1252?Q?Mos=E8?= Giordano , Neil Jackson , 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > That's ok. But if the style files were compiled, adding the requires > into the style files would make the compilation take minutes, because > each style file compilation would need to load the core files first. Yup. I personally don't see much need to add the `require's in those style files. Then again, I'm not too bothered by lingering warnings. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 31 09:49:54 2014 Received: (at 16573) by debbugs.gnu.org; 31 Jan 2014 14:49:54 +0000 Received: from localhost ([127.0.0.1]:42481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W9FPl-0007Xf-S9 for submit@debbugs.gnu.org; Fri, 31 Jan 2014 09:49:54 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:20918) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W9FPj-0007XV-Ni for 16573@debbugs.gnu.org; Fri, 31 Jan 2014 09:49:52 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+J67/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJC6HcAbBLZEKA4hhnBmBXoMV X-IPAS-Result: Av4EABK/CFHO+J67/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJC6HcAbBLZEKA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="46492302" Received: from 206-248-158-187.dsl.teksavvy.com (HELO pastel.home) ([206.248.158.187]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 31 Jan 2014 09:49:50 -0500 Received: by pastel.home (Postfix, from userid 20848) id C34036035F; Fri, 31 Jan 2014 09:49:50 -0500 (EST) From: Stefan Monnier To: Tassilo Horn Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile Message-ID: References: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> <87ppn9nbn4.fsf@gnu.org> <87lhxxn4rn.fsf@gnu.org> <87a9edmwzb.fsf@gnu.org> <87eh3obhv5.fsf@thinkpad-t61.fritz.box> Date: Fri, 31 Jan 2014 09:49:50 -0500 In-Reply-To: <87eh3obhv5.fsf@thinkpad-t61.fritz.box> (Tassilo Horn's message of "Fri, 31 Jan 2014 10:50:06 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16573 Cc: Glenn Morris , David Kastrup , Neil Jackson , 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) >>> I guess I should wrap those TeX-auto-add-type calls with a >>> `eval-when-compile', right? >> You could. > No, I get a compile error in tex.el when compiling Of course, eval-when-compile and eval-and-compile come with their own set of problems. My "you could" wasn't really meant as an encouragement. >> Or you could turn them into macros. > Indeed, that looks like a typical use-case for macros, but I'm rather > sure that there's a good reason that the auto parser stuff is like it > is. David? Whatever the reason, looking at the code of TeX-auto-add-type, I think it *really* should be turned into a macro, and use defvar/defalias instead of set/fset. > While we are at it: David, is there any reason why somebody would want > to set TeX-install-font-lock to 'ignore nowadays so that font-latex is > not loaded? Would that make AUCTeX use tex-mode.el's font-lock rules? >> Good question. We usually use `declare-function' for these, but >> admittedly, it's not a great solution. > I see. The reason for the code above is that foo is only callable in > very special conditions. That's what I expected. We also have such code in various parts of Emacs. But we don't have a really good solution w.r.t to silencing those warnings. One potential solution I haven't investigated is to create a new `require-autoload' which behaves somewhat like `require' (when interpreted) but which the compiler would replace by a bunch of autoloads (auto-generated by the compiler by taking the intersection of the functions provided by the `require' and the functions called in the file). So you'd replace that code with (require-autoload 'url-util) (defun foo () (url-util-* ...)) and url-util would only be loaded once you call `foo'. Maybe `require-lazy' would be a better name for it, but in any case as long as it's not implemented, its name doesn't matter much. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 31 10:27:33 2014 Received: (at 16573) by debbugs.gnu.org; 31 Jan 2014 15:27:33 +0000 Received: from localhost ([127.0.0.1]:43388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W9G0D-0000IA-6c for submit@debbugs.gnu.org; Fri, 31 Jan 2014 10:27:33 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:51461) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W9G0A-0000I1-EH for 16573@debbugs.gnu.org; Fri, 31 Jan 2014 10:27:31 -0500 Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id EDB722112C for <16573@debbugs.gnu.org>; Fri, 31 Jan 2014 10:27:29 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Fri, 31 Jan 2014 10:27:29 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:date :in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=XoG2s3QX8POIMJdVqoVgzUHc2KE=; b=Woq10TC+IYgvjEBY/JpUnlkzOc6i YSXvSS2UeqQ3yVbCd5C0Qq+Wa1wBeF/FkrjPyovJoNVmutRDUAoc+flEjni4QskT GuYC8PDG53y0fLyJPnsK5MCxx7kAZKMaBMfQPuC/rfEHlaszl5gYt7JWD0ueqmpW wef2YyD1aEdt9fI= X-Sasl-enc: n9B26h3dvesWBVOu8AZW7wndza369OPKsY/SndPmQb3+ 1391182049 Received: from thinkpad-t61.fritz.box (unknown [95.88.145.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 18B15C00005; Fri, 31 Jan 2014 10:27:28 -0500 (EST) From: Tassilo Horn To: Stefan Monnier Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile References: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> <87ppn9nbn4.fsf@gnu.org> <87lhxxn4rn.fsf@gnu.org> <87a9edmwzb.fsf@gnu.org> <87eh3obhv5.fsf@thinkpad-t61.fritz.box> Date: Fri, 31 Jan 2014 16:27:22 +0100 In-Reply-To: (Stefan Monnier's message of "Fri, 31 Jan 2014 09:49:50 -0500") Message-ID: <87y51w9nol.fsf@thinkpad-t61.fritz.box> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16573 Cc: Glenn Morris , David Kastrup , Neil Jackson , 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Stefan Monnier writes: >>> Or you could turn them into macros. >> Indeed, that looks like a typical use-case for macros, but I'm rather >> sure that there's a good reason that the auto parser stuff is like it >> is. David? > > Whatever the reason, looking at the code of TeX-auto-add-type, I think > it *really* should be turned into a macro, and use defvar/defalias > instead of set/fset. Yes, I've done that now in a local branch. Seems to be the way to go, but I need to do some more testing before pushing out that change. >> While we are at it: David, is there any reason why somebody would >> want to set TeX-install-font-lock to 'ignore nowadays so that >> font-latex is not loaded? > > Would that make AUCTeX use tex-mode.el's font-lock rules? TeX-install-font-lock has 3 possible values. font-latex-setup uses AUCTeX's rules, tex-font-setup uses tex-mode's rules, and ignore doesn't set up any font-lock rules. (So my question was a bit misleading.) font-latex has some nice goodies like being able to add custom font-locking rules for your own macros/environments very easily. > Maybe `require-lazy' would be a better name for it, but in any case as > long as it's not implemented, its name doesn't matter much. Yup. Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 31 13:09:47 2014 Received: (at 16573) by debbugs.gnu.org; 31 Jan 2014 18:09:48 +0000 Received: from localhost ([127.0.0.1]:43436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W9IXD-0004SR-Fk for submit@debbugs.gnu.org; Fri, 31 Jan 2014 13:09:47 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:36042) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W9IX8-0004SF-GA for 16573@debbugs.gnu.org; Fri, 31 Jan 2014 13:09:43 -0500 Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id C8BB620C84 for <16573@debbugs.gnu.org>; Fri, 31 Jan 2014 13:09:41 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Fri, 31 Jan 2014 13:09:41 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:date :in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=/MgXXbPRMpxQMtgr34FP6kop35w=; b=OZzOqyNkA20RHkbbKnuawdKeM/rl O3MHadV/l2JMG1nST5285V2icDhIK3txejguX22EWcIQ3CBVkbYQ4lN8xRTBunrd X64ATfce1WLJ0b+scO7keqBldnNKpJgQ91CF77ak3JYqBbYZbdJKlMeTSoceGZEn 8nYdKJkNh5QwSa0= X-Sasl-enc: rwRcvSz7W1l9N3S6PvwqiLTYLPr8ASfosjx/UipvWkn9 1391191781 Received: from thinkpad-t61.fritz.box (unknown [95.88.145.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 025FBC007AB; Fri, 31 Jan 2014 13:09:40 -0500 (EST) From: Tassilo Horn To: Stefan Monnier Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile References: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> <87ppn9nbn4.fsf@gnu.org> <87lhxxn4rn.fsf@gnu.org> <8761p1mwpm.fsf@gnu.org> <87ob2sbmpv.fsf@thinkpad-t61.fritz.box> Date: Fri, 31 Jan 2014 19:09:34 +0100 In-Reply-To: (Stefan Monnier's message of "Fri, 31 Jan 2014 09:38:07 -0500") Message-ID: <87txck9g69.fsf@thinkpad-t61.fritz.box> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16573 Cc: =?utf-8?Q?Mos=C3=A8?= Giordano , Neil Jackson , 16573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Stefan Monnier writes: >> That's ok. But if the style files were compiled, adding the requires >> into the style files would make the compilation take minutes, because >> each style file compilation would need to load the core files first. > > Yup. I personally don't see much need to add the `require's in those > style files. Then again, I'm not too bothered by lingering warnings. The problem is that the mass of warnings makes it hard to spot warnings that are really defects. However, now I've seen that adding requires to the style files doesnt't help in the case where one style files uses vars/funs from another style file (e.g., there's pstricks.el and several other sub-styles that use funs/vars from the former, because they can assume that it's loaded beforehand). But style files can't be required cause they don't provide a feature... Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 20 21:29:17 2020 Received: (at 16573) by debbugs.gnu.org; 21 Aug 2020 01:29:17 +0000 Received: from localhost ([127.0.0.1]:44562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8vrp-0004EW-CJ for submit@debbugs.gnu.org; Thu, 20 Aug 2020 21:29:17 -0400 Received: from mail-yb1-f173.google.com ([209.85.219.173]:40353) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8vrn-0004EI-71 for 16573@debbugs.gnu.org; Thu, 20 Aug 2020 21:29:16 -0400 Received: by mail-yb1-f173.google.com with SMTP id q3so195651ybp.7 for <16573@debbugs.gnu.org>; Thu, 20 Aug 2020 18:29:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=7jpIF4G85pyJ8H1or4zvACOOVtJn5SWe1TJbr1zrL8s=; b=H+PZTtrdqUQ+4GCHhcGuEjE8/m//8pugB9nh/+Zpxz1P3XKFDpp/bFkWuCbH1neOd8 pt327wjAKJS8nYB3zpsI4n83zkIn2sjp0rozX9iIpZpAbHfr3ORTOip9oVKe0xWj8L/p ASBmyEF3iqDrMnjGxUWCpHfGIYrytiS4Z6h6G3BE8e/AbESzilypz9oVPK/dH8OYbklr VES6ZJ9hD6COjgothyuhuMCIgAgt3OqFUNgnbtgWPkXknQNVbXWPu4PnvR0JpMQ45Rh/ EcTuhlcb3TwBSqUG2rb0yftnZTxltx37rpbeSPRyFr9Rk49pN14NR29/8m82j6AaAViD o8wA== X-Gm-Message-State: AOAM533hOfh6AAWCwDLTMG4cP8IjYoJ35TkIVsb4ySSKw/iUPuWyBjNd XdrzIJUkKUQH09W5M81pwQp9DmZ2ey3ah0Oyrd0= X-Google-Smtp-Source: ABdhPJy8h6qTdPIqClHhrtWNW6OH/0sxrlS0s6Jc114iOmsuPaS5RT3h9h/glfrSMXxMfqohwMzXPGXBPiR9o7Rc2LQ= X-Received: by 2002:a5b:410:: with SMTP id m16mr638829ybp.309.1597973349829; Thu, 20 Aug 2020 18:29:09 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 20 Aug 2020 18:29:09 -0700 From: Stefan Kangas In-Reply-To: (Neil Jackson's message of "Mon, 27 Jan 2014 14:06:39 -0400") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Thu, 20 Aug 2020 18:29:09 -0700 Message-ID: Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile To: Neil Jackson Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 16573 Cc: 16573@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: -0.5 (/) Neil Jackson writes: > Observed behaviour: > On updating to latest Auctex from the Package Manager, there were > hundreds of warnings during compilation. > > Expected behaviour: > Packages in Elpa compile without warnings. I tried installing auctex from GNU ELPA using current master. I still see many few warnings about obsolete functions and free variables, but not hundreds. Perhaps a couple of dozen. Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 27 06:35:50 2021 Received: (at 16573-done) by debbugs.gnu.org; 27 Aug 2021 10:35:50 +0000 Received: from localhost ([127.0.0.1]:51318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJZDC-00024Z-EV for submit@debbugs.gnu.org; Fri, 27 Aug 2021 06:35:50 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJZDA-00024L-Vi for 16573-done@debbugs.gnu.org; Fri, 27 Aug 2021 06:35:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57152) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJZD5-0001gj-O6 for 16573-done@debbugs.gnu.org; Fri, 27 Aug 2021 06:35:43 -0400 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:37643) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJZD5-0002Ye-Kl for 16573-done@debbugs.gnu.org; Fri, 27 Aug 2021 06:35:43 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailauth.nyi.internal (Postfix) with ESMTP id 606A027C0054 for <16573-done@debbugs.gnu.org>; Fri, 27 Aug 2021 06:35:43 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 27 Aug 2021 06:35:43 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddufedgfedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffjgfkfgggtgesthdtredttdertdenucfhrhhomhepvfgrshhsihhl ohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpeeffe ffkeekieejvddtfeejhfdtgfelgfdtkefhfeevueehheekjedufefhueekheenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvg hsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedvleek qdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for <16573-done@debbugs.gnu.org>; Fri, 27 Aug 2021 06:35:42 -0400 (EDT) From: Tassilo Horn To: bug#16573 <16573-done@debbugs.gnu.org> Subject: Re: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile Date: Fri, 27 Aug 2021 12:35:38 +0200 In-Reply-To: bug's message of "Fri, 27 Aug 2021 10:34:25 +0000" Message-ID: <87pmtzmayt.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 16573-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) I'm closing this issue given its age, and the current AUCTeX version issues almost no byte-compile warnings anymore. From unknown Thu Jun 19 12:38:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 24 Sep 2021 11:24:09 +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