GNU bug report logs - #78206
31.0.50; false warning "Missing ‘lexical-binding’ cookie"

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Andreas Röhler <andreas.roehler@HIDDEN>; merged with #77883; dated Fri, 2 May 2025 09:34:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 77883 78206. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 78206 <at> debbugs.gnu.org:


Received: (at 78206) by debbugs.gnu.org; 2 May 2025 11:14:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 02 07:14:27 2025
Received: from localhost ([127.0.0.1]:56896 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uAoLb-0000o8-Fy
	for submit <at> debbugs.gnu.org; Fri, 02 May 2025 07:14:27 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:34764)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>)
 id 1uAoLZ-0000nk-1D; Fri, 02 May 2025 07:14:26 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uAoLS-0005ac-Oz; Fri, 02 May 2025 07:14:19 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=KrSf0IHPPDecGV5k18ZlmEE/U5i/S8HcgD7TyLZlcIU=; b=U9fugUDhiRLgFQl64FDX
 POf6lJaGY/DtgNwRfpamdtLEcI9YXnklm5o4Mav8S1aLCAbJ0DmgD0eEA7fu7ic38O7HYsRhO1FoO
 VTAWjVzTUdd0hBqjnBorUVa6b1gRHuVUZiayOtRu8ZDcEX6dTT6NrmNztfV9uzKvwLcmWJjSEerEm
 Q1cH3/8X718GJifFT5ZAd5Nn0y/gxcgVGVHCGuJFA+XRIGTetR2AtkUYUHgDczQ+i+lCVFuHSHsO3
 +AIdb7i8bl84H2tzB4rITsPn92fkuw9oLYPCEa9irGS/pjt/7FWICl4VPLyzMymMkkHAxslLF7/kS
 uoWZxsunQwNNog==;
Date: Fri, 02 May 2025 14:14:00 +0300
Message-Id: <86tt63l0xz.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andreas =?utf-8?Q?R=C3=B6hler?= <andreas.roehler@HIDDEN>
In-Reply-To: <49e0d597-5de9-412d-b7e2-acf3ce6b7a0b@HIDDEN> (message
 from Andreas =?utf-8?Q?R=C3=B6hler?= on Fri, 2 May 2025 11:33:02 +0200)
Subject: Re: bug#78206: 31.0.50;
 false warning "Missing =?utf-8?Q?=E2=80=98lexical-binding=E2=80=99?=
 cookie"
References: <49e0d597-5de9-412d-b7e2-acf3ce6b7a0b@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78206
Cc: 78206 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

merge 78206 77883
thanks

> Date: Fri, 2 May 2025 11:33:02 +0200
> From: Andreas Röhler <andreas.roehler@HIDDEN>
> 
> When evaluating a narrowed part of buffer, get false "Warning (files): 
> Missing ‘lexical-binding’ cookie".
> 
> Maybe check for something like
> 
> (/= (buffer-size) (- (point-max) (point-min)))
> 
> ?

This is a "feature".  See bug#77883.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78206; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 2 May 2025 09:33:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 02 05:33:22 2025
Received: from localhost ([127.0.0.1]:56505 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uAmll-0003wu-N6
	for submit <at> debbugs.gnu.org; Fri, 02 May 2025 05:33:22 -0400
Received: from lists.gnu.org ([2001:470:142::17]:55970)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <andreas.roehler@HIDDEN>)
 id 1uAmlf-0003wV-Qx
 for submit <at> debbugs.gnu.org; Fri, 02 May 2025 05:33:19 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <andreas.roehler@HIDDEN>)
 id 1uAmlZ-0004kl-Ey
 for bug-gnu-emacs@HIDDEN; Fri, 02 May 2025 05:33:09 -0400
Received: from mout.kundenserver.de ([212.227.17.10])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <andreas.roehler@HIDDEN>)
 id 1uAmlX-00077h-9M
 for bug-gnu-emacs@HIDDEN; Fri, 02 May 2025 05:33:09 -0400
