2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 10 Apr 2008 11:56:15 +0000 (11:56 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 10 Apr 2008 11:56:15 +0000 (11:56 +0000)
    * mail-source.el (mail-source-value):
    Prefer fboundp to functionp so it works with macros as well.

2008-04-10  Stefan Monnier  <monnier@iro.umontreal.ca>

    * gnus-win.el (gnus-configure-frame, gnus-all-windows-visible-p):
    Fix last change in case the element is not even a symbol.

2008-04-10  Stefan Monnier  <monnier@iro.umontreal.ca>

    * gnus-win.el (gnus-configure-frame, gnus-all-windows-visible-p):
    Prefer fboundp to functionp so it works with macros as well.

lisp/ChangeLog
lisp/gnus-win.el
lisp/mail-source.el

index dbb787e..f4a4715 100644 (file)
@@ -1,3 +1,18 @@
+2008-04-10  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * mail-source.el (mail-source-value):
+       Prefer fboundp to functionp so it works with macros as well.
+
+2008-04-10  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * gnus-win.el (gnus-configure-frame, gnus-all-windows-visible-p):
+       Fix last change in case the element is not even a symbol.
+
+2008-04-10  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * gnus-win.el (gnus-configure-frame, gnus-all-windows-visible-p):
+       Prefer fboundp to functionp so it works with macros as well.
+
 2008-04-09  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * auth-source.el: Added docs.
index 13a37e5..03d882c 100644 (file)
@@ -317,7 +317,7 @@ See the Gnus manual for an explanation of the syntax used.")
     ;; The SPLIT might be something that is to be evaled to
     ;; return a new SPLIT.
     (while (and (not (assq (car split) gnus-window-to-buffer))
-               (functionp (car split)))
+               (symbolp (car split)) (fboundp (car split)))
       (setq split (eval split)))
     (let* ((type (car split))
           (subs (cddr split))
@@ -380,7 +380,7 @@ See the Gnus manual for an explanation of the syntax used.")
          (while subs
            (setq sub (append (pop subs) nil))
            (while (and (not (assq (car sub) gnus-window-to-buffer))
-                       (functionp (car sub)))
+                       (symbolp (car sub)) (fboundp (car sub)))
              (setq sub (eval sub)))
            (when sub
              (push sub comp-subs)
@@ -520,7 +520,7 @@ should have point."
       ;; The SPLIT might be something that is to be evaled to
       ;; return a new SPLIT.
       (while (and (not (assq (car split) gnus-window-to-buffer))
-                 (functionp (car split)))
+                 (symbolp (car split)) (fboundp (car split)))
        (setq split (eval split)))
 
       (setq type (elt split 0))
index 088b91d..583b190 100644 (file)
@@ -500,8 +500,7 @@ See `mail-source-bind'."
    ((stringp value)
     value)
    ;; Function
-   ((and (listp value)
-        (functionp (car value)))
+   ((and (listp value) (symbolp (car value)) (fboundp (car value)))
     (eval value))
    ;; Just return the value.
    (t