Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emacs/gnus/files: gnus-5.10.10-functionp.patch
Date: Mon, 26 Oct 2009 22:00:56
Message-Id: E1N2XcU-0008Nc-8h@stork.gentoo.org
1 ulm 09/10/26 22:00:54
2
3 Added: gnus-5.10.10-functionp.patch
4 Log:
5 Replace some functionp calls for compatibility with Emacs 23, bug 290575.
6 (Portage version: 2.2_rc46/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 app-emacs/gnus/files/gnus-5.10.10-functionp.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emacs/gnus/files/gnus-5.10.10-functionp.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emacs/gnus/files/gnus-5.10.10-functionp.patch?rev=1.1&content-type=text/plain
13
14 Index: gnus-5.10.10-functionp.patch
15 ===================================================================
16 http://bugs.gentoo.org/290575
17 Backported from Emacs 23
18
19 --- gnus-5.10.10-orig/lisp/gnus-win.el
20 +++ gnus-5.10.10/lisp/gnus-win.el
21 @@ -308,7 +308,7 @@
22 ;; The SPLIT might be something that is to be evaled to
23 ;; return a new SPLIT.
24 (while (and (not (assq (car split) gnus-window-to-buffer))
25 - (functionp (car split)))
26 + (fboundp (car split)))
27 (setq split (eval split)))
28 (let* ((type (car split))
29 (subs (cddr split))
30 @@ -371,7 +371,7 @@
31 (while subs
32 (setq sub (append (pop subs) nil))
33 (while (and (not (assq (car sub) gnus-window-to-buffer))
34 - (functionp (car sub)))
35 + (fboundp (car sub)))
36 (setq sub (eval sub)))
37 (when sub
38 (push sub comp-subs)
39 @@ -511,7 +511,7 @@
40 ;; The SPLIT might be something that is to be evaled to
41 ;; return a new SPLIT.
42 (while (and (not (assq (car split) gnus-window-to-buffer))
43 - (functionp (car split)))
44 + (fboundp (car split)))
45 (setq split (eval split)))
46
47 (setq type (elt split 0))
48 --- gnus-5.10.10-orig/lisp/mail-source.el
49 +++ gnus-5.10.10/lisp/mail-source.el
50 @@ -482,8 +482,7 @@
51 ((stringp value)
52 value)
53 ;; Function
54 - ((and (listp value)
55 - (functionp (car value)))
56 + ((and (listp value) (symbolp (car value)) (fboundp (car value)))
57 (eval value))
58 ;; Just return the value.
59 (t