Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
df54bcbd
Commit
df54bcbd
authored
Aug 26, 2013
by
Michael Albinus
Browse files
* net/tramp-sh.el (tramp-sh-handle-verify-visited-file-modtime):
BUF can be optional. (Bug#15186)
parent
de396731
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/net/tramp-sh.el
lisp/net/tramp-sh.el
+2
-2
No files found.
lisp/ChangeLog
View file @
df54bcbd
2013-08-26 Michael Albinus <michael.albinus@gmx.de>
* net/tramp-sh.el (tramp-sh-handle-verify-visited-file-modtime):
BUF can be optional. (Bug#15186)
2013-08-25 Xue Fuqiao <xfq.free@gmail.com>
* progmodes/flymake.el (flymake-get-real-file-name-function):
...
...
lisp/net/tramp-sh.el
View file @
df54bcbd
...
...
@@ -1234,14 +1234,14 @@ target of the symlink differ."
;; This function makes the same assumption as
;; `tramp-sh-handle-set-visited-file-modtime'.
(defun tramp-sh-handle-verify-visited-file-modtime (buf)
(defun tramp-sh-handle-verify-visited-file-modtime (
&optional
buf)
"Like `verify-visited-file-modtime' for Tramp files.
At the time `verify-visited-file-modtime' calls this function, we
already know that the buffer is visiting a file and that
`visited-file-modtime' does not return 0. Do not call this
function directly, unless those two cases are already taken care
of."
(with-current-buffer
buf
(with-current-buffer
(or buf (current-buffer))
(let ((f (buffer-file-name)))
;; There is no file visiting the buffer, or the buffer has no
;; recorded last modification time, or there is no established
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment