From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#23933: 25.1.50; Run a buffer-local hook with mapc Date: Sun, 10 Jul 2016 19:18:33 +0900 (JST) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-449062787-1468145916=:28079" X-Trace: ger.gmane.org 1468145960 16068 80.91.229.3 (10 Jul 2016 10:19:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2016 10:19:20 +0000 (UTC) Cc: kifer@cs.stonybrook.edu To: 23933@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 10 12:19:12 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 1bMBpP-0002Fx-Ey for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2016 12:19:11 +0200 Original-Received: from localhost ([::1]:54020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMBpO-00083C-Gq for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2016 06:19:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMBpI-000837-I2 for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 06:19:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMBpG-00055u-HH for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 06:19:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMBpG-00055q-EC for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 06:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bMBpG-0004GX-B2 for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 06:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jul 2016 10:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23933 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146814592916375 (code B ref -1); Sun, 10 Jul 2016 10:19:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Jul 2016 10:18:49 +0000 Original-Received: from localhost ([127.0.0.1]:44608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMBp3-0004G2-IG for submit@debbugs.gnu.org; Sun, 10 Jul 2016 06:18:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMBp2-0004Fo-DP for submit@debbugs.gnu.org; Sun, 10 Jul 2016 06:18:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMBow-00050A-9D for submit@debbugs.gnu.org; Sun, 10 Jul 2016 06:18:43 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMBow-0004zw-62 for submit@debbugs.gnu.org; Sun, 10 Jul 2016 06:18:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMBou-00082y-0K for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 06:18:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMBos-0004yV-0Y for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 06:18:38 -0400 Original-Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]:36361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMBor-0004yR-PP for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 06:18:37 -0400 Original-Received: by mail-pa0-x234.google.com with SMTP id hu1so13183483pad.3 for ; Sun, 10 Jul 2016 03:18:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:message-id:user-agent:mime-version; bh=c4Ltn1OJHAvG16iOBvk9P+J+lUwYyerYCXJ3K7Hp4wE=; b=aatPDVMwCD9ODOlOQP+JYNgK8LqsHx0/UiCOsO6ImAZFhPY0mcVEPT95wbCVdbDLJg 9UZ4oKt8OzMvmlnBmivDI0FToN+nDSG+WM+n9RYsvoac67Ny39hTtQAJXujqNGATSO5D XIs0QHZHQrCYc4SFAs+41vDz/8hO5/OD1mUM3VnEJbhFLCYTp4yfqR4TeZcreKqRmrqi nR20wiRU3L9NEkocnSLl3Sd7ZaNRgUdL6ZQIgUL4x0kKdosp14EU3SWBNFgzf5xzZFTz IAQzb6bdD+v1M+2yiMCQ3vqQ2tam0G9dDtPyowZ2jqiGYuftnhYy9Y7lVhEi617yrdeY vYRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:message-id:user-agent :mime-version; bh=c4Ltn1OJHAvG16iOBvk9P+J+lUwYyerYCXJ3K7Hp4wE=; b=YFLOWYzonohq7QfDqTO5/m368Zo+G2WHAEyVMchWYyUdnuDvzciGjwoRPrI8F7J7He RorQ60c0nln272bj316sTZDzTBdRqh3bq8d9Rw9hS80lF+6ETzX5G/35hbNNURuC3UgV OCJTpAnJnIg0nQqVBn8ll0DUyrajGPWR4JpF76sLNj3Te82P/ou4i5kiXIjK5DmDU2Ge rKUwYBE/xd7hu8nvrpX1gKUIn6xQ8wiAB0CUdAdfDdYiIqCBj5YiF8MLmObx6UgCf5VZ mnPsWYM0+UrcKIncTPEybZOHJ7KLl9pMPOMtOth6l/etD7b4SeLypxTxhXqp1DTBSSCR O0FQ== X-Gm-Message-State: ALyK8tJLXWCYu3l9XNqOJUad2W7fXs7XEig3hjxS31vlP4CDR0rz/qB4ZjOsMno+ZDwO3Q== X-Received: by 10.66.175.45 with SMTP id bx13mr25181893pac.23.1468145917114; Sun, 10 Jul 2016 03:18:37 -0700 (PDT) Original-Received: from calancha-pc ([240f:6e:c00e:1:6875:2e94:598b:96cb]) by smtp.gmail.com with ESMTPSA id d130sm2105884pfd.80.2016.07.10.03.18.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jul 2016 03:18:36 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc User-Agent: Alpine 2.20 (DEB 67 2015-01-07) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:120740 Archived-At: --8323329-449062787-1468145916=:28079 Content-Type: text/plain; format=flowed; charset=ISO-8859-7 Content-Transfer-Encoding: 8BIT Prevent calling (funcall t) when running a buffer-local hook as (mapc #'funcall LOCAL-HOOK). emacs -Q /tmp M-! for f in foo bar foo-new bar-new; do echo $f>/tmp/$f;done RET M-! for f in foo bar; do diff -u /tmp/$f /tmp/${f}-new >> /tmp/patch;done RET M-x epatch RET n patch RET C-k RET y n v q y ;; funcall: Symbol¢s function definition is void: t ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; >From de693cda8c6a174149b523fb4adcfae6d28bc202 Mon Sep 17 00:00:00 2001 From: Tino Calancha Date: Sun, 10 Jul 2016 18:02:16 +0900 Subject: [PATCH] Run a buffer-local hook with mapc * lisp/vc/ediff-util.el (ediff-really-quit): Avoid to apply funcall on 't' (Bug#23933). --- lisp/vc/ediff-util.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/vc/ediff-util.el b/lisp/vc/ediff-util.el index a6b88d5..3d2b9a3 100644 --- a/lisp/vc/ediff-util.el +++ b/lisp/vc/ediff-util.el @@ -2522,7 +2522,8 @@ ediff-really-quit (frame-selected-window warp-frame)) 2 1)) - (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) )) ;; Returns frame under mouse, if this frame is not a minibuffer -- 2.8.1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; In GNU Emacs 25.1.50.5 (x86_64-pc-linux-gnu, GTK+ Version 3.20.6) of 2016-07-10 Repository revision: 466ee1b3ea76425d201b5d59950e88251870c836 Ediff 2.81.5 of July 4, 2013; --8323329-449062787-1468145916=:28079--