summaryrefslogtreecommitdiff
path: root/lisp/follow.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2007-06-14 00:06:03 +0000
committerJuanma Barranquero <lekktu@gmail.com>2007-06-14 00:06:03 +0000
commit1c161dc39905f61f5301f21add98bbcf52300d91 (patch)
tree20b0fa463c769fb68bdc10f42f0f8e03d5d4466d /lisp/follow.el
parentf75d58f9124e5d62ac38670a2e71d7b16c85d5ff (diff)
downloademacs-1c161dc39905f61f5301f21add98bbcf52300d91.tar.gz
(follow-all-followers, follow-generic-filter): Remove redundant checks.
Diffstat (limited to 'lisp/follow.el')
-rw-r--r--lisp/follow.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/follow.el b/lisp/follow.el
index 90555a786cc..048db9bf11a 100644
--- a/lisp/follow.el
+++ b/lisp/follow.el
@@ -912,7 +912,7 @@ of the way from the true end."
"Return all windows displaying the same buffer as the TESTWIN.
The list contains only windows displayed in the same frame as TESTWIN.
If TESTWIN is nil the selected window is used."
- (or (and testwin (window-live-p testwin))
+ (or (window-live-p testwin)
(setq testwin (selected-window)))
(let* ((top (frame-first-window (window-frame testwin)))
(win top)
@@ -1968,7 +1968,7 @@ report this using the `report-emacs-bug' function."
;; If we're in follow mode, do our stuff. Select a new window and
;; redisplay. (Actually, it is redundant to check `buf', but I
;; feel it's more correct.)
- (if (and buf win (window-live-p win))
+ (if (and buf (window-live-p win))
(progn
(set-buffer buf)
(if (and (boundp 'follow-mode) follow-mode)