X-Git-Url: https://cgit.sxemacs.org/?p=gnus;a=blobdiff_plain;f=lisp%2Fgnus-win.el;h=4956be9fd87c793e7f18dacd1f2af539f7ec1475;hp=7f1079dba32dd887434fb2882c4b719a6aece3c4;hb=6596e287aaa6b58bc2603bc113a99ee22a924381;hpb=ff80e11c0d938957488106210ce262cc6725cfc7 diff --git a/lisp/gnus-win.el b/lisp/gnus-win.el index 7f1079dba..4956be9fd 100644 --- a/lisp/gnus-win.el +++ b/lisp/gnus-win.el @@ -289,12 +289,12 @@ See the Gnus manual for an explanation of the syntax used.") (defvar gnus-frame-list nil) (defun gnus-window-to-buffer-helper (obj) - (cond ((functionp obj) - (funcall obj)) - ((not (symbolp obj)) + (cond ((not (symbolp obj)) obj) ((boundp obj) (symbol-value obj)) + ((fboundp obj) + (funcall obj)) (t nil))) @@ -315,7 +315,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)) @@ -378,7 +378,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) @@ -518,7 +518,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))