aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2013-04-15 11:43:20 +0200
committerMichael Albinus2013-04-15 11:43:20 +0200
commiteb922adfdb19296c02fec37559b3374fc7a0b71a (patch)
tree9b1180c160ea694849317d09e4c3c66f35dacbf8
parent7a55aa139a4d9977844afafae4f368977d555daf (diff)
downloademacs-eb922adfdb19296c02fec37559b3374fc7a0b71a.tar.gz
emacs-eb922adfdb19296c02fec37559b3374fc7a0b71a.zip
* net/ange-ftp.el (ange-ftp-run-real-handler-orig): New defun,
uses code from the previous `ange-ftp-run-real-handler'. (ange-ftp-run-real-handler): Set it to `tramp-run-real-handler' only in case that function exist. This is needed for proper unloading of Tramp.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/net/ange-ftp.el22
2 files changed, 20 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 34711b72c3e..f3db36db290 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12013-04-15 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/ange-ftp.el (ange-ftp-run-real-handler-orig): New defun,
4 uses code from the previous `ange-ftp-run-real-handler'.
5 (ange-ftp-run-real-handler): Set it to `tramp-run-real-handler'
6 only in case that function exist. This is needed for proper
7 unloading of Tramp.
8
12013-04-15 Tassilo Horn <tsdh@gnu.org> 92013-04-15 Tassilo Horn <tsdh@gnu.org>
2 10
3 * textmodes/reftex-vars.el (reftex-label-regexps): New defcustom. 11 * textmodes/reftex-vars.el (reftex-label-regexps): New defcustom.
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
index 2b8c7ae145b..f6efc56023a 100644
--- a/lisp/net/ange-ftp.el
+++ b/lisp/net/ange-ftp.el
@@ -4437,16 +4437,18 @@ NEWNAME should be the name to give the new compressed or uncompressed file.")
4437;;; Define ways of getting at unmodified Emacs primitives, 4437;;; Define ways of getting at unmodified Emacs primitives,
4438;;; turning off our handler. 4438;;; turning off our handler.
4439 4439
4440;(defun ange-ftp-run-real-handler (operation args) 4440(defun ange-ftp-run-real-handler-orig (operation args)
4441; (let ((inhibit-file-name-handlers 4441 (let ((inhibit-file-name-handlers
4442; (cons 'ange-ftp-hook-function 4442 (cons 'ange-ftp-hook-function
4443; (cons 'ange-ftp-completion-hook-function 4443 (cons 'ange-ftp-completion-hook-function
4444; (and (eq inhibit-file-name-operation operation) 4444 (and (eq inhibit-file-name-operation operation)
4445; inhibit-file-name-handlers)))) 4445 inhibit-file-name-handlers))))
4446; (inhibit-file-name-operation operation)) 4446 (inhibit-file-name-operation operation))
4447; (apply operation args))) 4447 (apply operation args)))
4448 4448
4449(defalias 'ange-ftp-run-real-handler 'tramp-run-real-handler) 4449(defalias 'ange-ftp-run-real-handler
4450 (if (fboundp 'tramp-run-real-handler)
4451 'tramp-run-real-handler 'ange-ftp-run-real-handler-orig))
4450 4452
4451(defun ange-ftp-real-file-name-directory (&rest args) 4453(defun ange-ftp-real-file-name-directory (&rest args)
4452 (ange-ftp-run-real-handler 'file-name-directory args)) 4454 (ange-ftp-run-real-handler 'file-name-directory args))