GNU logs - #79769, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#79769: ELPA version of flymake is broken in older Emacsen
Resent-From: Steve Purcell <steve@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 05 Nov 2025 13:51:01 +0000
Resent-Message-ID: <handler.79769.B.176235061415624 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 79769
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 79769 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.176235061415624
          (code B ref -1); Wed, 05 Nov 2025 13:51:01 +0000
Received: (at submit) by debbugs.gnu.org; 5 Nov 2025 13:50:14 +0000
Received: from localhost ([127.0.0.1]:56834 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vGdtt-00043u-IJ
	for submit <at> debbugs.gnu.org; Wed, 05 Nov 2025 08:50:13 -0500
Received: from lists.gnu.org ([2001:470:142::17]:59734)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <steve@HIDDEN>)
 id 1vGdtr-0003xw-RK
 for submit <at> debbugs.gnu.org; Wed, 05 Nov 2025 08:50:12 -0500
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 <steve@HIDDEN>)
 id 1vGdth-0007ek-BI
 for bug-gnu-emacs@HIDDEN; Wed, 05 Nov 2025 08:50:02 -0500
Received: from mail.purcellpeople.com ([139.162.128.219])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <steve@HIDDEN>)
 id 1vGdtf-0003ko-7j
 for bug-gnu-emacs@HIDDEN; Wed, 05 Nov 2025 08:50:01 -0500
From: Steve Purcell <steve@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sanityinc.com;
 s=default; t=1762350592;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding;
 bh=O+Q8JO0I6q+jmpMYGEE7Yjb6LX9IPKGy00mfePZ1144=;
 b=siM5u/giqRZTDCSr9FybYZHd8t8CpT2WgFJF8Q6CKLWB/pY+67evsZf+xBjSCt1nfMpNwd
 auRYwdRVJg/49uYpuXBnORu3AE5g5rqzmmRFxJObR9xU/0UkoH6g7WPsJG2DbkF1t+jXjt
 R+4cJGQsKGV5EVIXlxMGCb6cE2pNQ9o=
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.200.81.1.6\))
Message-Id: <4B6F8007-A581-4BDC-878B-C997B523A83E@HIDDEN>
Date: Wed, 5 Nov 2025 13:49:41 +0000
Received-SPF: pass client-ip=139.162.128.219; envelope-from=steve@HIDDEN;
 helo=mail.purcellpeople.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,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_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-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 (/)

Running with flymake-1.4.2 from ELPA in CI with Emacs 27.2, one finds
the following bytecomp warnings:

flymake.el:2443:1:Warning: the following functions are not known to be
    defined: keymap-set, next-error-this-buffer-no-select,
    previous-error-this-buffer-no-select, project-root, project-buffers

and then consequent runtime errors occur when enabling flymake-mode:

Debugger entered--Lisp error: (void-function keymap-set)
  keymap-set((keymap (32 . flymake-show-diagnostic) (13 . =
flymake-goto-diagnostic)) "C-o" flymake-show-diagnostic)
  byte-code("\300 =
\301\1\302\303#\210\301\1\304\305#\210\306\1\307\305#\210\306\1\310\303#\2=
10\306\1\311\312#\210\306\1\313\314#\210\211\207" [make-sparse-keymap =
define-key "\15" flymake-goto-diagnostic " " flymake-show-diagnostic =
keymap-set "C-o" "C-m" "n" next-error-this-buffer-no-select "p" =
previous-error-this-buffer-no-select] 5)
  (defvar flymake-diagnostics-buffer-mode-map (byte-code "\300 =
\301\1\302\303#\210\301\1\304\305#\210\306\1\307\305#\210\306\1\310\303#\2=
10\306\1\311\312#\210\306\1\313\314#\210\211\207" [make-sparse-keymap =
define-key "\15" flymake-goto-diagnostic " " flymake-show-diagnostic =
keymap-set "C-o" "C-m" "n" next-error-this-buffer-no-select "p" =
previous-error-this-buffer-no-select] 5))
  flymake-mode()

The idea of the ELPA package is to distribute modern flymake for use in
older Emacsen, and if this isn't possible for some reason, then the ELPA
flymake package itself should declare a package dependency on an
appropriate minimum Emacs version.


To reproduce: use Emacs 27.2 (or perhaps even 27.1):

emacs -Q
M-x package-refresh-contents
M-x list-packages

Select flymake 1.4.2 and install it, then enable flymake-mode in a =
specific buffer.=




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Steve Purcell <steve@HIDDEN>
Subject: bug#79769: Acknowledgement (ELPA version of flymake is broken in
 older Emacsen)
Message-ID: <handler.79769.B.176235061415624.ack <at> debbugs.gnu.org>
References: <4B6F8007-A581-4BDC-878B-C997B523A83E@HIDDEN>
X-Gnu-PR-Message: ack 79769
X-Gnu-PR-Package: emacs
Reply-To: 79769 <at> debbugs.gnu.org
Date: Wed, 05 Nov 2025 13:51:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 79769 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
79769: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D79769
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#79769: ELPA version of flymake is broken in older Emacsen
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 05 Nov 2025 15:05:02 +0000
Resent-Message-ID: <handler.79769.B79769.176235508328828 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79769
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Steve Purcell <steve@HIDDEN>, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>
Cc: 79769 <at> debbugs.gnu.org
Received: via spool by 79769-submit <at> debbugs.gnu.org id=B79769.176235508328828
          (code B ref 79769); Wed, 05 Nov 2025 15:05:02 +0000
Received: (at 79769) by debbugs.gnu.org; 5 Nov 2025 15:04:43 +0000
Received: from localhost ([127.0.0.1]:57116 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vGf3y-0007Uu-LQ
	for submit <at> debbugs.gnu.org; Wed, 05 Nov 2025 10:04:43 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:42320)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vGf3v-0007UX-V5
 for 79769 <at> debbugs.gnu.org; Wed, 05 Nov 2025 10:04:40 -0500
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 1vGf3q-0001Jp-AG; Wed, 05 Nov 2025 10:04:34 -0500
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=DJwk42QkgnuERcgm4UdKeKp0b1263i1ttf++1mEjLDM=; b=Zdi839b2sH72BDDdSf81
 nOYhvwos99HB8EUltMwc+onIxoXkTOEl5hMMu+y8HeW1yHD3ecv7gg/8ICxbDz7+jDZQ4ipUMJqbg
 9Dz4MnWnwNV5Xk+W4UsmhYSJEkLbwZ5gBO8lBj4y0/cCaYTVapVTdhGGsvcSBNAHItEyiqI2s4F74
 NeNzfJGuh/bg05z4cNWxMxETKAB6WJnnd2htNvpUJc+KWmwUiAHy3vXpwI9mjKh4N2/Yl5anPexRs
 6ItKWogQQFCMV4MvnlRv3/1+EkXKYIg9IfsFkf1dNsTwgua6vImP9pjRUpmVwgQg3/++qplx+22Gs
 Dw106JeEVq9wPQ==;
Date: Wed, 05 Nov 2025 17:04:29 +0200
Message-Id: <86wm44ed1e.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <4B6F8007-A581-4BDC-878B-C997B523A83E@HIDDEN> (message
 from Steve Purcell on Wed, 5 Nov 2025 13:49:41 +0000)
References: <4B6F8007-A581-4BDC-878B-C997B523A83E@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
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 (---)

> From: Steve Purcell <steve@HIDDEN>
> Date: Wed, 5 Nov 2025 13:49:41 +0000
> 
> Running with flymake-1.4.2 from ELPA in CI with Emacs 27.2, one finds
> the following bytecomp warnings:
> 
> flymake.el:2443:1:Warning: the following functions are not known to be
>     defined: keymap-set, next-error-this-buffer-no-select,
>     previous-error-this-buffer-no-select, project-root, project-buffers
> 
> and then consequent runtime errors occur when enabling flymake-mode:
> 
> Debugger entered--Lisp error: (void-function keymap-set)
>   keymap-set((keymap (32 . flymake-show-diagnostic) (13 . flymake-goto-diagnostic)) "C-o" flymake-show-diagnostic)
>   byte-code("\300 \301\1\302\303#\210\301\1\304\305#\210\306\1\307\305#\210\306\1\310\303#\210\306\1\311\312#\210\306\1\313\314#\210\211\207" [make-sparse-keymap define-key "\15" flymake-goto-diagnostic " " flymake-show-diagnostic keymap-set "C-o" "C-m" "n" next-error-this-buffer-no-select "p" previous-error-this-buffer-no-select] 5)
>   (defvar flymake-diagnostics-buffer-mode-map (byte-code "\300 \301\1\302\303#\210\301\1\304\305#\210\306\1\307\305#\210\306\1\310\303#\210\306\1\311\312#\210\306\1\313\314#\210\211\207" [make-sparse-keymap define-key "\15" flymake-goto-diagnostic " " flymake-show-diagnostic keymap-set "C-o" "C-m" "n" next-error-this-buffer-no-select "p" previous-error-this-buffer-no-select] 5))
>   flymake-mode()
> 
> The idea of the ELPA package is to distribute modern flymake for use in
> older Emacsen, and if this isn't possible for some reason, then the ELPA
> flymake package itself should declare a package dependency on an
> appropriate minimum Emacs version.
> 
> 
> To reproduce: use Emacs 27.2 (or perhaps even 27.1):
> 
> emacs -Q
> M-x package-refresh-contents
> M-x list-packages
> 
> Select flymake 1.4.2 and install it, then enable flymake-mode in a specific buffer.

Thanks, I'm adding João to the discussion.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#79769: ELPA version of flymake is broken in older Emacsen
Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 06 Nov 2025 01:41:02 +0000
Resent-Message-ID: <handler.79769.B79769.176239323915747 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79769
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>, Spencer Baugh <sbaugh@HIDDEN>
Cc: Steve Purcell <steve@HIDDEN>, 79769 <at> debbugs.gnu.org
Received: via spool by 79769-submit <at> debbugs.gnu.org id=B79769.176239323915747
          (code B ref 79769); Thu, 06 Nov 2025 01:41:02 +0000
Received: (at 79769) by debbugs.gnu.org; 6 Nov 2025 01:40:39 +0000
Received: from localhost ([127.0.0.1]:32936 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vGozO-00045o-1l
	for submit <at> debbugs.gnu.org; Wed, 05 Nov 2025 20:40:38 -0500
Received: from mail-oo1-xc2d.google.com ([2607:f8b0:4864:20::c2d]:43111)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vGozK-00045E-5D
 for 79769 <at> debbugs.gnu.org; Wed, 05 Nov 2025 20:40:35 -0500
Received: by mail-oo1-xc2d.google.com with SMTP id
 006d021491bc7-656bcab39f0so407264eaf.0
 for <79769 <at> debbugs.gnu.org>; Wed, 05 Nov 2025 17:40:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1762393228; x=1762998028; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=embzsHLC1DRWOnlTUajy+TqsadD2jTLIIRYH7ZS5mwQ=;
 b=fXQgeot+xTHzS76TQO9XCzAOW2i2W5W57n9axLDN4Q78He/0WabXKTciOTFpGI3NOm
 NzeU2LHMdBRQs+BmPJDoRXqff56ohEX8wRt6HEfZuO81+rKbYMGNDwVAzyTL+Udj432P
 w/aAe/51YSKdruCv7eEsuz2HZ+qT+Kp36Wgkxrlt0B0bOq8lB/6PY5Fxz6pl8IA1U6WG
 b4S+CNPKklnek/tlSsm7EUNGcT03i0AJMHIAZoC7/Vcx8qfqaZr8qX1M8RVJqpJDZFQ0
 LSUiibZddcteNCVoZpaGxm5ZL91pn+u+BN8fQ6XzlPZCj9qWDGI6lAOxq3mu64Q7usAu
 gyOA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1762393228; x=1762998028;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=embzsHLC1DRWOnlTUajy+TqsadD2jTLIIRYH7ZS5mwQ=;
 b=oir2BbTMwJlBwvp4act962iL0aV5uRIqkaBjmwnbc1wNSjipaU1iqwAjce7VlT23hH
 XJtj3CqUOcKh7SeQ3Qxt/OHmddejW6/3aAFUe2nlIr2ZqPpQLpBUDXyCcmwZXWkw4Rre
 V9QZizY0MNb19+v0gyMbozdtsHxx+mhY3Bj69SfHZ/QRDkclNIMjCftu87forpdXpBYU
 HvUVpl/snbMxACMzACQhBEXOjnwMgL8Wxe+OPGYcQ+8dT5667VF0v0T2CHhbuoif2oGL
 Zrw9Eii3Hitlg2++AW/6Lo9rnu3uqJKP0HIV12hxHSLbZkAfwS6Q1WfHm4HCvswJRs3Z
 kXWg==
X-Forwarded-Encrypted: i=1;
 AJvYcCUk2b6T77FbiZjg4MvXOb4WdaAYEr8Vv1a3RBki96a2lm4+qrSwRKu2vvTE5ojK6IYXph025w==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxjMRhMyz8Z2QOQ/1QzbS+ujyn8Uo+lXv4W5TNqY34OP3rCpGv3
 c3zFp34YF1GbG7rxfoIlGtlv6q8BVXANdROsYPiKXiNk6cVi0j9Nr4UqPzSD1uMMifiH2wd3P3+
 1ZF5YFGxn/Z5HHcWmmnSvu9UkT5/m8BI=
X-Gm-Gg: ASbGnctKIi3I+Wc/iit2ZflwGqHyzSxy0AiyZA30yYCzX211kf0fVXK5XG3pefTchzk
 K1Dy0rTZY5JLqOrZ2tjIzDx9DBRbZWfWvBzmMt4qDVZ3djvNV2LIVKwt2N8luY+HuaWxnUvNcpK
 Zalc37O/3PhVqgJQeVmTFO82YGXPMC5zsYx7aLM5CwOrWI9IgweBlyOvLxtTKcx0m9NQvwwLRwY
 TSNLS9W++BwNYXmkowRJcibijaI0dCcQRxPKGOF9lnzsu7uBP/dIaxOlyMLkQKrmtqMXvw=
X-Google-Smtp-Source: AGHT+IEOX8NXP6XwIMjzG3+6LayZa16/OZtY7xtNB0A/FS4mfrynmrpU278Fa7vxMowMD8myeOMjK5mSs55Y/tH4Z2s=
X-Received: by 2002:a05:6808:5384:b0:44f:9f6a:f022 with SMTP id
 5614622812f47-44fffc463f2mr858057b6e.15.1762393228005; Wed, 05 Nov 2025
 17:40:28 -0800 (PST)
MIME-Version: 1.0
References: <4B6F8007-A581-4BDC-878B-C997B523A83E@HIDDEN>
 <86wm44ed1e.fsf@HIDDEN>
In-Reply-To: <86wm44ed1e.fsf@HIDDEN>
From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>
Date: Thu, 6 Nov 2025 01:41:48 +0000
X-Gm-Features: AWmQ_bmJbNKO8D--k869DUuJs2deP-fENI9oQmW103tdSQ7GsyZ2B5kuc0oKLUE
Message-ID: <CALDnm53C7b9So54_c5D_Ms-MSOYrFz3+B2iQeXpZ64nM8LnVoA@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000004f54a50642e32647"
X-Spam-Score: 0.0 (/)
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: -1.0 (-)

--0000000000004f54a50642e32647
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi.

Indeed, it looks like this commit

commit 9d6a4fdd7e4e82ea804a83f428e395ffbbc3e8dd
Author: Matthew Tromp <matthewktromp@HIDDEN>
Date:   Mon May 19 15:45:21 2025 -0400

Didn't follow the advice:

;; This is a GNU ELPA :core package.  Avoid functionality that is not
;; compatible with the version of Emacs recorded above.

It's just a question of using define-key instead of keymap-set.

As to project-root it should be available because flymake requires
project.  Maybe the required project could be bumped (and it should)
but that's usually not necessary.

Finally the next-error-... things are non-essential features.  They're
bound to n and p in flymake-diagnostics-buffer-mode-map, and
they were added by Matthew too, but this binding didn't replace
any new one.  So we could disable the binding, or we could just
let it error.

I've added Spencer to this thread.

Jo=C3=A3o





On Wed, Nov 5, 2025 at 3:04=E2=80=AFPM Eli Zaretskii <eliz@HIDDEN> wrote:

> > From: Steve Purcell <steve@HIDDEN>
> > Date: Wed, 5 Nov 2025 13:49:41 +0000
> >
> > Running with flymake-1.4.2 from ELPA in CI with Emacs 27.2, one finds
> > the following bytecomp warnings:
> >
> > flymake.el:2443:1:Warning: the following functions are not known to be
> >     defined: keymap-set, next-error-this-buffer-no-select,
> >     previous-error-this-buffer-no-select, project-root, project-buffers
> >
> > and then consequent runtime errors occur when enabling flymake-mode:
> >
> > Debugger entered--Lisp error: (void-function keymap-set)
> >   keymap-set((keymap (32 . flymake-show-diagnostic) (13 .
> flymake-goto-diagnostic)) "C-o" flymake-show-diagnostic)
> >   byte-code("\300
> \301\1\302\303#\210\301\1\304\305#\210\306\1\307\305#\210\306\1\310\303#\=
210\306\1\311\312#\210\306\1\313\314#\210\211\207"
> [make-sparse-keymap define-key "\15" flymake-goto-diagnostic " "
> flymake-show-diagnostic keymap-set "C-o" "C-m" "n"
> next-error-this-buffer-no-select "p" previous-error-this-buffer-no-select=
]
> 5)
> >   (defvar flymake-diagnostics-buffer-mode-map (byte-code "\300
> \301\1\302\303#\210\301\1\304\305#\210\306\1\307\305#\210\306\1\310\303#\=
210\306\1\311\312#\210\306\1\313\314#\210\211\207"
> [make-sparse-keymap define-key "\15" flymake-goto-diagnostic " "
> flymake-show-diagnostic keymap-set "C-o" "C-m" "n"
> next-error-this-buffer-no-select "p" previous-error-this-buffer-no-select=
]
> 5))
> >   flymake-mode()
> >
> > The idea of the ELPA package is to distribute modern flymake for use in
> > older Emacsen, and if this isn't possible for some reason, then the ELP=
A
> > flymake package itself should declare a package dependency on an
> > appropriate minimum Emacs version.
> >
> >
> > To reproduce: use Emacs 27.2 (or perhaps even 27.1):
> >
> > emacs -Q
> > M-x package-refresh-contents
> > M-x list-packages
> >
> > Select flymake 1.4.2 and install it, then enable flymake-mode in a
> specific buffer.
>
> Thanks, I'm adding Jo=C3=A3o to the discussion.
>


--=20
Jo=C3=A3o T=C3=A1vora

--0000000000004f54a50642e32647
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi.</div><div><br></div><div>Indeed, it looks like th=
is commit</div><div><br></div><div>commit 9d6a4fdd7e4e82ea804a83f428e395ffb=
bc3e8dd<br>Author: Matthew Tromp &lt;<a href=3D"mailto:matthewktromp@gmail.=
com">matthewktromp@HIDDEN</a>&gt;<br>Date: =C2=A0 Mon May 19 15:45:21 20=
25 -0400</div><div><br></div><div>Didn&#39;t follow the advice:</div><div><=
br></div><div>;; This is a GNU ELPA :core package.=C2=A0 Avoid functionalit=
y that is not<br>;; compatible with the version of Emacs recorded above.</d=
iv><div><br></div><div>It&#39;s just a question of using define-key instead=
 of keymap-set.</div><div><br></div><div>As to project-root it should be av=
ailable because flymake requires</div><div>project.=C2=A0 Maybe the require=
d project could be bumped (and it should)</div><div>but that&#39;s usually =
not necessary.</div><div><br></div><div>Finally the next-error-... things a=
re non-essential features.=C2=A0 They&#39;re</div><div>bound to n and p in=
=C2=A0flymake-diagnostics-buffer-mode-map, and</div><div>they were added by=
 Matthew too, but this binding didn&#39;t replace</div><div>any new one.=C2=
=A0 So we could disable the binding, or we could just</div><div>let it erro=
r.</div><div><br></div><div>I&#39;ve added Spencer to this thread.</div><di=
v><br></div><div>Jo=C3=A3o</div><div><br></div><div><br></div><div><br></di=
v><div><br></div></div><br><div class=3D"gmail_quote gmail_quote_container"=
><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Nov 5, 2025 at 3:04=E2=80=AF=
PM Eli Zaretskii &lt;<a href=3D"mailto:eliz@HIDDEN">eliz@HIDDEN</a>&gt; w=
rote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0p=
x 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">&gt; From:=
 Steve Purcell &lt;<a href=3D"mailto:steve@HIDDEN" target=3D"_blank"=
>steve@HIDDEN</a>&gt;<br>
&gt; Date: Wed, 5 Nov 2025 13:49:41 +0000<br>
&gt; <br>
&gt; Running with flymake-1.4.2 from ELPA in CI with Emacs 27.2, one finds<=
br>
&gt; the following bytecomp warnings:<br>
&gt; <br>
&gt; flymake.el:2443:1:Warning: the following functions are not known to be=
<br>
&gt;=C2=A0 =C2=A0 =C2=A0defined: keymap-set, next-error-this-buffer-no-sele=
ct,<br>
&gt;=C2=A0 =C2=A0 =C2=A0previous-error-this-buffer-no-select, project-root,=
 project-buffers<br>
&gt; <br>
&gt; and then consequent runtime errors occur when enabling flymake-mode:<b=
r>
&gt; <br>
&gt; Debugger entered--Lisp error: (void-function keymap-set)<br>
&gt;=C2=A0 =C2=A0keymap-set((keymap (32 . flymake-show-diagnostic) (13 . fl=
ymake-goto-diagnostic)) &quot;C-o&quot; flymake-show-diagnostic)<br>
&gt;=C2=A0 =C2=A0byte-code(&quot;\300 \301\1\302\303#\210\301\1\304\305#\21=
0\306\1\307\305#\210\306\1\310\303#\210\306\1\311\312#\210\306\1\313\314#\2=
10\211\207&quot; [make-sparse-keymap define-key &quot;\15&quot; flymake-got=
o-diagnostic &quot; &quot; flymake-show-diagnostic keymap-set &quot;C-o&quo=
t; &quot;C-m&quot; &quot;n&quot; next-error-this-buffer-no-select &quot;p&q=
uot; previous-error-this-buffer-no-select] 5)<br>
&gt;=C2=A0 =C2=A0(defvar flymake-diagnostics-buffer-mode-map (byte-code &qu=
ot;\300 \301\1\302\303#\210\301\1\304\305#\210\306\1\307\305#\210\306\1\310=
\303#\210\306\1\311\312#\210\306\1\313\314#\210\211\207&quot; [make-sparse-=
keymap define-key &quot;\15&quot; flymake-goto-diagnostic &quot; &quot; fly=
make-show-diagnostic keymap-set &quot;C-o&quot; &quot;C-m&quot; &quot;n&quo=
t; next-error-this-buffer-no-select &quot;p&quot; previous-error-this-buffe=
r-no-select] 5))<br>
&gt;=C2=A0 =C2=A0flymake-mode()<br>
&gt; <br>
&gt; The idea of the ELPA package is to distribute modern flymake for use i=
n<br>
&gt; older Emacsen, and if this isn&#39;t possible for some reason, then th=
e ELPA<br>
&gt; flymake package itself should declare a package dependency on an<br>
&gt; appropriate minimum Emacs version.<br>
&gt; <br>
&gt; <br>
&gt; To reproduce: use Emacs 27.2 (or perhaps even 27.1):<br>
&gt; <br>
&gt; emacs -Q<br>
&gt; M-x package-refresh-contents<br>
&gt; M-x list-packages<br>
&gt; <br>
&gt; Select flymake 1.4.2 and install it, then enable flymake-mode in a spe=
cific buffer.<br>
<br>
Thanks, I&#39;m adding Jo=C3=A3o to the discussion.<br>
</blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Jo=
=C3=A3o T=C3=A1vora</div>

--0000000000004f54a50642e32647--




Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>
Subject: bug#79769: closed (ELPA version of flymake is broken in older
 Emacsen)
CC: tracker <at> debbugs.gnu.org
Message-ID: <handler.79769.D79769.176260414921893.ackdone <at> debbugs.gnu.org>
References: <CALDnm51ehwYFQGY1gEBXA2DUvvZ53ShaWBpvBzi2hEuXa77Vgw@HIDDEN>
 <4B6F8007-A581-4BDC-878B-C997B523A83E@HIDDEN>
X-Gnu-PR-Message: closed 79769
X-Gnu-PR-Package: emacs
Date: Sat, 08 Nov 2025 12:16:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1762604162-21908-0"

This is a multi-part message in MIME format...

------------=_1762604162-21908-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8

Your message dated Sat, 8 Nov 2025 12:17:01 +0000
with message-id <CALDnm51ehwYFQGY1gEBXA2DUvvZ53ShaWBpvBzi2hEuXa77Vgw@HIDDEN=
mail.com>
and subject line Re: bug#79769: ELPA version of flymake is broken in older =
Emacsen
has caused the debbugs.gnu.org bug report #79769,
regarding ELPA version of flymake is broken in older Emacsen
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@HIDDEN)


--=20
79769: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D79769
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1762604162-21908-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 5 Nov 2025 13:50:14 +0000
Received: from localhost ([127.0.0.1]:56834 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vGdtt-00043u-IJ
	for submit <at> debbugs.gnu.org; Wed, 05 Nov 2025 08:50:13 -0500
Received: from lists.gnu.org ([2001:470:142::17]:59734)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <steve@HIDDEN>)
 id 1vGdtr-0003xw-RK
 for submit <at> debbugs.gnu.org; Wed, 05 Nov 2025 08:50:12 -0500
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 <steve@HIDDEN>)
 id 1vGdth-0007ek-BI
 for bug-gnu-emacs@HIDDEN; Wed, 05 Nov 2025 08:50:02 -0500
Received: from mail.purcellpeople.com ([139.162.128.219])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <steve@HIDDEN>)
 id 1vGdtf-0003ko-7j
 for bug-gnu-emacs@HIDDEN; Wed, 05 Nov 2025 08:50:01 -0500
From: Steve Purcell <steve@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sanityinc.com;
 s=default; t=1762350592;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding;
 bh=O+Q8JO0I6q+jmpMYGEE7Yjb6LX9IPKGy00mfePZ1144=;
 b=siM5u/giqRZTDCSr9FybYZHd8t8CpT2WgFJF8Q6CKLWB/pY+67evsZf+xBjSCt1nfMpNwd
 auRYwdRVJg/49uYpuXBnORu3AE5g5rqzmmRFxJObR9xU/0UkoH6g7WPsJG2DbkF1t+jXjt
 R+4cJGQsKGV5EVIXlxMGCb6cE2pNQ9o=
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.200.81.1.6\))
Subject: ELPA version of flymake is broken in older Emacsen
Message-Id: <4B6F8007-A581-4BDC-878B-C997B523A83E@HIDDEN>
Date: Wed, 5 Nov 2025 13:49:41 +0000
To: bug-gnu-emacs@HIDDEN
Received-SPF: pass client-ip=139.162.128.219; envelope-from=steve@HIDDEN;
 helo=mail.purcellpeople.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,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_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 (/)

Running with flymake-1.4.2 from ELPA in CI with Emacs 27.2, one finds
the following bytecomp warnings:

flymake.el:2443:1:Warning: the following functions are not known to be
    defined: keymap-set, next-error-this-buffer-no-select,
    previous-error-this-buffer-no-select, project-root, project-buffers

and then consequent runtime errors occur when enabling flymake-mode:

Debugger entered--Lisp error: (void-function keymap-set)
  keymap-set((keymap (32 . flymake-show-diagnostic) (13 . =
flymake-goto-diagnostic)) "C-o" flymake-show-diagnostic)
  byte-code("\300 =
\301\1\302\303#\210\301\1\304\305#\210\306\1\307\305#\210\306\1\310\303#\2=
10\306\1\311\312#\210\306\1\313\314#\210\211\207" [make-sparse-keymap =
define-key "\15" flymake-goto-diagnostic " " flymake-show-diagnostic =
keymap-set "C-o" "C-m" "n" next-error-this-buffer-no-select "p" =
previous-error-this-buffer-no-select] 5)
  (defvar flymake-diagnostics-buffer-mode-map (byte-code "\300 =
\301\1\302\303#\210\301\1\304\305#\210\306\1\307\305#\210\306\1\310\303#\2=
10\306\1\311\312#\210\306\1\313\314#\210\211\207" [make-sparse-keymap =
define-key "\15" flymake-goto-diagnostic " " flymake-show-diagnostic =
keymap-set "C-o" "C-m" "n" next-error-this-buffer-no-select "p" =
previous-error-this-buffer-no-select] 5))
  flymake-mode()

The idea of the ELPA package is to distribute modern flymake for use in
older Emacsen, and if this isn't possible for some reason, then the ELPA
flymake package itself should declare a package dependency on an
appropriate minimum Emacs version.


To reproduce: use Emacs 27.2 (or perhaps even 27.1):

emacs -Q
M-x package-refresh-contents
M-x list-packages

Select flymake 1.4.2 and install it, then enable flymake-mode in a =
specific buffer.=



------------=_1762604162-21908-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 79769-done) by debbugs.gnu.org; 8 Nov 2025 12:15:49 +0000
Received: from localhost ([127.0.0.1]:51237 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vHhrA-0005h2-8P
	for submit <at> debbugs.gnu.org; Sat, 08 Nov 2025 07:15:48 -0500
Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]:54460)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vHhr8-0005gr-9t
 for 79769-done <at> debbugs.gnu.org; Sat, 08 Nov 2025 07:15:47 -0500
Received: by mail-ot1-x32d.google.com with SMTP id
 46e09a7af769-7c6d699610cso505003a34.0
 for <79769-done <at> debbugs.gnu.org>; Sat, 08 Nov 2025 04:15:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1762604140; x=1763208940; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=Gxsiufm1esS/jI4KYTDFpHX+B4bHtUhGVHeAZ+TGLps=;
 b=hRo54Pajj7Qx1WENChqetX4511j18a3nrFr/JnSYx/qDLf20XSLEs8V6aROz7/tR8T
 hvhkrWRbq6ErNBI3IijbyLSAz864pGmARaDoEiZWjjDLrrEM2fTIrzEs9ahjNET325UN
 ejGMIYROPCx1VLe9yjSL9CE3i/kVGxIlnHhAoEPvC5EaM3Mbd2mOCEY8Vwj+pLIMG2H+
 NSioC4hRBKy0vuOa8FcnOfQCjio5D+zOTn7lwUtZ6oF091r9B+GqcvAGzvPBkO4cj6WW
 zESR+LVw651L/p61Wv4gwxPAUG3poeLh0a4HYtbYBWDoj2mtSsF2dXpkrTRfmbDlY+H4
 iYJA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1762604140; x=1763208940;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=Gxsiufm1esS/jI4KYTDFpHX+B4bHtUhGVHeAZ+TGLps=;
 b=R+sjyRGMctXb3dfLc8UsjQysjcyHlLty1NKxD2QU7hw+i6afURbSZYWgUoivdTmnrJ
 tx2k4EuhowN1l7ChIF9c7hb4TJq/hINvRGUyyINsXslmO94xctKO5mdHn7LOnPEO0UmN
 s+QKUE5TncgGeHk8RKeg4anpdcHAqGQI4xiK+ada1ArBkzqfsLOWmHvDatus8s+SoIrA
 5v77fzsJ9QWHdtHs2Fcps4d1NMNZQ4dJQpNUMFKJ8cbJeq4+Omcq7/zyY2HbkpcCxTnh
 alIUTzdvomShn18PLSJUWuH0RDcn7KQMCaV8aLg3PxBKnTPHCoIAGgodhHwogU+M57Vq
 pdoQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCWYyCpKyRt/qrVhc94/tkcFW2BCcnyUbQVx2Uxma8NNqZCNgRfnQijdTo5+FhHcrzTeJ9zff3m59E1i <at> debbugs.gnu.org
X-Gm-Message-State: AOJu0Yw8/MMZzqe5pOQse2CZlb11wfQgbw2Kc8dMXleW/ngi9LpsAvUP
 Rr5PUocS7fMj1WwgixyilxEtFwGIRBOVjwJwpuQquMaNbM8iwPYYZQJvcQuuDgRDhb+t7AzXSSh
 tDKUCwjdxy8uEo13LHI02VOHs+pn4tc0=
X-Gm-Gg: ASbGnctc7gb3FflZ/9l9mGjw8Z7crHBMudiIYRyw1wLkypNkgDInpZL/XTYrKso5r5K
 qlENAevQNLrUVFgmtKo4OhE3Pzcco/nMS9L0SN5i48x5lkfB9q6Mk+JwOk5CILvKWyKwjGX57O8
 8R+U90MK1ND7irrZcMRmDaatJNoBIDYOy1OHZXl4LbvAlAPc+tDLqxD63HRPsabbtQisXT2wTUB
 +gt43HwRcvAOmm+GAmlM6z5usYr/i86P8WKjKhXD4F3H5S9J6Fr2Lth2fDnXFc8MuDcm+g=
X-Google-Smtp-Source: AGHT+IFoBlnxsBn2s4HJopul5b5zTcuQ8aZWJ6oH9bt0Z/Ufs1VPEuRSmJu6mTwppKvDAlCKyLYfkicdwDvELzqLOGc=
X-Received: by 2002:a05:6830:2a94:b0:745:9272:4a36 with SMTP id
 46e09a7af769-7c6fd75978bmr2294340a34.11.1762604140424; Sat, 08 Nov 2025
 04:15:40 -0800 (PST)
MIME-Version: 1.0
References: <4B6F8007-A581-4BDC-878B-C997B523A83E@HIDDEN>
 <86wm44ed1e.fsf@HIDDEN>
 <CALDnm53C7b9So54_c5D_Ms-MSOYrFz3+B2iQeXpZ64nM8LnVoA@HIDDEN>
In-Reply-To: <CALDnm53C7b9So54_c5D_Ms-MSOYrFz3+B2iQeXpZ64nM8LnVoA@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Sat, 8 Nov 2025 12:17:01 +0000
X-Gm-Features: AWmQ_bnqxvFkl0NX92LpTysTbKkjXkL1cVm4u8qvcGmLorFYnqZTHVssN8Sq8Oo
Message-ID: <CALDnm51ehwYFQGY1gEBXA2DUvvZ53ShaWBpvBzi2hEuXa77Vgw@HIDDEN>
Subject: Re: bug#79769: ELPA version of flymake is broken in older Emacsen
To: Eli Zaretskii <eliz@HIDDEN>, Spencer Baugh <sbaugh@HIDDEN>,
 79769-done <at> debbugs.gnu.org
Content-Type: multipart/alternative; boundary="000000000000ab7037064314413f"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79769-done
Cc: Steve Purcell <steve@HIDDEN>
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: -1.0 (-)

--000000000000ab7037064314413f
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I've pushed a fix to master and tagged Flymake 1.4.3.  It should solve
most of the problems described.  Closing.  Let me know if problems persist.

Jo=C3=A3o

On Thu, Nov 6, 2025 at 1:41=E2=80=AFAM Jo=C3=A3o T=C3=A1vora <joaotavora@gm=
ail.com> wrote:

> Hi.
>
> Indeed, it looks like this commit
>
> commit 9d6a4fdd7e4e82ea804a83f428e395ffbbc3e8dd
> Author: Matthew Tromp <matthewktromp@HIDDEN>
> Date:   Mon May 19 15:45:21 2025 -0400
>
> Didn't follow the advice:
>
> ;; This is a GNU ELPA :core package.  Avoid functionality that is not
> ;; compatible with the version of Emacs recorded above.
>
> It's just a question of using define-key instead of keymap-set.
>
> As to project-root it should be available because flymake requires
> project.  Maybe the required project could be bumped (and it should)
> but that's usually not necessary.
>
> Finally the next-error-... things are non-essential features.  They're
> bound to n and p in flymake-diagnostics-buffer-mode-map, and
> they were added by Matthew too, but this binding didn't replace
> any new one.  So we could disable the binding, or we could just
> let it error.
>
> I've added Spencer to this thread.
>
> Jo=C3=A3o
>
>
>
>
>
> On Wed, Nov 5, 2025 at 3:04=E2=80=AFPM Eli Zaretskii <eliz@HIDDEN> wrote=
:
>
>> > From: Steve Purcell <steve@HIDDEN>
>> > Date: Wed, 5 Nov 2025 13:49:41 +0000
>> >
>> > Running with flymake-1.4.2 from ELPA in CI with Emacs 27.2, one finds
>> > the following bytecomp warnings:
>> >
>> > flymake.el:2443:1:Warning: the following functions are not known to be
>> >     defined: keymap-set, next-error-this-buffer-no-select,
>> >     previous-error-this-buffer-no-select, project-root, project-buffer=
s
>> >
>> > and then consequent runtime errors occur when enabling flymake-mode:
>> >
>> > Debugger entered--Lisp error: (void-function keymap-set)
>> >   keymap-set((keymap (32 . flymake-show-diagnostic) (13 .
>> flymake-goto-diagnostic)) "C-o" flymake-show-diagnostic)
>> >   byte-code("\300
>> \301\1\302\303#\210\301\1\304\305#\210\306\1\307\305#\210\306\1\310\303#=
\210\306\1\311\312#\210\306\1\313\314#\210\211\207"
>> [make-sparse-keymap define-key "\15" flymake-goto-diagnostic " "
>> flymake-show-diagnostic keymap-set "C-o" "C-m" "n"
>> next-error-this-buffer-no-select "p" previous-error-this-buffer-no-selec=
t]
>> 5)
>> >   (defvar flymake-diagnostics-buffer-mode-map (byte-code "\300
>> \301\1\302\303#\210\301\1\304\305#\210\306\1\307\305#\210\306\1\310\303#=
\210\306\1\311\312#\210\306\1\313\314#\210\211\207"
>> [make-sparse-keymap define-key "\15" flymake-goto-diagnostic " "
>> flymake-show-diagnostic keymap-set "C-o" "C-m" "n"
>> next-error-this-buffer-no-select "p" previous-error-this-buffer-no-selec=
t]
>> 5))
>> >   flymake-mode()
>> >
>> > The idea of the ELPA package is to distribute modern flymake for use i=
n
>> > older Emacsen, and if this isn't possible for some reason, then the EL=
PA
>> > flymake package itself should declare a package dependency on an
>> > appropriate minimum Emacs version.
>> >
>> >
>> > To reproduce: use Emacs 27.2 (or perhaps even 27.1):
>> >
>> > emacs -Q
>> > M-x package-refresh-contents
>> > M-x list-packages
>> >
>> > Select flymake 1.4.2 and install it, then enable flymake-mode in a
>> specific buffer.
>>
>> Thanks, I'm adding Jo=C3=A3o to the discussion.
>>
>
>
> --
> Jo=C3=A3o T=C3=A1vora
>


--=20
Jo=C3=A3o T=C3=A1vora

--000000000000ab7037064314413f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I&#39;ve pushed a fix to master and tagged Flymake 1.=
4.3.=C2=A0 It should solve</div><div>most of the problems described.=C2=A0 =
Closing.=C2=A0 Let me know if problems persist.</div><div><br></div><div>Jo=
=C3=A3o</div></div><br><div class=3D"gmail_quote gmail_quote_container"><di=
v dir=3D"ltr" class=3D"gmail_attr">On Thu, Nov 6, 2025 at 1:41=E2=80=AFAM J=
o=C3=A3o T=C3=A1vora &lt;<a href=3D"mailto:joaotavora@HIDDEN">joaotavora=
@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex"><div dir=3D"ltr"><div>Hi.</div><div><br></div><div>Indeed, it lo=
oks like this commit</div><div><br></div><div>commit 9d6a4fdd7e4e82ea804a83=
f428e395ffbbc3e8dd<br>Author: Matthew Tromp &lt;<a href=3D"mailto:matthewkt=
romp@HIDDEN" target=3D"_blank">matthewktromp@HIDDEN</a>&gt;<br>Date: =
=C2=A0 Mon May 19 15:45:21 2025 -0400</div><div><br></div><div>Didn&#39;t f=
ollow the advice:</div><div><br></div><div>;; This is a GNU ELPA :core pack=
age.=C2=A0 Avoid functionality that is not<br>;; compatible with the versio=
n of Emacs recorded above.</div><div><br></div><div>It&#39;s just a questio=
n of using define-key instead of keymap-set.</div><div><br></div><div>As to=
 project-root it should be available because flymake requires</div><div>pro=
ject.=C2=A0 Maybe the required project could be bumped (and it should)</div=
><div>but that&#39;s usually not necessary.</div><div><br></div><div>Finall=
y the next-error-... things are non-essential features.=C2=A0 They&#39;re</=
div><div>bound to n and p in=C2=A0flymake-diagnostics-buffer-mode-map, and<=
/div><div>they were added by Matthew too, but this binding didn&#39;t repla=
ce</div><div>any new one.=C2=A0 So we could disable the binding, or we coul=
d just</div><div>let it error.</div><div><br></div><div>I&#39;ve added Spen=
cer to this thread.</div><div><br></div><div>Jo=C3=A3o</div><div><br></div>=
<div><br></div><div><br></div><div><br></div></div><br><div class=3D"gmail_=
quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Nov 5, 2025 at 3:04=E2=
=80=AFPM Eli Zaretskii &lt;<a href=3D"mailto:eliz@HIDDEN" target=3D"_blank=
">eliz@HIDDEN</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padd=
ing-left:1ex">&gt; From: Steve Purcell &lt;<a href=3D"mailto:steve@sanityin=
c.com" target=3D"_blank">steve@HIDDEN</a>&gt;<br>
&gt; Date: Wed, 5 Nov 2025 13:49:41 +0000<br>
&gt; <br>
&gt; Running with flymake-1.4.2 from ELPA in CI with Emacs 27.2, one finds<=
br>
&gt; the following bytecomp warnings:<br>
&gt; <br>
&gt; flymake.el:2443:1:Warning: the following functions are not known to be=
<br>
&gt;=C2=A0 =C2=A0 =C2=A0defined: keymap-set, next-error-this-buffer-no-sele=
ct,<br>
&gt;=C2=A0 =C2=A0 =C2=A0previous-error-this-buffer-no-select, project-root,=
 project-buffers<br>
&gt; <br>
&gt; and then consequent runtime errors occur when enabling flymake-mode:<b=
r>
&gt; <br>
&gt; Debugger entered--Lisp error: (void-function keymap-set)<br>
&gt;=C2=A0 =C2=A0keymap-set((keymap (32 . flymake-show-diagnostic) (13 . fl=
ymake-goto-diagnostic)) &quot;C-o&quot; flymake-show-diagnostic)<br>
&gt;=C2=A0 =C2=A0byte-code(&quot;\300 \301\1\302\303#\210\301\1\304\305#\21=
0\306\1\307\305#\210\306\1\310\303#\210\306\1\311\312#\210\306\1\313\314#\2=
10\211\207&quot; [make-sparse-keymap define-key &quot;\15&quot; flymake-got=
o-diagnostic &quot; &quot; flymake-show-diagnostic keymap-set &quot;C-o&quo=
t; &quot;C-m&quot; &quot;n&quot; next-error-this-buffer-no-select &quot;p&q=
uot; previous-error-this-buffer-no-select] 5)<br>
&gt;=C2=A0 =C2=A0(defvar flymake-diagnostics-buffer-mode-map (byte-code &qu=
ot;\300 \301\1\302\303#\210\301\1\304\305#\210\306\1\307\305#\210\306\1\310=
\303#\210\306\1\311\312#\210\306\1\313\314#\210\211\207&quot; [make-sparse-=
keymap define-key &quot;\15&quot; flymake-goto-diagnostic &quot; &quot; fly=
make-show-diagnostic keymap-set &quot;C-o&quot; &quot;C-m&quot; &quot;n&quo=
t; next-error-this-buffer-no-select &quot;p&quot; previous-error-this-buffe=
r-no-select] 5))<br>
&gt;=C2=A0 =C2=A0flymake-mode()<br>
&gt; <br>
&gt; The idea of the ELPA package is to distribute modern flymake for use i=
n<br>
&gt; older Emacsen, and if this isn&#39;t possible for some reason, then th=
e ELPA<br>
&gt; flymake package itself should declare a package dependency on an<br>
&gt; appropriate minimum Emacs version.<br>
&gt; <br>
&gt; <br>
&gt; To reproduce: use Emacs 27.2 (or perhaps even 27.1):<br>
&gt; <br>
&gt; emacs -Q<br>
&gt; M-x package-refresh-contents<br>
&gt; M-x list-packages<br>
&gt; <br>
&gt; Select flymake 1.4.2 and install it, then enable flymake-mode in a spe=
cific buffer.<br>
<br>
Thanks, I&#39;m adding Jo=C3=A3o to the discussion.<br>
</blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Jo=
=C3=A3o T=C3=A1vora</div>
</blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Jo=
=C3=A3o T=C3=A1vora</div>

--000000000000ab7037064314413f--


------------=_1762604162-21908-0--


Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Steve Purcell <steve@HIDDEN>
Subject: bug#79769: closed (Re: bug#79769: ELPA version of flymake is
 broken in older Emacsen)
Message-ID: <handler.79769.D79769.176260414921893.notifdone <at> debbugs.gnu.org>
References: <CALDnm51ehwYFQGY1gEBXA2DUvvZ53ShaWBpvBzi2hEuXa77Vgw@HIDDEN>
 <4B6F8007-A581-4BDC-878B-C997B523A83E@HIDDEN>
X-Gnu-PR-Message: they-closed 79769
X-Gnu-PR-Package: emacs
Reply-To: 79769 <at> debbugs.gnu.org
Date: Sat, 08 Nov 2025 12:16:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1762604162-21908-1"

This is a multi-part message in MIME format...

------------=_1762604162-21908-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your bug report

#79769: ELPA version of flymake is broken in older Emacsen

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 79769 <at> debbugs.gnu.org.

--=20
79769: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D79769
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1762604162-21908-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 79769-done) by debbugs.gnu.org; 8 Nov 2025 12:15:49 +0000
Received: from localhost ([127.0.0.1]:51237 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vHhrA-0005h2-8P
	for submit <at> debbugs.gnu.org; Sat, 08 Nov 2025 07:15:48 -0500
Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]:54460)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vHhr8-0005gr-9t
 for 79769-done <at> debbugs.gnu.org; Sat, 08 Nov 2025 07:15:47 -0500
Received: by mail-ot1-x32d.google.com with SMTP id
 46e09a7af769-7c6d699610cso505003a34.0
 for <79769-done <at> debbugs.gnu.org>; Sat, 08 Nov 2025 04:15:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1762604140; x=1763208940; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=Gxsiufm1esS/jI4KYTDFpHX+B4bHtUhGVHeAZ+TGLps=;
 b=hRo54Pajj7Qx1WENChqetX4511j18a3nrFr/JnSYx/qDLf20XSLEs8V6aROz7/tR8T
 hvhkrWRbq6ErNBI3IijbyLSAz864pGmARaDoEiZWjjDLrrEM2fTIrzEs9ahjNET325UN
 ejGMIYROPCx1VLe9yjSL9CE3i/kVGxIlnHhAoEPvC5EaM3Mbd2mOCEY8Vwj+pLIMG2H+
 NSioC4hRBKy0vuOa8FcnOfQCjio5D+zOTn7lwUtZ6oF091r9B+GqcvAGzvPBkO4cj6WW
 zESR+LVw651L/p61Wv4gwxPAUG3poeLh0a4HYtbYBWDoj2mtSsF2dXpkrTRfmbDlY+H4
 iYJA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1762604140; x=1763208940;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=Gxsiufm1esS/jI4KYTDFpHX+B4bHtUhGVHeAZ+TGLps=;
 b=R+sjyRGMctXb3dfLc8UsjQysjcyHlLty1NKxD2QU7hw+i6afURbSZYWgUoivdTmnrJ
 tx2k4EuhowN1l7ChIF9c7hb4TJq/hINvRGUyyINsXslmO94xctKO5mdHn7LOnPEO0UmN
 s+QKUE5TncgGeHk8RKeg4anpdcHAqGQI4xiK+ada1ArBkzqfsLOWmHvDatus8s+SoIrA
 5v77fzsJ9QWHdtHs2Fcps4d1NMNZQ4dJQpNUMFKJ8cbJeq4+Omcq7/zyY2HbkpcCxTnh
 alIUTzdvomShn18PLSJUWuH0RDcn7KQMCaV8aLg3PxBKnTPHCoIAGgodhHwogU+M57Vq
 pdoQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCWYyCpKyRt/qrVhc94/tkcFW2BCcnyUbQVx2Uxma8NNqZCNgRfnQijdTo5+FhHcrzTeJ9zff3m59E1i <at> debbugs.gnu.org
X-Gm-Message-State: AOJu0Yw8/MMZzqe5pOQse2CZlb11wfQgbw2Kc8dMXleW/ngi9LpsAvUP
 Rr5PUocS7fMj1WwgixyilxEtFwGIRBOVjwJwpuQquMaNbM8iwPYYZQJvcQuuDgRDhb+t7AzXSSh
 tDKUCwjdxy8uEo13LHI02VOHs+pn4tc0=
