diff options
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 04b80159e50..7eca03bd93b 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-03-18 Julien Danjou <julien@danjou.info> | ||
| 2 | |||
| 3 | * gnus-util.el (gnus-buffer-live-p): Simplify gnus-buffer-live-p. | ||
| 4 | (gnus-buffer-live-p): Check that buffer is not nil. | ||
| 5 | |||
| 1 | 2011-03-17 Lars Magne Ingebrigtsen <larsi@gnus.org> | 6 | 2011-03-17 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 7 | ||
| 3 | * gnus-art.el: Require mouse, which the build bot seems to say is | 8 | * gnus-art.el: Require mouse, which the build bot seems to say is |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 42dbd5948cf..3f66b45aaab 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -672,11 +672,9 @@ If N, return the Nth ancestor instead." | |||
| 672 | (when (string-match "\\(<[^<]+>\\)[ \t]*\\'" references) | 672 | (when (string-match "\\(<[^<]+>\\)[ \t]*\\'" references) |
| 673 | (match-string 1 references)))))) | 673 | (match-string 1 references)))))) |
| 674 | 674 | ||
| 675 | (defun gnus-buffer-live-p (buffer) | 675 | (defsubst gnus-buffer-live-p (buffer) |
| 676 | "Say whether BUFFER is alive or not." | 676 | "Say whether BUFFER is alive or not." |
| 677 | (and buffer | 677 | (and buffer (buffer-live-p (get-buffer buffer)))) |
| 678 | (get-buffer buffer) | ||
| 679 | (buffer-name (get-buffer buffer)))) | ||
| 680 | 678 | ||
| 681 | (defun gnus-horizontal-recenter () | 679 | (defun gnus-horizontal-recenter () |
| 682 | "Recenter the current buffer horizontally." | 680 | "Recenter the current buffer horizontally." |