Commit ee3c2877 authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

(follow-mode): Don't run hooks twice. Use `when'.

parent b861ffc3
2007-10-08 Juanma Barranquero <>
* follow.el (follow-mode): Don't run hooks twice. Use `when'.
2007-10-07 Glenn Morris <>
* simple.el (bad-packages-alist): Clarify Semantic and CEDET
......@@ -602,20 +602,18 @@ is called. When turned off, `follow-mode-off-hook' is called.
Keys specific to Follow mode:
:keymap follow-mode-map
(if (and follow-mode follow-intercept-processes)
(when (and follow-mode follow-intercept-processes)
(cond (follow-mode ; On
;; XEmacs: If this is non-nil, the window will scroll before
;; the point will have a chance to get into the next window.
(if (boundp 'scroll-on-clipped-lines)
(setq scroll-on-clipped-lines nil))
(when (boundp 'scroll-on-clipped-lines)
(setq scroll-on-clipped-lines nil))
(add-hook 'post-command-hook 'follow-post-command-hook t)
(run-hooks 'follow-mode-hook))
(add-hook 'post-command-hook 'follow-post-command-hook t))
((not follow-mode) ; Off
(run-hooks 'follow-mode-off-hook))))
;;{{{ Find file hook
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment