From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 09 09:46:12 2024 Received: (at submit) by debbugs.gnu.org; 9 Apr 2024 13:46:12 +0000 Received: from localhost ([127.0.0.1]:48688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruBnf-00020r-Pg for submit@debbugs.gnu.org; Tue, 09 Apr 2024 09:46:12 -0400 Received: from lists.gnu.org ([2001:470:142::17]:60784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruBnd-00020O-Sb for submit@debbugs.gnu.org; Tue, 09 Apr 2024 09:46:10 -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 ) id 1ruBnP-0000aQ-UM for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2024 09:45:55 -0400 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ruBnN-0001wl-8K for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2024 09:45:55 -0400 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-516c403cc46so10378152e87.3 for ; Tue, 09 Apr 2024 06:45:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712670351; x=1713275151; darn=gnu.org; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=Bgu/Lk0tRZwIlfANc573Ecqzzw6dDzCVcQBycNSy/q0=; b=QTr7lw1iqqfZDnmmozvDEBb1BQBurMjJmOrjU3ubJP7kjwwX2lLSKFdRPm/Y9Ujde0 FChjKOfHmxZgfHTpjEl9OJX7J0IfXuT//jUKizmSX6BwNJvwsBUBXYlkHogflCfhKGrM AC/BgVGn7BRQNwpezORVaphc3J2DbNZ9dl+hNe7T6m1ZDXD/hzsgeRg9SNKXq0Sdh3JD /b52yPbwtlHVSUlBssDIVfLlAVOOQWSrrF7S47qowS2Pfdgu18NB78rFMBBoO9zEX9x0 rcJM7QCyzbYCM4wSA0i7cqik0MmImUllMo642mTv0553UbMw761rC7/rRQtTQDmYMp29 xdmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712670351; x=1713275151; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Bgu/Lk0tRZwIlfANc573Ecqzzw6dDzCVcQBycNSy/q0=; b=s9+bIQnq5UranJVsiNsfLxpLQeWs5iTySGUrldPnSWA2yoKbcqt1wugp3oYNZYqtpy d3L6Z3Bc433qlyGZi3vseBQ0IFXy5XQgBVB3DitP9j1MPRTHL7xzFUQC5yM/plSjkwP0 R+ZIAjO8YivEUiYaLex3YGjdcHk753pYkxvAi0zyUAQPCY+WWUP1FPXsRDEuoYvIWX0h oxlJkD65+pxsfD/jaUwEnEJQvnjPlbgWS8EL0LkBn+KbkbE8YPuIP8mEoKRlSTl6Hgrd w33HWkqr53sMWNTDMX1RKmEcHR6drjfzcaonBwrYmM2f7XeSxiGPy02iJ8CY5Pi5xhsR SSIw== X-Gm-Message-State: AOJu0Yz3/36VQbG9KMO4/Fh26954+dGCxJvODswY8UhyTJJw6ABAJAyP ER63t7kfWCm+AL/dgWU3tl2iozzF8q4OgqfKnvnoS1meazeLzK90umhsT0bK X-Google-Smtp-Source: AGHT+IEWHQe6CJSlfj+E93ZgE9s57iAY14OxKTHixjJtcmirKWahp9V4wrE7ccUQ1HkZx4V2M+mUBw== X-Received: by 2002:a05:6512:484a:b0:516:d26e:ea6f with SMTP id ep10-20020a056512484a00b00516d26eea6fmr9304403lfb.35.1712670351111; Tue, 09 Apr 2024 06:45:51 -0700 (PDT) Received: from smtpclient.apple (c80-217-1-132.bredband.tele2.se. [80.217.1.132]) by smtp.gmail.com with ESMTPSA id a15-20020a056512200f00b00515b6f5a569sm1572157lfb.214.2024.04.09.06.45.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Apr 2024 06:45:50 -0700 (PDT) From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Subject: flymake in elisp buffer elides warning on a blank first line Message-Id: <75492273-AA84-497D-B206-CAADB1A8E013@gmail.com> Date: Tue, 9 Apr 2024 15:45:50 +0200 To: Emacs Bug Report X-Mailer: Apple Mail (2.3654.120.0.1.15) Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=mattias.engdegard@gmail.com; helo=mail-lf1-x12d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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 Cc: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= 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.0 (/) On Emacs master: 1. Open an Elisp file. 2. Enable flymake. 3. Insert a blank line at the top. This should result in a warning about a missing 'lexical-binding' cookie = but none is shown. Making the first line non-empty, even a single space, makes the warning = appear. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 09 16:10:42 2024 Received: (at 70310) by debbugs.gnu.org; 9 Apr 2024 20:10:42 +0000 Received: from localhost ([127.0.0.1]:51607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruHnm-0006sr-7F for submit@debbugs.gnu.org; Tue, 09 Apr 2024 16:10:42 -0400 Received: from fout6-smtp.messagingengine.com ([103.168.172.149]:39985) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruHni-0006ro-Mu for 70310@debbugs.gnu.org; Tue, 09 Apr 2024 16:10:40 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.nyi.internal (Postfix) with ESMTP id 05BD4138029B; Tue, 9 Apr 2024 16:10:25 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 09 Apr 2024 16:10:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1712693425; x=1712779825; bh=Oq+T2xDbrhlXe1uAoCvL/5ZnNmX2V5x5U3INaE9fY3c=; b= Jm06qI+84jsKSJxfF27g7NwYg3+6uQ8LG7ppHkTEuWmNeCDd1fRPB3w+WoL9m2gH OA1cix313cyWIHWs0XwdbH5rqT6GkT3mP0gRT8W+I3AxQdjxY1TlPF5Cj9RpS8ui lAnuQScvSyG10UXs3+QmFrbCKd7AQeKEbVC3sRcp/vjgUTGYp+bvt10PCGm4irzD 6+EuPkpO65Cl0w1DxXe0V/flIACKnimwcadzyH7HFqLoPv63OMb53+dpaf1WcuEJ k0oZ6yOO5to6/Z/XLalIHQkGrxojxLsuj/SVaQ/QunfZoUr222+sbocHzwP8+GTp GO/EKxTre75DsK3fe7TYMg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1712693425; x= 1712779825; bh=Oq+T2xDbrhlXe1uAoCvL/5ZnNmX2V5x5U3INaE9fY3c=; b=u dbxQMj5y3kC6ZwgtsOTaDZtOeTaHc5qgMKtBkM9M0R/fpC5XV9IcIG5/LhZfndEq EDUJaqDoOlZKZYViqowcEdxx2CFtDH3U7ze84uifofwMSQaGsaEcnkUATvqxVU48 lYFHNm7s7tPHpPldqs8NAB4nInsvk+AeN0tw/beiBk7egR4wci6J3j/MmInNNSGj 3yVZMWhHoKklcIIkIZFJrOtUeVr3OX0nNgS7ojiVPWIrIaBysolBdPpUA9gbig0m OENYettSapmlSnyAtcz2gjBszA7/888R6TdMT/d30Ltumi36ajkm5d8jDOuiiqYU qsWYUuY9nFw3ihnbWLdIQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudehgedgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepgeelfeetkefghfdvhfdtgeevveevteetgeetveegtedthefhudekteehffeu keeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 9 Apr 2024 16:10:23 -0400 (EDT) Message-ID: <73ac4d10-cdcd-4788-9920-3446f1ad13b0@gutov.dev> Date: Tue, 9 Apr 2024 23:10:22 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#70310: flymake in elisp buffer elides warning on a blank first line Content-Language: en-US To: =?UTF-8?Q?Mattias_Engdeg=C3=A5rd?= , 70310@debbugs.gnu.org References: <75492273-AA84-497D-B206-CAADB1A8E013@gmail.com> From: Dmitry Gutov In-Reply-To: <75492273-AA84-497D-B206-CAADB1A8E013@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70310 Cc: Spencer Baugh , =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 09/04/2024 16:45, Mattias EngdegÄrd wrote: > On Emacs master: > > 1. Open an Elisp file. > 2. Enable flymake. > 3. Insert a blank line at the top. > > This should result in a warning about a missing 'lexical-binding' cookie but none is shown. > Making the first line non-empty, even a single space, makes the warning appear. Some brief experiment shows that these lines are relevant, though I'm not sure why, given that the byte-compiler's output is the same, whether the first line is empty or not: diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index 9b4c3f994cd..bc03130827c 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el @@ -2151,8 +2151,8 @@ elisp-flymake--byte-compile-done (point-max))) collect (flymake-make-diagnostic (current-buffer) - (if (= beg end) (1- beg) beg) - end + beg + (if (= beg end) (1+ end) end) level string))))))) From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 11 08:04:55 2024 Received: (at 70310-done) by debbugs.gnu.org; 11 Apr 2024 12:04:55 +0000 Received: from localhost ([127.0.0.1]:55136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rutAh-0008P4-TL for submit@debbugs.gnu.org; Thu, 11 Apr 2024 08:04:55 -0400 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:53572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rutAU-0008Ms-WC for 70310-done@debbugs.gnu.org; Thu, 11 Apr 2024 08:04:51 -0400 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-516c403cc46so15023352e87.3 for <70310-done@debbugs.gnu.org>; Thu, 11 Apr 2024 05:04:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712837064; x=1713441864; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=DBULITnRf9x0idvvHvnU/J4OjldKztFblG+r+W+o3rw=; b=OpwcsAXroTfPtVBivtCzY2fq0IwRtwUD4+xh7PkLnvupKmX/VDlIr+Zsr758kG480v Fk+CUb/5Al2TtJgevyjyEXjKtM+tlFySa/hFLEnjUHHqKIud+6mFPZYS7ELeh1GUWGfL 1iZeGPA+EnmnPsIrt4wjr9CpHgetekXWFCJ2N+F39I8+gmEd+CI9owBURcFlOYzs0/YW TP0P5tl4zJqpuxEhZiAzrj5O06IFjwOWgtQ+KAR7SygOmcGYYVE8EgeawjMkU2LjJyAg dUybd1xkdWPWynaGTFZ+oorUmMNNUBrHo7r3zIOquI/AkDLAT/8OfIURWn/C7h8uwNk4 rmnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712837064; x=1713441864; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=DBULITnRf9x0idvvHvnU/J4OjldKztFblG+r+W+o3rw=; b=Owo7gBPYD1SNGwrmHycD+xbn96yITonp0J2hRt/WVKzfRVoKKsQFB2/GdsDMdJVVzX PZo1IjuJk6NHML78vHM/ROZDQN6IrmaISF5XKmFOcyyTjXnxEWkOTca3X9XsMKgvjepU gvbFRA6K0I4wT/otZAJYR9fvD9A3B/5LuAPUhzSaZILh71I6Wmp6rAZ6Xnv6QUFGHesy kQoZKTgsJ0x4RnkCt4JG51M2pyEHB1xkv0NPz4oB8oxnINa4LYhy37EUDj9I/xSdCX3/ Q9i+PUurBg+a81hOlkGrepV2dZzTSnQso6NhMa/yIWG/xTP05KpmbnBNhr+yJpyB3E0t mXVg== X-Gm-Message-State: AOJu0Yw2d4OKa2jUBMRokmB+yB/PMmcpMxQKLzJabF075VeUovI5ZKRn y3V/BO/C1Bn+PeO9f4mBYm+A43PJnS69WbwgwhqCzk0GItRTeO2C X-Google-Smtp-Source: AGHT+IEX9Uu/iV3wUBAJ5vC/0WawFt+KrluXNrYyiMDWt6J/YoRZSTkB37kVJvbCCCnT8c4m0oBRiw== X-Received: by 2002:a05:6512:31d0:b0:516:a1eb:e6a8 with SMTP id j16-20020a05651231d000b00516a1ebe6a8mr4729735lfe.39.1712837063219; Thu, 11 Apr 2024 05:04:23 -0700 (PDT) Received: from smtpclient.apple (c80-217-1-132.bredband.tele2.se. [80.217.1.132]) by smtp.gmail.com with ESMTPSA id s7-20020a056512314700b0051710d05a34sm190225lfi.255.2024.04.11.05.04.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2024 05:04:22 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Subject: Re: bug#70310: flymake in elisp buffer elides warning on a blank first line From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= In-Reply-To: <73ac4d10-cdcd-4788-9920-3446f1ad13b0@gutov.dev> Date: Thu, 11 Apr 2024 14:04:21 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <67F1203A-7DDF-4E65-97AB-EED5918BBFC7@gmail.com> References: <75492273-AA84-497D-B206-CAADB1A8E013@gmail.com> <73ac4d10-cdcd-4788-9920-3446f1ad13b0@gutov.dev> To: Dmitry Gutov X-Mailer: Apple Mail (2.3654.120.0.1.15) X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 70310-done Cc: 70310-done@debbugs.gnu.org, Spencer Baugh , =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= 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.3 (/) 9 apr. 2024 kl. 22.10 skrev Dmitry Gutov : > Some brief experiment shows that these lines are relevant, though I'm = not sure why, given that the byte-compiler's output is the same, whether = the first line is empty or not: Yes, I got as far as you did and wondered where this information ends up = and if we need to do something there. Then I stopped overthinking it and just bolted on some clamps = (b436f430e38). Seems to work, so I'm closing the bug. From unknown Mon Aug 18 18:01:48 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, 10 May 2024 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator