GNU bug report logs - #79208
[PATCH] (setq-default,setopt): Warn about unknown vars.

Previous Next

Package: emacs;

Reported by: Eshel Yaron <me <at> eshelyaron.com>

Date: Sun, 10 Aug 2025 11:06:02 UTC

Severity: normal

Tags: patch

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Eshel Yaron <me <at> eshelyaron.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] (setq-default,setopt): Warn about unknown vars.
Date: Sun, 10 Aug 2025 13:05:08 +0200
[Message part 1 (text/plain, inline)]
Tags: patch

Hi,

This patch makes the byte-compiler (and by extension, Flymake), emit
warnings when setq-default and setopt are used to set the value of
unknown variables, similarly to the warnings we get with setq.

Ideally we should do something similar for setq-local, but AFAICT that
requires a different solution due to different implementation details.

[0001-setq-default-setopt-Warn-about-unknown-vars.patch (text/patch, attachment)]

This bug report was last modified 30 days ago.

Previous Next


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