From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Fr=C3=A9d=C3=A9ric?= Giquel via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#53451: 28.0.91; Different behavior with native-compilation Date: Sat, 22 Jan 2022 18:20:38 +0100 Message-ID: <548b819e4f578de0f98a3e59a873514be560e451.camel@laposte.net> Reply-To: =?UTF-8?Q?Fr=C3=A9d=C3=A9ric?= Giquel Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20985"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.42.3-1 To: 53451@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 22 18:26:55 2022 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 1nBKAA-0005D3-Cv for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jan 2022 18:26:54 +0100 Original-Received: from localhost ([::1]:43616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBKA8-0000op-Qh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jan 2022 12:26:52 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBK9N-0000oV-9u for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2022 12:26:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44893) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBK9K-0006HI-44 for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2022 12:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nBK9J-00014K-O9 for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2022 12:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Fr=C3=A9d=C3=A9ric?= Giquel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jan 2022 17:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53451 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.16428723594095 (code B ref -1); Sat, 22 Jan 2022 17:26:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Jan 2022 17:25:59 +0000 Original-Received: from localhost ([127.0.0.1]:37796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBK9G-00013z-Bn for submit@debbugs.gnu.org; Sat, 22 Jan 2022 12:25:58 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:45692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBK4a-0000x0-3Z for submit@debbugs.gnu.org; Sat, 22 Jan 2022 12:21:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBK4Z-0000Yr-Ah for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2022 12:21:07 -0500 Original-Received: from smtp-outgoing-1603.laposte.net ([160.92.124.98]:33652) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBK4V-0005VR-BL for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2022 12:21:06 -0500 X-mail-filterd: {"version":"1.3.4", "queueID":"4Jh3133Rr2z7t7W", "contextId":"fc5f0e6d-7475-403b-81df-c00d946c3f8d"} Original-Received: from outgoing-mail.laposte.net (localhost.localdomain [127.0.0.1]) by mlpnf0102.laposte.net (SMTP Server) with ESMTP id 4Jh3133Rr2z7t7W for ; Sat, 22 Jan 2022 18:20:39 +0100 (CET) X-mail-filterd: {"version":"1.3.4", "queueID":"4Jh3131Vs6z7t7L", "contextId":"e0b2b548-0a21-42fb-9d5a-aba9b462a1c7"} X-lpn-mailing: LEGIT X-lpn-spamrating: 50 X-lpn-spamlevel: not-spam X-lpn-spamcause: OK, (0)(0000)gggruggvucftvghtrhhoucdtuddrgedvvddrvddvgddutddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecunfetrffquffvgfdpggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedttdenucenucfjughrpefkuffhvffftggfggfgsehtkeertddtreejnecuhfhrohhmpefhrhorugorrhhitgcuifhiqhhuvghluceofhhrvgguvghrihgtrdhgihhquhgvlheslhgrphhoshhtvgdrnhgvtheqnecuggftrfgrthhtvghrnhepvdeufeevveethffhgefhffejleeftdeiveefueetvdehjefghfehleetieetkeejnecuffhomhgrihhnpehmvghlphgrrdhorhhgnecukfhppeejledrleehrdekjedrudehvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeejledrleehrdekjedrudehvddphhgvlhhopegludelvddrudeikedrudeghedrudefudgnpdhmrghilhhfrhhomhepfhhrvgguvghrihgtrdhgihhquhgvlheslhgrphhoshhtvgdrnhgvthdpnhgspghrtghpthhtohepuddprhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgpdhmohguvgepshhmthhpohhuth Original-Received: from [192.168.145.131] (152.87.95.79.rev.sfr.net [79.95.87.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mlpnf0102.laposte.net (SMTP Server) with ESMTPSA id 4Jh3131Vs6z7t7L for ; Sat, 22 Jan 2022 18:20:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=laposte.net; s=lpn-wlmd; t=1642872045; bh=bJfQZKr+1OfBBZGF+R+HwAb1wMjtRIs3XdyE6QRkqx8=; h=Message-ID:Subject:From:To:Date:Content-Type:MIME-Version:Content-Transfer-Encoding; b=iJ4Fjvf40cc166h0h1ziPwkmGYyLWs0kXGutSsB8rBQVs/tQn8/jUcPG40impBCJHsnXTX1SqvSnYhzgwHiDCADe3JtUTlFK53mZks6QB3hvRRPBBLwyd6DkW7wBlnIz36hQnQfUP7I3NmcO8mNVTp7MnprFzIEVpwoognt1XUlz/cuJhMs//WHRaZMhD8iVqB382rs3NQq4M2mnHJPhvc3Bk65lCdAFzQjSzI4gaiGLpe25Bxj9hXhvealIXlffVr0G3DpnQzCyKer8GZ9SXfGLI1ujlMWVrCfvB5kg5Z5weexWQ2Tebw3H71gHKeMriQHWKMtZNnIBEf5S2S3T2w==; Received-SPF: pass client-ip=160.92.124.98; envelope-from=frederic.giquel@laposte.net; helo=smtp-outgoing-1603.laposte.net 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 22 Jan 2022 12:25:57 -0500 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:224851 Archived-At: Hi all, I noticed a weird indentation using fish-mode (from MELPA). I tried to understand the root cause and found that the problem only appears when using native-compilation. So I open a bug here (and not in the fish-mode repository). Here is the procedure to repoduce : With the following init.el : (require 'package) (setq package-archives '(("melpa" . "https://melpa.org/packages/"))) (package-initialize) (unless package-archive-contents (package-refresh-contents)) (unless (package-installed-p 'fish-mode) (package-install 'fish-mode)) Open the "foobar.fish" file with the following content (no indentation at this step) : function foobar if test -n "$argv[1]" echo foobar end end Indent the whole buffer with : - M-x mark-whole-buffer - M-x indent-region Here is the result I see : With Emacs 28.0.91 without native-compilation (or with Emacs 27), the buffer is indented correctly : function foobar if test -n "$argv[1]" echo foobar end end With Emacs 28.0.91 with native-compilation (after ensuring that the compilation has been done [*]), the indentation is not the same (and not correct) : function foobar if test -n "$argv[1]" echo foobar end end [*] There is 2 warnings about "docstring wider than 80 characters" during the native compilation of fish-mode Best regards, Fr=C3=A9d=C3=A9ric Giquel In GNU Emacs 28.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.31, cairo version 1.16.0) of 2022-01-22 built on guiriden Repository revision: e58ecd01d51471e7e63d20ee059a5c26251220b7 Repository branch: emacs-28 Windowing system distributor 'The X.Org Foundation', version 11.0.12014000 System Description: Debian GNU/Linux bookworm/sid Configured using: 'configure --prefix=3D/opt/emacs28-native --with-native-compilation' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $EMACSLOADPATH:=20 value of $LANG: fr_FR.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Fish Minor modes in effect: tooltip-mode: t global-eldoc-mode: t show-paren-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 indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail mule-util vc-git diff-mode easy-mmode vc-dispatcher fish-mode cus-edit pp cus-start cus-load wid-edit compile comint ansi-color ring find-func autoload radix-tree lisp-mnt mm-archive message dired dired-loaddefs rfc822 mml mml-sec epa derived gnus-util rmail rmail-loaddefs text-property-search time-date mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode mail- utils gnutls network-stream url-http mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc puny url-cache url-auth epg rfc6068 epg-config finder-inf package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source eieio eieio-core eieio-loaddefs password-cache json map url-vars comp comp-cstr warnings subr-x rx cl-seq cl-macs cl-extra help-mode seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 320362 12926) (symbols 48 17171 1) (strings 32 94792 3943) (string-bytes 1 2484930) (vectors 16 30341) (vector-slots 8 526241 44385) (floats 8 62 308) (intervals 56 511 0) (buffers 992 17))