emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#23933: closed (25.1.50; Run a buffer-local hook wi


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#23933: closed (25.1.50; Run a buffer-local hook with mapc)
Date: Mon, 11 Jul 2016 16:07:02 +0000

Your message dated Tue, 12 Jul 2016 01:06:16 +0900 (JST)
with message-id <address@hidden>
and subject line 
has caused the debbugs.gnu.org bug report #23933,
regarding 25.1.50; Run a buffer-local hook with mapc
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
23933: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23933
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 25.1.50; Run a buffer-local hook with mapc Date: Sun, 10 Jul 2016 19:18:33 +0900 (JST) User-agent: Alpine 2.20 (DEB 67 2015-01-07)

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 <address@hidden>
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;

--- End Message ---
--- Begin Message --- Date: Tue, 12 Jul 2016 01:06:16 +0900 (JST) User-agent: Alpine 2.20 (DEB 67 2015-01-07)
Fixed in the master branch


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]