GNU bug report logs - #76912
31.0.50; hack-local-variables docstring inaccurate about directory-local variables

Previous Next

Package: emacs;

Reported by: Sean Whitton <spwhitton <at> spwhitton.name>

Date: Mon, 10 Mar 2025 08:59:02 UTC

Severity: minor

Found in version 31.0.50

Done: Sean Whitton <spwhitton <at> spwhitton.name>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Sean Whitton <spwhitton <at> spwhitton.name>
Subject: bug#76912: closed (Re: bug#76912: 31.0.50; hack-local-variables
 docstring inaccurate about directory-local variables)
Date: Wed, 12 Mar 2025 02:07:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#76912: 31.0.50; hack-local-variables docstring inaccurate about directory-local variables

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 76912 <at> debbugs.gnu.org.

-- 
76912: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=76912
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Sean Whitton <spwhitton <at> spwhitton.name>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 76912-done <at> debbugs.gnu.org
Subject: Re: bug#76912: 31.0.50; hack-local-variables docstring inaccurate
 about directory-local variables
Date: Wed, 12 Mar 2025 10:06:06 +0800
Hello,

On Tue 11 Mar 2025 at 03:12pm +02, Eli Zaretskii wrote:

>> From: Sean Whitton <spwhitton <at> spwhitton.name>
>> Cc: 76912 <at> debbugs.gnu.org
>> Date: Tue, 11 Mar 2025 14:36:07 +0800
>>
>> > It would be good to document which directory is used for non-file
>> > buffers, btw.
>>
>> How's this -- targeting the emacs-30 branch.
>
> Thanks, a few comments below.

Thanks, changed all those and installed.

I'm very glad you checked the modes.texi changes.

-- 
Sean Whitton

[Message part 3 (message/rfc822, inline)]
From: Sean Whitton <spwhitton <at> spwhitton.name>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; hack-local-variables docstring inaccurate about
 directory-local variables
Date: Mon, 10 Mar 2025 16:58:28 +0800
Hello,

We have:

    (defun hack-local-variables (&optional handle-mode inhibit-locals)
      "Parse and put into effect this buffer's local variables spec.
    For buffers visiting files, also puts into effect directory-local
    variables.

but this second sentence is wrong -- buffers not visiting files get
them, too.  For example

- emacs -Q
- C-x v d ~/src/emacs/trunk/ RET
- C-h v fill-column RET
=> local value of 72, from our .dir-locals.el, but VC-Dir is not a
   file-visiting buffer.

I think this is not a bug in the implementation and the docstring just
needs changing.  Would someone kindly confirm?

-- 
Sean Whitton



This bug report was last modified 72 days ago.

Previous Next


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