Subject: bug#76912: closed (Re: bug#76912: 31.0.50; hack-local-variables docstring inaccurate about directory-local variables)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 12 Mar 2025 02:07:02 +0000

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 [email-masked].

-- 
76912: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=76912
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#76912: 31.0.50; hack-local-variables docstring inaccurate about directory-local variables
From: Sean Whitton <[email-masked]>
To: Eli Zaretskii <[email-masked]>
Cc: [email-masked]
Date: Wed, 12 Mar 2025 10:06:06 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

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

>> From: Sean Whitton <[email-masked]>
>> Cc: [email-masked]
>> 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

Subject: 31.0.50; hack-local-variables docstring inaccurate about directory-local variables
From: Sean Whitton <[email-masked]>
To: [email-masked]
Date: Mon, 10 Mar 2025 16:58:28 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

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