X-Gm-Gg: ASbGnctc7gb3FflZ/9l9mGjw8Z7crHBMudiIYRyw1wLkypNkgDInpZL/XTYrKso5r5K
 qlENAevQNLrUVFgmtKo4OhE3Pzcco/nMS9L0SN5i48x5lkfB9q6Mk+JwOk5CILvKWyKwjGX57O8
 8R+U90MK1ND7irrZcMRmDaatJNoBIDYOy1OHZXl4LbvAlAPc+tDLqxD63HRPsabbtQisXT2wTUB
 +gt43HwRcvAOmm+GAmlM6z5usYr/i86P8WKjKhXD4F3H5S9J6Fr2Lth2fDnXFc8MuDcm+g=
X-Google-Smtp-Source: AGHT+IFoBlnxsBn2s4HJopul5b5zTcuQ8aZWJ6oH9bt0Z/Ufs1VPEuRSmJu6mTwppKvDAlCKyLYfkicdwDvELzqLOGc=
X-Received: by 2002:a05:6830:2a94:b0:745:9272:4a36 with SMTP id
 46e09a7af769-7c6fd75978bmr2294340a34.11.1762604140424; Sat, 08 Nov 2025
 04:15:40 -0800 (PST)
MIME-Version: 1.0
References: <4B6F8007-A581-4BDC-878B-C997B523A83E@HIDDEN>
 <86wm44ed1e.fsf@HIDDEN>
 <CALDnm53C7b9So54_c5D_Ms-MSOYrFz3+B2iQeXpZ64nM8LnVoA@HIDDEN>
In-Reply-To: <CALDnm53C7b9So54_c5D_Ms-MSOYrFz3+B2iQeXpZ64nM8LnVoA@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Sat, 8 Nov 2025 12:17:01 +0000
X-Gm-Features: AWmQ_bnqxvFkl0NX92LpTysTbKkjXkL1cVm4u8qvcGmLorFYnqZTHVssN8Sq8Oo
Message-ID: <CALDnm51ehwYFQGY1gEBXA2DUvvZ53ShaWBpvBzi2hEuXa77Vgw@HIDDEN>
Subject: Re: bug#79769: ELPA version of flymake is broken in older Emacsen
To: Eli Zaretskii <eliz@HIDDEN>, Spencer Baugh <sbaugh@HIDDEN>,
 79769-done <at> debbugs.gnu.org
Content-Type: multipart/alternative; boundary="000000000000ab7037064314413f"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79769-done
Cc: Steve Purcell <steve@HIDDEN>
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: -1.0 (-)

--000000000000ab7037064314413f
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I've pushed a fix to master and tagged Flymake 1.4.3.  It should solve
most of the problems described.  Closing.  Let me know if problems persist.

Jo=C3=A3o

On Thu, Nov 6, 2025 at 1:41=E2=80=AFAM Jo=C3=A3o T=C3=A1vora <joaotavora@gm=
ail.com> wrote:

> Hi.
>
> Indeed, it looks like this commit
>
> commit 9d6a4fdd7e4e82ea804a83f428e395ffbbc3e8dd
> Author: Matthew Tromp <matthewktromp@HIDDEN>
> Date:   Mon May 19 15:45:21 2025 -0400
>
> Didn't follow the advice:
>
> ;; This is a GNU ELPA :core package.  Avoid functionality that is not
> ;; compatible with the version of Emacs recorded above.
>
> It's just a question of using define-key instead of keymap-set.
>
> As to project-root it should be available because flymake requires
> project.  Maybe the required project could be bumped (and it should)
> but that's usually not necessary.
>
> Finally the next-error-... things are non-essential features.  They're
> bound to n and p in flymake-diagnostics-buffer-mode-map, and
> they were added by Matthew too, but this binding didn't replace
> any new one.  So we could disable the binding, or we could just
> let it error.
>
> I've added Spencer to this thread.
>
> Jo=C3=A3o
>
>
>
>
>
> On Wed, Nov 5, 2025 at 3:04=E2=80=AFPM Eli Zaretskii <eliz@HIDDEN> wrote=
:
>
>> > From: Steve Purcell <steve@HIDDEN>
>> > Date: Wed, 5 Nov 2025 13:49:41 +0000
>> >
>> > Running with flymake-1.4.2 from ELPA in CI with Emacs 27.2, one finds
>> > the following bytecomp warnings:
>> >
>> > flymake.el:2443:1:Warning: the following functions are not known to be
>> >     defined: keymap-set, next-error-this-buffer-no-select,
>> >     previous-error-this-buffer-no-select, project-root, project-buffer=
s
>> >
>> > and then consequent runtime errors occur when enabling flymake-mode:
>> >
>> > Debugger entered--Lisp error: (void-function keymap-set)
>> >   keymap-set((keymap (32 . flymake-show-diagnostic) (13 .
>> flymake-goto-diagnostic)) "C-o" flymake-show-diagnostic)
>> >   byte-code("\300
>> \301\1\302\303#\210\301\1\304\305#\210\306\1\307\305#\210\306\1\310\303#=
\210\306\1\311\312#\210\306\1\313\314#\210\211\207"
>> [make-sparse-keymap define-key "\15" flymake-goto-diagnostic " "
>> flymake-show-diagnostic keymap-set "C-o" "C-m" "n"
>> next-error-this-buffer-no-select "p" previous-error-this-buffer-no-selec=
t]
>> 5)
>> >   (defvar flymake-diagnostics-buffer-mode-map (byte-code "\300
>> \301\1\302\303#\210\301\1\304\305#\210\306\1\307\305#\210\306\1\310\303#=
\210\306\1\311\312#\210\306\1\313\314#\210\211\207"
>> [make-sparse-keymap define-key "\15" flymake-goto-diagnostic " "
>> flymake-show-diagnostic keymap-set "C-o" "C-m" "n"
>> next-error-this-buffer-no-select "p" previous-error-this-buffer-no-selec=
t]
>> 5))
>> >   flymake-mode()
>> >
>> > The idea of the ELPA package is to distribute modern flymake for use i=
n
>> > older Emacsen, and if this isn't possible for some reason, then the EL=
PA
>> > flymake package itself should declare a package dependency on an
>> > appropriate minimum Emacs version.
>> >
>> >
>> > To reproduce: use Emacs 27.2 (or perhaps even 27.1):
>> >
>> > emacs -Q
>> > M-x package-refresh-contents
>> > M-x list-packages
>> >
>> > Select flymake 1.4.2 and install it, then enable flymake-mode in a
>> specific buffer.
>>
>> Thanks, I'm adding Jo=C3=A3o to the discussion.
>>
>
>
> --
> Jo=C3=A3o T=C3=A1vora
>


--=20
Jo=C3=A3o T=C3=A1vora

--000000000000ab7037064314413f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I&#39;ve pushed a fix to master and tagged Flymake 1.=
4.3.=C2=A0 It should solve</div><div>most of the problems described.=C2=A0 =
Closing.=C2=A0 Let me know if problems persist.</div><div><br></div><div>Jo=
=C3=A3o</div></div><br><div class=3D"gmail_quote gmail_quote_container"><di=
v dir=3D"ltr" class=3D"gmail_attr">On Thu, Nov 6, 2025 at 1:41=E2=80=AFAM J=
o=C3=A3o T=C3=A1vora &lt;<a href=3D"mailto:joaotavora@HIDDEN">joaotavora=
@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex"><div dir=3D"ltr"><div>Hi.</div><div><br></div><div>Indeed, it lo=
oks like this commit</div><div><br></div><div>commit 9d6a4fdd7e4e82ea804a83=
f428e395ffbbc3e8dd<br>Author: Matthew Tromp &lt;<a href=3D"mailto:matthewkt=
romp@HIDDEN" target=3D"_blank">matthewktromp@HIDDEN</a>&gt;<br>Date: =
=C2=A0 Mon May 19 15:45:21 2025 -0400</div><div><br></div><div>Didn&#39;t f=
ollow the advice:</div><div><br></div><div>;; This is a GNU ELPA :core pack=
age.=C2=A0 Avoid functionality that is not<br>;; compatible with the versio=
n of Emacs recorded above.</div><div><br></div><div>It&#39;s just a questio=
n of using define-key instead of keymap-set.</div><div><br></div><div>As to=
 project-root it should be available because flymake requires</div><div>pro=