Received: from [192.168.178.61] ([89.247.171.227]) by mrelayeu.kundenserver.de
 (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id
 1Mdv2u-1ujIpk3IxC-00hiKn for <bug-gnu-emacs@HIDDEN>; Fri, 02 May 2025
 11:33:02 +0200
Message-ID: <49e0d597-5de9-412d-b7e2-acf3ce6b7a0b@HIDDEN>
Date: Fri, 2 May 2025 11:33:02 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: de-DE
To: bug-gnu-emacs@HIDDEN
From: =?UTF-8?Q?Andreas_R=C3=B6hler?= <andreas.roehler@HIDDEN>
Subject: =?UTF-8?Q?31=2E0=2E50=3B_false_warning_=22Missing_=E2=80=98lexical-?=
 =?UTF-8?B?YmluZGluZ+KAmSBjb29raWUi?=
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Provags-ID: V03:K1:zQFOA7NI0/KmN5FOY6/jnuMe/7i+fsaFziQm8mrElr4gX/Gq6PK
 Panf01jOEfP3KiusMy3bjI0ywyjMyoS0lRtdpanlUGKe443Ikt68lm8fhHZvc/SuOk6aowh
 I/U6h0GT0YtEXgVGI7CSjKT8chyhW/hZkj6vGmClxr8iNgQrytw563ZpCxaTgjgjML15n+P
 nsqj/T7M5f70n9NYQldlA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:tZ/cyCLNuZY=;rI4JEZQlzlazrpzB50MllcbAl7f
 56hK0RpnMZjM3nCf7aUjfXKlN5O1TkxNG8Z/UKqk6T7cqQ6LrJQ89YWL+zvQrL3vtVSlytvTn
 3TWzkHKWu/3AcWjv47uljFUXIVY6ICxBppbzBmRHjhwAFdm3jnSqcWwStrHYdRGXO4ZQxlfgR
 TjO28JB6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u0c5Ik740emKl62gcXS7+okFJmhNmjso8LxNtvwC4
 BIrgaadvkMq6ebij0e6KgrQPF0SLNJfQ5kKQvPszK0mFhULwUPw4FP3Grukjh9Ymq3NSl7zdN
 +617VifZVrBhqzPtu594OyyYZh6q4JYVbHCVunShL0a4cG4MnB/JioQ4It1Flhle/bOuqPDn+
 TaLHbgtGeM1AGadWzt0rd+/zVPkTxXEk0+lSdRdvjiR6Agyj3f2Oxb57ui
Received-SPF: pass client-ip=212.227.17.10;
 envelope-from=andreas.roehler@HIDDEN; helo=mout.kundenserver.de
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

When evaluating a narrowed part of buffer, get false "Warning (files): 
Missing ‘lexical-binding’ cookie".

Maybe check for something like

(/= (buffer-size) (- (point-max) (point-min)))

?

In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
  3.24.33, cairo version 1.16.0) of 2025-05-02 built on kanu
Repository revision: 3f8f738d1d6b583415aa5d5584299794838316ca
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Ubuntu 22.04.5 LTS

Configured using:
  'configure --with-mailutils --with-modules -with-tree-sitter'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG
LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG
RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE
XIM XINERAMA XINPUT2 XPM XRANDR GTK3 ZLIB

Important settings:
   value of $LANG: de_DE.UTF-8
   value of $XMODIFIERS: @im=ibus
   locale-coding-system: utf-8-unix

Major mode: Elisp/l

Minor modes in effect:
   tooltip-mode: t
   global-eldoc-mode: t
   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
   minibuffer-regexp-mode: t
   line-number-mode: t
   indent-tabs-mode: t
   transient-mark-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug lisp-mnt warnings icons vc-filewise
vc-rcs log-view log-edit message sendmail mailcap yank-media puny rfc822
mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util
text-property-search time-date subr-x mm-decode mm-bodies mm-encode
mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr
mailabbrev mail-utils gmm-utils mailheader ring add-log easy-mmode
pcvs-util dired-aux cl-loaddefs cl-lib dired dired-loaddefs rmc
iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win
term/common-win x-dnd touch-screen 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 nadvice seq simple cl-generic indonesian philippine
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 abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads dbusbind inotify dynamic-setting system-font-setting
font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar
make-network-process tty-child-frames emacs)

Memory information:
((conses 16 97864 26215) (symbols 48 17182 0) (strings 32 39024 2454)
  (string-bytes 1 654016) (vectors 16 11130)
  (vector-slots 8 129218 11909) (floats 8 27 18) (intervals 56 638 8)
  (buffers 992 15))





Acknowledgement sent to Andreas Röhler <andreas.roehler@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#78206; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 2 May 2025 11:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.