aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2007-10-19 10:37:01 +0000
committerJuanma Barranquero2007-10-19 10:37:01 +0000
commit087674e88d0a35a88dc5ed9201a224fc61b9dc88 (patch)
treea07ebf84b13891a54ca7aef3526cd768ae131c07
parenta6c93f61e31c1dfab621d7f8fbcac0ddfe757a54 (diff)
downloademacs-087674e88d0a35a88dc5ed9201a224fc61b9dc88.tar.gz
emacs-087674e88d0a35a88dc5ed9201a224fc61b9dc88.zip
(follow-unload-function): New function.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/follow.el36
2 files changed, 35 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 64de79e54ac..e0c32d7385c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
12007-10-19 Juanma Barranquero <lekktu@gmail.com> 12007-10-19 Juanma Barranquero <lekktu@gmail.com>
2 2
3 * follow.el (follow-unload-function): New function.
4
3 * loadhist.el (unload-function-features-list): 5 * loadhist.el (unload-function-features-list):
4 Rename from `unload-hook-features-list'. 6 Rename from `unload-hook-features-list'.
5 (unload-hook-features-list): Add as obsolete alias. 7 (unload-hook-features-list): Add as obsolete alias.
diff --git a/lisp/follow.el b/lisp/follow.el
index 6400c799794..2ea4466ea05 100644
--- a/lisp/follow.el
+++ b/lisp/follow.el
@@ -404,8 +404,8 @@ After that, changing the prefix key requires manipulating keymaps."
404 (funcall (symbol-function 'define-key-after) 404 (funcall (symbol-function 'define-key-after)
405 tools-map [follow] (cons "Follow" menumap) 405 tools-map [follow] (cons "Follow" menumap)
406 'separator-follow)) 406 'separator-follow))
407 ;; Didn't find the last item, Adding to the top of 407 ;; Didn't find the last item, adding to the top of
408 ;; tools. (This will probably never happend...) 408 ;; tools. (This will probably never happen...)
409 (define-key (current-global-map) [menu-bar tools follow] 409 (define-key (current-global-map) [menu-bar tools follow]
410 (cons "Follow" menumap)))) 410 (cons "Follow" menumap))))
411 ;; No tools menu, add "Follow" to the menubar. 411 ;; No tools menu, add "Follow" to the menubar.
@@ -790,7 +790,7 @@ in your `~/.emacs' file:
790;;}}} 790;;}}}
791;;{{{ Movement 791;;{{{ Movement
792 792
793;; Note, these functions are not very useful, atleast not unless you 793;; Note, these functions are not very useful, at least not unless you
794;; rebind the rather cumbersome key sequence `C-c . p'. 794;; rebind the rather cumbersome key sequence `C-c . p'.
795 795
796(defun follow-next-window () 796(defun follow-next-window ()
@@ -2243,6 +2243,36 @@ This prevents `mouse-drag-region' from messing things up."
2243 2243
2244;;{{{ The end 2244;;{{{ The end
2245 2245
2246(defun follow-unload-function ()
2247 (follow-stop-intercept-process-output)
2248 (dolist (group '((before
2249 ;; XEmacs
2250 isearch-done
2251 ;; both
2252 set-process-filter sit-for move-overlay)
2253 (after
2254 ;; Emacs
2255 scroll-bar-drag scroll-bar-drag-1 scroll-bar-scroll-down
2256 scroll-bar-scroll-up scroll-bar-set-window-start
2257 ;; XEmacs
2258 scrollbar-line-down scrollbar-line-up scrollbar-page-down
2259 scrollbar-page-up scrollbar-to-bottom scrollbar-to-top
2260 scrollbar-vertical-drag
2261 ;; both
2262 process-filter)))
2263 (let ((class (car group)))
2264 (dolist (fun (cdr group))
2265 (when (functionp fun)
2266 (condition-case nil
2267 (progn
2268 (ad-remove-advice fun class
2269 (intern (concat "follow-" (symbol-name fun))))
2270 (ad-update fun))
2271 (error nil))))))
2272 nil)
2273
2274(defvar follow-unload-function 'follow-unload-function)
2275
2246;; 2276;;
2247;; We're done! 2277;; We're done!
2248;; 2278;;