From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#23933: 25.1.50; Run a buffer-local hook with mapc Date: Sun, 10 Jul 2016 13:41:51 -0400 Message-ID: References: <83d1mlft8v.fsf@gnu.org> <8337nhfpxy.fsf@gnu.org> <83poqle7nh.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1468172547 25938 80.91.229.3 (10 Jul 2016 17:42:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2016 17:42:27 +0000 (UTC) Cc: 23933@debbugs.gnu.org, kifer@cs.stonybrook.edu, Stefan Monnier To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 10 19:42:19 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 1bMIkF-0000d8-4B for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2016 19:42:19 +0200 Original-Received: from localhost ([::1]:56180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMIkB-0006I1-1L for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2016 13:42:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMIk4-0006Hj-W6 for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 13:42:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMIjz-00041k-0u for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 13:42:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33188) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMIjy-00041g-T3 for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 13:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bMIjy-0001IF-GH for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 13:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jul 2016 17:42:02 +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.14681725194962 (code B ref 23933); Sun, 10 Jul 2016 17:42:02 +0000 Original-Received: (at 23933) by debbugs.gnu.org; 10 Jul 2016 17:41:59 +0000 Original-Received: from localhost ([127.0.0.1]:45525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMIju-0001Hy-UE for submit@debbugs.gnu.org; Sun, 10 Jul 2016 13:41:59 -0400 Original-Received: from mail-oi0-f52.google.com ([209.85.218.52]:32825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMIjt-0001Hk-85 for 23933@debbugs.gnu.org; Sun, 10 Jul 2016 13:41:57 -0400 Original-Received: by mail-oi0-f52.google.com with SMTP id u201so120413663oie.0 for <23933@debbugs.gnu.org>; Sun, 10 Jul 2016 10:41:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=3T8eq5yQYdY3o/8Pnyb98W0x0tavr1g0twIaP00XF6U=; b=HcazYricXZVEHY7YBLeQLVRLe9/mBmGvWLcNj/YEwD5HeCu1eHPTE24zXcBGaDcofB MD8SuyyI2mHy9MAYOCpCxLXDLna/aSX4p3/dc4x34h3IcbUbTLGzJJNcEFIqYHy9T0ug RK5Rn/O4qMIPJcKWl4SWbjtQ5XgXEvb8H9w2Fum7rcch1VaZooAZ8vKc64/MMkHCQYMo aaVMATZ/kMVPmOxsW42KH19DqDzsuidV3MxLmql18KT6QvFHVffY2Wxq+9GhZcOqmQRV aruY8nIcZK/noLiHvoejryPwy+9vROopTSldmUo76pwo1lIqqV4bUB4fZZKemXgG5gOw xdQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=3T8eq5yQYdY3o/8Pnyb98W0x0tavr1g0twIaP00XF6U=; b=Dy7elNSpbPOwvTLrzRgo+/DonqQR/qNcZvMID+8FVe0eVP1USQtcpp9/jrbk7lZ0dh bC4xp+vkE1GqHMxjU7E3V5M8uJqOFBEKDP/rHlA6D+yTPUgL4YlOQTLfXn2q29PSOcxv wn3n8gXe7tKfmt5tAfIka6mo/PBdL4iNBQmzywYhTMj7xRwOVzAuNvj9/ZR+cW3m0TD3 s7PiZn2JRs9pUo7XXifKV5Jpbc6SX1Wl3scnj0RSbpOPujCimEsfWCfO58Brt5hbFQsl QbyEzwXKnk3hXI+n093d28fKyxi4XkLF3awULaxoHm6rhjV3S3Rp4vX6j41tPx8c3Tca 76ag== X-Gm-Message-State: ALyK8tLZ4lu85fNa3uplnlpJ5CwIB7pVYJEHtCN41Sjws5SJmyHWP4hVR3KyDcjERUNGN+lkBE8r+0x4Jh6AaQ== X-Received: by 10.157.36.227 with SMTP id z90mr8891228ota.124.1468172511553; Sun, 10 Jul 2016 10:41:51 -0700 (PDT) Original-Received: by 10.157.4.197 with HTTP; Sun, 10 Jul 2016 10:41:51 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: s-YLPj5TX_gJS-LVYKgKKhWC7a8 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:120798 Archived-At: On Sun, Jul 10, 2016 at 1:31 PM, Tino Calancha wrote: > I have tried another approach: drop the let binding > and call run-hooks over the actual hook, as follows: [...] > but it doesn't work: the meta-buffer is not shown. > I prefer my initial patch which behaves the same as before > adding the lexical-binding. The easiest fix might be to just make after-quit-hook-internal a dynamic variable (i.e., declare it with defvar). But perhaps better is to stop using add-hook for ediff-after-quit-hook-internal, and just use push.