From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Howard Melman Newsgroups: gmane.emacs.bugs Subject: bug#45864: 27.1; hack-local-variables-hook is not documented in Emacs Manual Date: Tue, 19 Jan 2021 08:19:58 -0500 Message-ID: References: <62F9C4EE-B85D-4348-BAF1-3358CF49193C@gmail.com> <875z3to37k.fsf@gnus.org> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8447"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen To: 45864@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 19 14:21:18 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1qwg-00026C-6D for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jan 2021 14:21:18 +0100 Original-Received: from localhost ([::1]:41016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1qwf-0000df-46 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jan 2021 08:21:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1qwS-0000b2-9S for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 08:21:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38160) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l1qwQ-0000ce-MQ for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 08:21:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l1qwQ-0001th-ID for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 08:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Howard Melman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Jan 2021 13:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45864 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 45864-submit@debbugs.gnu.org id=B45864.16110624107193 (code B ref 45864); Tue, 19 Jan 2021 13:21:02 +0000 Original-Received: (at 45864) by debbugs.gnu.org; 19 Jan 2021 13:20:10 +0000 Original-Received: from localhost ([127.0.0.1]:49706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1qvZ-0001rx-Qn for submit@debbugs.gnu.org; Tue, 19 Jan 2021 08:20:10 -0500 Original-Received: from mail-qk1-f177.google.com ([209.85.222.177]:35828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1qvW-0001rK-2x for 45864@debbugs.gnu.org; Tue, 19 Jan 2021 08:20:08 -0500 Original-Received: by mail-qk1-f177.google.com with SMTP id n142so21769673qkn.2 for <45864@debbugs.gnu.org>; Tue, 19 Jan 2021 05:20:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ye/Kya2JoJogRscXcwd9gjzsfH5IB6puZ7l/fVpQIn8=; b=CrCELunlkqK9smvn0eT2UH2h4uqtAoKokNzReE44dYQqawV0mPqxboJ7aRvjeN/7YS 4D/79nxP84YiKQkUsmyZdTRGMDTEu2bZKfleEMHvPVQe5H00rvt0Yn1wMQ74xUaULZvG IWb8Uxh7j8Z6S4C1xx5phWp2TsUGJU6V0hnNcGtEYtnIrBptabZzdNYHWD2gXwUjxeDy hoLrqzE9NlZwjIvKCGjEf5iYXOZ4n7M3PzvmNmhieQ5iixNEIszS+uIh/B5uyU9kzhvn weRu5dj+iZLQASlkrtlS3KqNkSN/GWWne0cfs1fz3MZ8m9M8jig+V0UDdyoznggyk1pf EUdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ye/Kya2JoJogRscXcwd9gjzsfH5IB6puZ7l/fVpQIn8=; b=qpgRb9Ov6GvvnRSR3St3QfBWh90qtGDyNxkmLvtdtIdQz6+yPtBjjkAkOC5s1yQzUn Qe3fwvfbGTglP3tth6tbwxn3bi37b5EgVjci8wFGWzdhHm5F6mxjh2lvbmNCrDdbwZ4W 84F/EQoZypnpt+9jWvsxEpDxXEznZoyk+/bZ1Ao4NzOim9/NTXd7m6psqaOlkiVTx4qJ AzGpXiXSmkpvteoyvQigFAHFS3KAZ0ygLoH+0Z2iCJOWH8SvyaUMN/iv8PbsDx7wmsjQ xNJh1bUkIetVR/ylP0NRaYVBLjE+APmdGEUPiXZmujruf7vSnrN6zdB5KAJB093sSktz A9WA== X-Gm-Message-State: AOAM530lJfqHFCRoAy4HH9aNlPj4Cd43SBfLKOb3p+WbgNCBsz/TUHl6 Oa9Km69uKKl72l92HOZnsBZbmFdlyV0= X-Google-Smtp-Source: ABdhPJxcPvZkDN9ERGKf6FjbGCS2H9TyoZ9U1TY6WfjIYT5HtSbl3w0tCfR4Ju6+wYdNtceaSXGCzw== X-Received: by 2002:a37:9c8a:: with SMTP id f132mr4216674qke.189.1611062400165; Tue, 19 Jan 2021 05:20:00 -0800 (PST) Original-Received: from lumet2.home (pool-108-26-232-211.bstnma.fios.verizon.net. [108.26.232.211]) by smtp.gmail.com with ESMTPSA id r8sm12774929qkm.106.2021.01.19.05.19.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jan 2021 05:19:59 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3608.120.23.2.4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:198160 Archived-At: > On Jan 19, 2021, at 8:18 AM, Howard Melman wrote: > > On Jan 19, 2021, at 1:22 AM, Lars Ingebrigtsen wrote: >> >> Howard Melman writes: >> >>> Today I learned about the hack-local-variables-hook which >>> allows me to correct these. I'm surprised that it and >>> before-hack-local-variables-hook are not documented in the >>> Emacs Manual but are only mentioned in the Elisp Reference >>> Manual. Unless I'm misunderstanding something they're meant >>> for users and not just for elisp programmers so they should >>> be in the Emacs Manual. >> >> The doc string of the former variable says: >> >> ---- >> Major modes can use this to examine user-specified local variables >> in order to initialize other data structure based on them. >> ---- >> >> So they are meant for people implementing major modes, which is why >> they're in the lispref manual, and not the Emacs manual. (Users can use >> them, too, but that's not really their purpose.) > > Ok, so is there another way to address my issue. Some packages set > outline-regexp as a file local variable in their elisp source and I'd > prefer a different value. Since file local variables are set after > the major mode hooks are run I didn't think there was a way for me to > override the. I know about enable-local-variables but that's about > safety and not really granular enough for me to override an otherwise > safe variable without having to get asked about them every time I > visit the file. I found out about this hook and it seems to be > exactly what I want, it lets me override the file local variables set > in the file. Is there another way to do this? If not, can this hook > be exposed to users for this purpose? > > Howard