gnus-util.el (gnus-buffer-live-p): Simplify gnus-buffer-live-p.
(gnus-buffer-live-p): Check that buffer is not nil.
This commit is contained in:
parent
a904a09a8b
commit
06e9c2d94e
2 changed files with 7 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-03-18 Julien Danjou <julien@danjou.info>
|
||||
|
||||
* gnus-util.el (gnus-buffer-live-p): Simplify gnus-buffer-live-p.
|
||||
(gnus-buffer-live-p): Check that buffer is not nil.
|
||||
|
||||
2011-03-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
|
||||
|
||||
* gnus-art.el: Require mouse, which the build bot seems to say is
|
||||
|
|
|
@ -672,11 +672,9 @@ If N, return the Nth ancestor instead."
|
|||
(when (string-match "\\(<[^<]+>\\)[ \t]*\\'" references)
|
||||
(match-string 1 references))))))
|
||||
|
||||
(defun gnus-buffer-live-p (buffer)
|
||||
(defsubst gnus-buffer-live-p (buffer)
|
||||
"Say whether BUFFER is alive or not."
|
||||
(and buffer
|
||||
(get-buffer buffer)
|
||||
(buffer-name (get-buffer buffer))))
|
||||
(and buffer (buffer-live-p (get-buffer buffer))))
|
||||
|
||||
(defun gnus-horizontal-recenter ()
|
||||
"Recenter the current buffer horizontally."
|
||||
|
|
Loading…
Add table
Reference in a new issue