* lisp/net/tramp.el (tramp-get-buffer-string): Stabilize.
This commit is contained in:
parent
a82486e5a4
commit
dbac807605
1 changed files with 4 additions and 5 deletions
|
@ -1960,11 +1960,10 @@ version, the function does nothing."
|
|||
"Return contents of BUFFER.
|
||||
If BUFFER is not a buffer or a buffer name, return the contents
|
||||
of `current-buffer'."
|
||||
(or (let ((buf (or buffer (current-buffer))))
|
||||
(when (bufferp buf)
|
||||
(with-current-buffer (or buffer (current-buffer))
|
||||
(substring-no-properties (buffer-string)))))
|
||||
""))
|
||||
(with-current-buffer
|
||||
(if (or (bufferp buffer) (and (stringp buffer) (get-buffer buffer)))
|
||||
buffer (current-buffer))
|
||||
(substring-no-properties (buffer-string))))
|
||||
|
||||
(defun tramp-debug-buffer-name (vec)
|
||||
"A name for the debug buffer for VEC."
|
||||
|
|
Loading…
Add table
Reference in a new issue