[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/net/tramp-compat.el,v
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/net/tramp-compat.el,v |
Date: |
Sat, 06 Oct 2007 12:00:43 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Michael Albinus <albinus> 07/10/06 12:00:42
Index: net/tramp-compat.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/net/tramp-compat.el,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- net/tramp-compat.el 4 Oct 2007 20:09:32 -0000 1.4
+++ net/tramp-compat.el 6 Oct 2007 12:00:42 -0000 1.5
@@ -40,6 +40,32 @@
(require 'timer-funcs)
(require 'timer))
+ ;; tramp-util offers integration into other (X)Emacs packages like
+ ;; compile.el, gud.el etc. Not necessary in Emacs 23.
+ (eval-after-load "tramp"
+ ;; We check whether `start-file-process' is an alias.
+ '(when (or (not (fboundp 'start-file-process))
+ (symbolp (symbol-function 'start-file-process)))
+ (require 'tramp-util)
+ (add-hook 'tramp-unload-hook
+ '(lambda ()
+ (when (featurep 'tramp-util)
+ (unload-feature 'tramp-util 'force))))))
+
+ ;; Make sure that we get integration with the VC package. When it
+ ;; is loaded, we need to pull in the integration module. Not
+ ;; necessary in Emacs 23.
+ (eval-after-load "vc"
+ (eval-after-load "tramp"
+ ;; We check whether `start-file-process' is an alias.
+ '(when (or (not (fboundp 'start-file-process))
+ (symbolp (symbol-function 'start-file-process)))
+ (require 'tramp-vc)
+ (add-hook 'tramp-unload-hook
+ '(lambda ()
+ (when (featurep 'tramp-vc)
+ (unload-feature 'tramp-vc 'force)))))))
+
;; Avoid byte-compiler warnings if the byte-compiler supports this.
;; Currently, XEmacs supports this.
(when (featurep 'xemacs)