ject.=C2=A0 Maybe the required project could be bumped (and it should)</div=
><div>but that&#39;s usually not necessary.</div><div><br></div><div>Finall=
y the next-error-... things are non-essential features.=C2=A0 They&#39;re</=
div><div>bound to n and p in=C2=A0flymake-diagnostics-buffer-mode-map, and<=
/div><div>they were added by Matthew too, but this binding didn&#39;t repla=
ce</div><div>any new one.=C2=A0 So we could disable the binding, or we coul=
d just</div><div>let it error.</div><div><br></div><div>I&#39;ve added Spen=
cer to this thread.</div><div><br></div><div>Jo=C3=A3o</div><div><br></div>=
<div><br></div><div><br></div><div><br></div></div><br><div class=3D"gmail_=
quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Nov 5, 2025 at 3:04=E2=
=80=AFPM Eli Zaretskii &lt;<a href=3D"mailto:eliz@HIDDEN" target=3D"_blank=
">eliz@HIDDEN</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padd=
ing-left:1ex">&gt; From: Steve Purcell &lt;<a href=3D"mailto:steve@sanityin=
c.com" target=3D"_blank">steve@HIDDEN</a>&gt;<br>
&gt; Date: Wed, 5 Nov 2025 13:49:41 +0000<br>
&gt; <br>
&gt; Running with flymake-1.4.2 from ELPA in CI with Emacs 27.2, one finds<=
br>
&gt; the following bytecomp warnings:<br>
&gt; <br>
&gt; flymake.el:2443:1:Warning: the following functions are not known to be=
<br>
&gt;=C2=A0 =C2=A0 =C2=A0defined: keymap-set, next-error-this-buffer-no-sele=
ct,<br>
&gt;=C2=A0 =C2=A0 =C2=A0previous-error-this-buffer-no-select, project-root,=
 project-buffers<br>
&gt; <br>
&gt; and then consequent runtime errors occur when enabling flymake-mode:<b=
r>
&gt; <br>
&gt; Debugger entered--Lisp error: (void-function keymap-set)<br>
&gt;=C2=A0 =C2=A0keymap-set((keymap (32 . flymake-show-diagnostic) (13 . fl=
ymake-goto-diagnostic)) &quot;C-o&quot; flymake-show-diagnostic)<br>
&gt;=C2=A0 =C2=A0byte-code(&quot;\300 \301\1\302\303#\210\301\1\304\305#\21=
0\306\1\307\305#\210\306\1\310\303#\210\306\1\311\312#\210\306\1\313\314#\2=
10\211\207&quot; [make-sparse-keymap define-key &quot;\15&quot; flymake-got=
o-diagnostic &quot; &quot; flymake-show-diagnostic keymap-set &quot;C-o&quo=
t; &quot;C-m&quot; &quot;n&quot; next-error-this-buffer-no-select &quot;p&q=
uot; previous-error-this-buffer-no-select] 5)<br>
&gt;=C2=A0 =C2=A0(defvar flymake-diagnostics-buffer-mode-map (byte-code &qu=
ot;\300 \301\1\302\303#\210\301\1\304\305#\210\306\1\307\305#\210\306\1\310=
\303#\210\306\1\311\312#\210\306\1\313\314#\210\211\207&quot; [make-sparse-=
keymap define-key &quot;\15&quot; flymake-goto-diagnostic &quot; &quot; fly=
make-show-diagnostic keymap-set &quot;C-o&quot; &quot;C-m&quot; &quot;n&quo=
t; next-error-this-buffer-no-select &quot;p&quot; previous-error-this-buffe=
r-no-select] 5))<br>
&gt;=C2=A0 =C2=A0flymake-mode()<br>
&gt; <br>
&gt; The idea of the ELPA package is to distribute modern flymake for use i=
n<br>
&gt; older Emacsen, and if this isn&#39;t possible for some reason, then th=
e ELPA<br>
&gt; flymake package itself should declare a package dependency on an<br>
&gt; appropriate minimum Emacs version.<br>
&gt; <br>
&gt; <br>
&gt; To reproduce: use Emacs 27.2 (or perhaps even 27.1):<br>
&gt; <br>
&gt; emacs -Q<br>
&gt; M-x package-refresh-contents<br>
&gt; M-x list-packages<br>
&gt; <br>
&gt; Select flymake 1.4.2 and install it, then enable flymake-mode in a spe=
cific buffer.<br>
<br>
Thanks, I&#39;m adding Jo=C3=A3o to the discussion.<br>
</blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Jo=
=C3=A3o T=C3=A1vora</div>
</blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Jo=
=C3=A3o T=C3=A1vora</div>

--000000000000ab7037064314413f--


------------=_1762604162-21908-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 5 Nov 2025 13:50:14 +0000
Received: from localhost ([127.0.0.1]:56834 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vGdtt-00043u-IJ
	for submit <at> debbugs.gnu.org; Wed, 05 Nov 2025 08:50:13 -0500
Received: from lists.gnu.org ([2001:470:142::17]:59734)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <steve@HIDDEN>)
 id 1vGdtr-0003xw-RK
 for submit <at> debbugs.gnu.org; Wed, 05 Nov 2025 08:50:12 -0500
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 <steve@HIDDEN>)
 id 1vGdth-0007ek-BI
 for bug-gnu-emacs@HIDDEN; Wed, 05 Nov 2025 08:50:02 -0500
Received: from mail.purcellpeople.com ([139.162.128.219])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <steve@HIDDEN>)
 id 1vGdtf-0003ko-7j
 for bug-gnu-emacs@HIDDEN; Wed, 05 Nov 2025 08:50:01 -0500
From: Steve Purcell <steve@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sanityinc.com;
 s=default; t=1762350592;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding;
 bh=O+Q8JO0I6q+jmpMYGEE7Yjb6LX9IPKGy00mfePZ1144=;
 b=siM5u/giqRZTDCSr9FybYZHd8t8CpT2WgFJF8Q6CKLWB/pY+67evsZf+xBjSCt1nfMpNwd
 auRYwdRVJg/49uYpuXBnORu3AE5g5rqzmmRFxJObR9xU/0UkoH6g7WPsJG2DbkF1t+jXjt
 R+4cJGQsKGV5EVIXlxMGCb6cE2pNQ9o=
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.200.81.1.6\))
Subject: ELPA version of flymake is broken in older Emacsen
Message-Id: <4B6F8007-A581-4BDC-878B-C997B523A83E@HIDDEN>
Date: Wed, 5 Nov 2025 13:49:41 +0000
To: bug-gnu-emacs@HIDDEN
Received-SPF: pass client-ip=139.162.128.219; envelope-from=steve@HIDDEN;
 helo=mail.purcellpeople.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,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_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 (/)

Running with flymake-1.4.2 from ELPA in CI with Emacs 27.2, one finds
the following bytecomp warnings:

flymake.el:2443:1:Warning: the following functions are not known to be
    defined: keymap-set, next-error-this-buffer-no-select,
    previous-error-this-buffer-no-select, project-root, project-buffers

and then consequent runtime errors occur when enabling flymake-mode:

Debugger entered--Lisp error: (void-function keymap-set)
  keymap-set((keymap (32 . flymake-show-diagnostic) (13 . =
flymake-goto-diagnostic)) "C-o" flymake-show-diagnostic)
  byte-code("\300 =
\301\1\302\303#\210\301\1\304\305#\210\306\1\307\305#\210\306\1\310\303#\2=
10\306\1\311\312#\210\306\1\313\314#\210\211\207" [make-sparse-keymap =
define-key "\15" flymake-goto-diagnostic " " flymake-show-diagnostic =
keymap-set "C-o" "C-m" "n" next-error-this-buffer-no-select "p" =
previous-error-this-buffer-no-select] 5)
  (defvar flymake-diagnostics-buffer-mode-map (byte-code "\300 =
\301\1\302\303#\210\301\1\304\305#\210\306\1\307\305#\210\306\1\310\303#\2=
10\306\1\311\312#\210\306\1\313\314#\210\211\207" [make-sparse-keymap =
define-key "\15" flymake-goto-diagnostic " " flymake-show-diagnostic =
keymap-set "C-o" "C-m" "n" next-error-this-buffer-no-select "p" =
previous-error-this-buffer-no-select] 5))
  flymake-mode()

The idea of the ELPA package is to distribute modern flymake for use in
older Emacsen, and if this isn't possible for some reason, then the ELPA
flymake package itself should declare a package dependency on an
appropriate minimum Emacs version.


To reproduce: use Emacs 27.2 (or perhaps even 27.1):

emacs -Q
M-x package-refresh-contents
M-x list-packages

Select flymake 1.4.2 and install it, then enable flymake-mode in a =
specific buffer.=



------------=_1762604162-21908-1--



Last modified: Sat, 8 Nov 2025 12:30:02 UTC

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