From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: buffer local part of a hook Date: Mon, 7 Mar 2016 17:41:18 +0200 Message-ID: <5259b4d6-c2f8-5279-1d0f-abd19b10a63c@yandex.ru> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1457365316 947 80.91.229.3 (7 Mar 2016 15:41:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2016 15:41:56 +0000 (UTC) To: Stefan Monnier , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 07 16:41:52 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1acxI7-0005mF-7A for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Mar 2016 16:41:51 +0100 Original-Received: from localhost ([::1]:56513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acxI6-0003b6-8m for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Mar 2016 10:41:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acxHj-0003W6-8M for help-gnu-emacs@gnu.org; Mon, 07 Mar 2016 10:41:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acxHe-0003RE-6U for help-gnu-emacs@gnu.org; Mon, 07 Mar 2016 10:41:27 -0500 Original-Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:35664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acxHd-0003Pv-W1 for help-gnu-emacs@gnu.org; Mon, 07 Mar 2016 10:41:22 -0500 Original-Received: by mail-wm0-x229.google.com with SMTP id l68so91925978wml.0 for ; Mon, 07 Mar 2016 07:41:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=8f7C0Da7OvrRIbaEzi/5gS7sNVzbPvFM0erWqB2yP8g=; b=jOV/vPNUf2sg1nJAtCpnPaNys1xNJ776hknfeXEyxwh1kQAbz6g7yCKMoyw3QthvoX U5DV8s5RHGSboJekqGW7UtFHTeBFGdASyDtM7NO3nZE93KR4jr9h3R955yb/FH8lL/Mb N95diuPm9F5VgFwykd50AzwWcltjIwQETGS8ObW5guOo/1GXTewdi1pz87xl+2h6+c6Z ueXBn6kFVBvp+qzmqV8S4/etyqTwLT0y0p98MmBpaIFd+iuJzH2pfXiWAFQ7kYd0Ontt +M2qeULAS0NHTXRCrxp38AGHuln8NEzowXWppJ51oHQGprp93LqykF5P0+J+dsQMpinw Qhdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=8f7C0Da7OvrRIbaEzi/5gS7sNVzbPvFM0erWqB2yP8g=; b=ecbTOAt1gI8shB8vV7zCNKjI1JCbSwKJ24ES2nqD1McG2yrqHXeghQ+mfUxbiX1jg1 C3GUSkdwdOrwnCUF+pWgn5zyzTO/ZVlmJhHDsdNxOcDfg7c9agDPLS1AI4qbhlxDufDw F2gqkYHyJlPvZSYQ6ELAQGkyZklxlPSbqk2iMVchZZNF/mmlcW+ZNSXTMbl7GxytnnoQ UQXFk87VMwpC8VCz/wNhjdKjmPekEL/W3DZ6i2UqR2lmnQbkBFuo7mabtUbENKMuWuhz QkDGARl1abn2LsN9BJj3oQF9Qtww95mWlY+4KNKtNcmug+C22jjcopK/y4R90LSZhFaJ ndKg== X-Gm-Message-State: AD7BkJJxDUGUHg8zkvMgsmK7E5G6yN+KMPfuR3b9nBFnMneOMBtjt6Wwjv9JiGJRY3TXnw== X-Received: by 10.28.101.7 with SMTP id z7mr13076248wmb.92.1457365281152; Mon, 07 Mar 2016 07:41:21 -0800 (PST) Original-Received: from [192.168.1.2] ([185.105.175.24]) by smtp.googlemail.com with ESMTPSA id js8sm18577521wjc.37.2016.03.07.07.41.19 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Mar 2016 07:41:20 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::229 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109503 Archived-At: On 03/07/2016 04:36 PM, Stefan Monnier wrote: > No, it's part of the exposed functionality, since add/remove-hook > specify explicitly with the `local' argument whether the specified > function should be added-to/removed-from the global or the local part. So we're fine with users changing the values of hooks directly, without using add-hook/remove-hook?