emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#73084: closed ([PATCH] Include the variable name in the `setopt` war


From: GNU bug Tracking System
Subject: bug#73084: closed ([PATCH] Include the variable name in the `setopt` warning)
Date: Sun, 08 Sep 2024 06:23:02 +0000

Your message dated Sun, 08 Sep 2024 09:21:59 +0300
with message-id <86plpewtq0.fsf@gnu.org>
and subject line Re: bug#73084: [PATCH] Include the variable name in the 
`setopt` warning
has caused the debbugs.gnu.org bug report #73084,
regarding [PATCH] Include the variable name in the `setopt` warning
to be marked as done.

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


-- 
73084: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=73084
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] Include the variable name in the `setopt` warning Date: Sat, 07 Sep 2024 00:23:00 +0000
Hello,

The attached patch adds the variable name to the `setopt` warning.

I write my Emacs config in an Org file, from which I make the Emacs Lisp 
file.  Currently, if `setopt` detects that the value I wish to make a 
variable hold does not conform to the variable's Custom.el type, then it 
reports the type and the problematic value, but not the variable itself, 
when I open Emacs.  This adds extra steps to editing the code in the Org 
file to fix the warning, especially when the value is created 
programmatically.  It would be faster to search for the variable name 
directly in the Org file and to then re-tangle the Org file.

Thank you.

Attachment: 0001-Include-the-variable-name-in-the-warning-in-setopt-s.patch
Description: Text Data


--- End Message ---
--- Begin Message --- Subject: Re: bug#73084: [PATCH] Include the variable name in the `setopt` warning Date: Sun, 08 Sep 2024 09:21:59 +0300
> Date: Sat, 07 Sep 2024 00:23:00 +0000
> From:  Okamsn via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> The attached patch adds the variable name to the `setopt` warning.
> 
> I write my Emacs config in an Org file, from which I make the Emacs Lisp 
> file.  Currently, if `setopt` detects that the value I wish to make a 
> variable hold does not conform to the variable's Custom.el type, then it 
> reports the type and the problematic value, but not the variable itself, 
> when I open Emacs.  This adds extra steps to editing the code in the Org 
> file to fix the warning, especially when the value is created 
> programmatically.  It would be faster to search for the variable name 
> directly in the Org file and to then re-tangle the Org file.

Thanks, I made the warning say

  Value `foo' for variable `bar' does not match its type "type"

I installed this on the master branch, and I'm therefore closing this
bug.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]