From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51930: 27.2; Buffer-local functions? Buffers specified buffer-locally? Date: Thu, 18 Nov 2021 10:27:10 +0200 Message-ID: <83o86hyild.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2826"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51930@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 18 09:28:27 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 1mncmQ-0000UN-Sb for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Nov 2021 09:28:27 +0100 Original-Received: from localhost ([::1]:53118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mncmP-00022W-K5 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Nov 2021 03:28:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mncm2-00022L-FQ for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 03:28:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51298) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mncm2-0002lm-6L for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 03:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mncm2-0005Ij-1C for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 03:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Nov 2021 08:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51930 X-GNU-PR-Package: emacs Original-Received: via spool by 51930-submit@debbugs.gnu.org id=B51930.163722404320305 (code B ref 51930); Thu, 18 Nov 2021 08:28:01 +0000 Original-Received: (at 51930) by debbugs.gnu.org; 18 Nov 2021 08:27:23 +0000 Original-Received: from localhost ([127.0.0.1]:34611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnclO-0005HQ-TN for submit@debbugs.gnu.org; Thu, 18 Nov 2021 03:27:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnclL-0005H7-15 for 51930@debbugs.gnu.org; Thu, 18 Nov 2021 03:27:21 -0500 Original-Received: from [2001:470:142:3::e] (port=40068 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnclF-0002gJ-QQ; Thu, 18 Nov 2021 03:27:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=wuGzWDjLR8/r4XuW8cpG8VVUug6visaoGsEdqaSnAp0=; b=ZrntWdzCEtO+ 1cIlJMwthkGMEmnT2atB8eTF7rAsWLbLo/G+tvDpZJI520JOa7ird/qO4vl4NxfiHa5sqlStj6OqQ JaSPkOwGFO73UBvgXnX5ix+kbkvb+xYhxbFBo19OAtLDBMGNwv4l6rWg7+AeE+FB3XGubmG+Xl99d c8WMcnOIheFaYKu0rxB/aOApnMsd15lguKQu3oWmCAxgrGiqgvC3rk1sPtowmcj03Uglo6qHXwDT4 3EiNPEO9e0rTCsPRrF4ZBuowQA1qPzBw6vckOzyjD8UZBnPpPDi2/C4hxaSSrKPF6YcSHlo427rzu wN9rIhZP4Wx9fVESRyYPUQ==; Original-Received: from [87.69.77.57] (port=4721 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnclF-0001Us-9b; Thu, 18 Nov 2021 03:27:13 -0500 In-Reply-To: (message from Drew Adams on Wed, 17 Nov 2021 21:51:29 +0000) 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:220270 Archived-At: > From: Drew Adams > Date: Wed, 17 Nov 2021 21:51:29 +0000 > > I'm trying to read (elisp) `Window Hooks', and I can't make heads or > tails of it. Throughout this node there's mention of buffer-local > functions: "functions specified buffer-locally". > > I have no idea what is meant by this. I search the Elisp manual for > buffer-local, and I find zillions of matches that are about > buffer-local variables, of course. And I find a couple of mentions > of buffer-local faces. No mention, that I can find, of buffer-local > functions or "functions specified buffer-locally". How to specify a > function buffer-locally? > > A wild guess is that what you're trying to say has something to do > with using the LOCAL argument to `add-hook' or `remove-hook`. But > if so, it's not clear what. > > Please clean up this text so it's comprehensible by an average reader. > If buffer-local functions are indeed a thing now, please document what > they are, somewhere. This is a very dramatic description of a problem ("can't make heads or tails", "I have no idea what is meant", etc.), so I'm not sure whether a simple cross-reference to the documentation of add-hook, which explains what is meant by "buffer-local" in this case, will solve the problem. If it will, doing that is very easy. In fact, I just did.