From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nonax Newsgroups: gmane.emacs.bugs Subject: bug#43116: 27.1; with-eval-after-load executes BODY multiple times for fortran Date: Sun, 30 Aug 2020 18:18:51 +0200 Message-ID: <6a275221-6158-8b3e-648b-ceb0116a71b6@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5688"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 To: 43116@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 30 18:56:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kCQck-0001N7-Qv for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 Aug 2020 18:56:10 +0200 Original-Received: from localhost ([::1]:40836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCQcj-0001iw-T0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 Aug 2020 12:56:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCQcc-0001ib-QA for bug-gnu-emacs@gnu.org; Sun, 30 Aug 2020 12:56:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39122) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kCQcc-0006rn-GS for bug-gnu-emacs@gnu.org; Sun, 30 Aug 2020 12:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kCQcc-0007ok-FU for bug-gnu-emacs@gnu.org; Sun, 30 Aug 2020 12:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nonax Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Aug 2020 16:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43116 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.159880651729996 (code B ref -1); Sun, 30 Aug 2020 16:56:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Aug 2020 16:55:17 +0000 Original-Received: from localhost ([127.0.0.1]:50668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCQbs-0007nj-V4 for submit@debbugs.gnu.org; Sun, 30 Aug 2020 12:55:17 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCQ2n-0006yy-Nt for submit@debbugs.gnu.org; Sun, 30 Aug 2020 12:19:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCQ2n-0005St-Ig for bug-gnu-emacs@gnu.org; Sun, 30 Aug 2020 12:19:01 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:36269) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCQ2l-0003BL-0P for bug-gnu-emacs@gnu.org; Sun, 30 Aug 2020 12:19:01 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 549212400FB for ; Sun, 30 Aug 2020 18:18:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1598804332; bh=53YDD9sGxd2UI3M5puGbJShFu7YmL1WnYEjeTaedkL8=; h=To:Subject:From:Autocrypt:Date:From; b=RDKAx0xBw9eaM1I110SC8lw3IpPXuOpqBhRsnEni+pmhOLlGDZVmT90fhrue0I0TE jQJDREpmoi2UZU8azqlHpfdFBSg9bRlboicVUsunEqicJ0Oi8FGucy3CsIo6ju7OJR tF15efLG4kQt6p0GrJFfxCAsNec58d0BMrROecHJnRPIUdzznKIXlOrTQmtgRdJUvr xvuPLYeqHcCjs30nIEGb41q32fWkM+UJpJveunjOZeL8MbC5DJSKU4atRwOOPugdZ6 vDSBXeY/1bkK6zvL/xymJzIOv3pxAcpzMO6wEq+TtURrL2ghk+5ggktq4xQ62uPrPZ W4E/N9YWY6vuA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Bfdn75Y4xz6tmQ for ; Sun, 30 Aug 2020 18:18:51 +0200 (CEST) Autocrypt: addr=nonax@posteo.net; prefer-encrypt=mutual; keydata= mQENBFuJVeEBCADAhVktqEkcI1afVu75HQXC0CBQA7O77a9MEFk0AHCS/3F69GBZ5uhoLFwL sidR383IhosUMhFK60k+lF5y+FqzrnCcgyos+aNpmpFxoAF1cyonZyyoqyqcKxwtwaBAs67c 6H9obPPBkP9kfAt40JEMNUXodcDiqJkZPtaS07yT+Ydud8JROX9pQpCUBikTZRsr0POU8Xi6 BBsNL3wmHF9OjRV8hAykmzWhUOJCdcgaWAqMAGfDdVEK/QLGN/WukIeCMykMpB3ft8rCtW7Y SfKegRkTMDjIewmHcAO1vxNKUylm3WMe/+VG0f4fHqdb/d0U7E1f8SEL+gbwDBoCW9V7ABEB AAG0GE5vbmF4IDxub25heEBwb3N0ZW8ubmV0PokBTgQTAQgAOBYhBIHKsVNWX9DYD0HK/jJY uORdjV2iBQJbiVXhAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEDJYuORdjV2iGWAH /2lkSJIxllLP5Y6+JbQXSH7yjxeRCP7JrhAaNCR7NE0zerWh77Y/YnqWWPdbd/GnLL7C6Pqt qTzK/Wrh8jjbI9sPq6eITMoeLr11KyeKBMeEnyrLFu7OQAcVelavZuPZVKwcvNhgbk0Jk2cZ zOGhxkw/msuYJm/ShE8ENzm0Y0jJmpLykVBhLWtHYuYa+XIXfvxr+2pNsf/ARR//uYfCIeTY O7yNvoV2ueEv33uQvJK2rCEdlYF3H/GmTQ0w8fTtXpD6xoxWfBwJV+nB9I/KuKrEpj7fAzxD SE820WPfkI7HBh7KcIm Content-Language: en-US Received-SPF: pass client-ip=185.67.36.66; envelope-from=nonax@posteo.net; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/30 10:32:36 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 30 Aug 2020 12:55:15 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186715 Archived-At: Hello, The following command will reproduce the bug: emacs -Q -l mwe.el f.f f.f does not have to exist, it just serves to open a buffer and enable fortran-mode. The file mwe.el contains the following: (with-eval-after-load 'fortran (if (boundp 'fortran-canary) (message "..is cursed.") (message "FORTRAN..")) (defvar fortran-canary t)) ;;; end of mwe.el The following message will appear in the *Message* buffer: FORTRAN.. ..is cursed. suggesting BODY has been executed twice. This problem seems to persist across multiple versions of Emacs. It seems to only apply to fortran specifically, however. I could not reproduce it with other features. Kind regards, N. In GNU Emacs 27.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.21, cairo version 1.16.0) of 2020-08-20 built on buildvm-x86-24.iad2.fedoraproject.org Windowing system distributor 'Fedora Project', version 11.0.12008000 System Description: Fedora 32 (Workstation Edition) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. (New file) FORTRAN.. ..is cursed. Making completion list... [2 times] Configured using: 'configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no --with-xwidgets --with-modules --with-harfbuzz --with-cairo --with-json build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS=-Wl,-z,relro PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER GMP Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Fortran Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils fortran cus-edit easymenu cus-start cus-load wid-edit cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting xwidget-internal cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 66282 11790) (symbols 48 7807 1) (strings 32 19871 1395) (string-bytes 1 608771) (vectors 16 11410) (vector-slots 8 142908 11478) (floats 8 28 41) (intervals 56 263 0) (buffers 1000 14))