From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#23933: 25.1.50; Run a buffer-local hook with mapc Date: Sun, 10 Jul 2016 13:12:12 -0400 Message-ID: <87furhh0yb.fsf@users.sourceforge.net> References: <83d1mlft8v.fsf@gnu.org> <8337nhfpxy.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468170820 1947 80.91.229.3 (10 Jul 2016 17:13:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2016 17:13:40 +0000 (UTC) Cc: 23933@debbugs.gnu.org, kifer@cs.stonybrook.edu, tino.calancha@gmail.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 10 19:13:28 2016 Return-path: Envelope-to: geb-bug-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 1bMIIK-0006op-Fb for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2016 19:13:28 +0200 Original-Received: from localhost ([::1]:56016 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMIIJ-0004xc-2M for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2016 13:13:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMIHx-0004lb-Tc for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 13:13:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMIHu-0004cD-6u for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 13:13:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMIHu-0004c9-3P for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 13:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bMIHt-0000Wr-RC for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 13:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jul 2016 17:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23933 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23933-submit@debbugs.gnu.org id=B23933.14681707411986 (code B ref 23933); Sun, 10 Jul 2016 17:13:01 +0000 Original-Received: (at 23933) by debbugs.gnu.org; 10 Jul 2016 17:12:21 +0000 Original-Received: from localhost ([127.0.0.1]:45469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMIHF-0000Vy-4z for submit@debbugs.gnu.org; Sun, 10 Jul 2016 13:12:21 -0400 Original-Received: from mail-io0-f176.google.com ([209.85.223.176]:34393) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMIHE-0000Vl-7A for 23933@debbugs.gnu.org; Sun, 10 Jul 2016 13:12:20 -0400 Original-Received: by mail-io0-f176.google.com with SMTP id q83so19361829iod.1 for <23933@debbugs.gnu.org>; Sun, 10 Jul 2016 10:12:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=lpGEGr/14yc/T+JqK0RPffDZD0crbJ0n03Jq7TV/1Sk=; b=JKQqDbzkG+ZrbzA95vET3ywTPSj5mHBToDEUUzmsNZnc4USvsV3JSqRhztfhioKh2H ZthCdph4jRsP2nwz6UWNxvQhNyzf5fiuVrefAQ4jIK2k4FaiBoMPQWrGP/uHCJVopwXw V0f6UTGFS9jw1XiYxcVaFu9HL6b6eNpkZCe0W2zrRsvIdqnF5R+qe5Sa7Y/DHi29ZQS7 NCqXuaEKloc2D5syK3QF5EHI9cKQMgLepTtdnyksGpavqLVxUjSSnCGi1DeiF+7/fD19 39C8Il1oy8iJBWzdiRn+3xkWZpLA3aijISnaNbGe23hGjYR5AhxUeVJnFELYXDfSsUl8 jO1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=lpGEGr/14yc/T+JqK0RPffDZD0crbJ0n03Jq7TV/1Sk=; b=adz6ypPo+0B/9FOYgZxlkSTR5FPgEy5r6lCaQAWKuqsgevlmTGtpjmz76cHTn8igjA HPGPos8bDlUXqHjA877tUp0dAS/1bG5ogE9JlFh44Cf+n1DcvlFXzEFAfDtojEK2xHH0 fRQwvgU0up3IDwyVfsGxuXisu6QtSU00KFyXZzUKY5Y4oAEOaRu+df3T4M9uVdnOYRrE rc8qXzgUQls1lywUdbx3cCZUopy+nOkReChbP5u8fPyNtfu5RmaK3/ZHlQ/u4KdPqYST lPq86G5uBNDzASk1c2ipzyZ5ALECJvCV0XQAK0PJwGSZXDQP0bgc9ydKFZ4WjOrAWRwF VwKA== X-Gm-Message-State: ALyK8tJh89hig1J2UvZV6EqHPlGWe6ristMYwxL1bd6fy2rTAd5dh4Dp3bcaf1y4HV9Bdg== X-Received: by 10.107.132.144 with SMTP id o16mr16427928ioi.37.1468170734712; Sun, 10 Jul 2016 10:12:14 -0700 (PDT) Original-Received: from zony (206-188-64-44.cpe.distributel.net. [206.188.64.44]) by smtp.googlemail.com with ESMTPSA id l1sm5845994ite.4.2016.07.10.10.12.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jul 2016 10:12:14 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sun, 10 Jul 2016 13:01:55 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:120784 Archived-At: Stefan Monnier writes: >>> after-quit-hook-internal is a variable, not a hook. >> Then how come it includes t in its value? > > [...] Maybe because the value of that var was copied from the value > of an actual hook. Yes: (defun ediff-really-quit (reverse-default-keep-variants) ... (let (... (after-quit-hook-internal ediff-after-quit-hook-internal) And as mentioned in the patch, ediff-filegroup-action calls add-hook with non-nil LOCAL on ediff-after-quit-hook-internal. - (mapc #'funcall after-quit-hook-internal) + ;; after-quit-hook-internal is buffer-local; see `ediff-filegroup-action'. + (mapc (lambda (f) (or (eq f t) (funcall f))) after-quit-hook-internal) ))