Remove superfluous `font-lock-add-keywords' calls in Tramp
* lisp/net/tramp.el (with-parsed-tramp-file-name) (with-tramp-progress-reporter, with-tramp-file-property) (with-tramp-connection-property, with-tramp-locked-connection): * lisp/net/tramp-gvfs.el (with-tramp-dbus-call-method) (with-tramp-dbus-get-all-properties): Do not call `font-lock-add-keywords' for macros, it isn't needed anymore.
This commit is contained in:
parent
3a8e140ad1
commit
49192d1418
2 changed files with 0 additions and 18 deletions
|
@ -916,8 +916,6 @@ or `dbus-call-method-asynchronously'."
|
|||
;; when loading.
|
||||
(dbus-ignore-errors (tramp-dbus-function ,vec func args))))
|
||||
|
||||
(font-lock-add-keywords 'emacs-lisp-mode '("\\<with-tramp-dbus-call-method\\>"))
|
||||
|
||||
(defmacro with-tramp-dbus-get-all-properties
|
||||
(vec bus service path interface)
|
||||
"Return all properties of INTERFACE.
|
||||
|
@ -932,8 +930,6 @@ The call will be traced by Tramp with trace level 6."
|
|||
(tramp-dbus-function
|
||||
,vec #'dbus-get-all-properties (list ,bus ,service ,path ,interface))))
|
||||
|
||||
(font-lock-add-keywords 'emacs-lisp-mode '("\\<with-tramp-dbus-get-all-properties\\>"))
|
||||
|
||||
(defvar tramp-gvfs-dbus-event-vector nil
|
||||
"Current Tramp file name to be used, as vector.
|
||||
It is needed when D-Bus signals or errors arrive, because there
|
||||
|
|
|
@ -2302,8 +2302,6 @@ If VAR is nil, then we bind `v' to the structure and `method', `user',
|
|||
(ignore ,@(mapcar #'car bindings))
|
||||
,@body)))
|
||||
|
||||
(font-lock-add-keywords 'emacs-lisp-mode '("\\<with-parsed-tramp-file-name\\>"))
|
||||
|
||||
(defun tramp-progress-reporter-update (reporter &optional value suffix)
|
||||
"Report progress of an operation for Tramp."
|
||||
(let* ((parameters (cdr reporter))
|
||||
|
@ -2340,9 +2338,6 @@ without a visible progress reporter."
|
|||
(if tm (cancel-timer tm))
|
||||
(tramp-message ,vec ,level "%s...%s" ,message cookie)))))
|
||||
|
||||
(font-lock-add-keywords
|
||||
'emacs-lisp-mode '("\\<with-tramp-progress-reporter\\>"))
|
||||
|
||||
(defmacro with-tramp-file-property (vec file property &rest body)
|
||||
"Check in Tramp cache for PROPERTY, otherwise execute BODY and set cache.
|
||||
FILE must be a local file name on a connection identified via VEC."
|
||||
|
@ -2359,8 +2354,6 @@ FILE must be a local file name on a connection identified via VEC."
|
|||
value)
|
||||
,@body))
|
||||
|
||||
(font-lock-add-keywords 'emacs-lisp-mode '("\\<with-tramp-file-property\\>"))
|
||||
|
||||
(defmacro with-tramp-connection-property (key property &rest body)
|
||||
"Check in Tramp for property PROPERTY, otherwise execute BODY and set."
|
||||
(declare (indent 2) (debug t))
|
||||
|
@ -2374,9 +2367,6 @@ FILE must be a local file name on a connection identified via VEC."
|
|||
(tramp-set-connection-property ,key ,property value))
|
||||
value))
|
||||
|
||||
(font-lock-add-keywords
|
||||
'emacs-lisp-mode '("\\<with-tramp-connection-property\\>"))
|
||||
|
||||
(defun tramp-drop-volume-letter (name)
|
||||
"Cut off unnecessary drive letter from file NAME.
|
||||
The functions `tramp-*-handle-expand-file-name' call `expand-file-name'
|
||||
|
@ -5027,10 +5017,6 @@ Mostly useful to protect BODY from being interrupted by timers."
|
|||
,@body)
|
||||
(tramp-flush-connection-property ,proc "locked"))))
|
||||
|
||||
;; FIXME: This call is redundant in current Emacsen.
|
||||
(font-lock-add-keywords
|
||||
'emacs-lisp-mode '("\\<with-tramp-locked-connection\\>"))
|
||||
|
||||
(defun tramp-accept-process-output (proc &optional timeout)
|
||||
"Like `accept-process-output' for Tramp processes.
|
||||
This is needed in order to hide `last-coding-system-used', which is set
|
||||
|
|
Loading…
Add table
Reference in a new issue