Function: tramp-get-buffer-string

tramp-get-buffer-string is a byte-compiled function defined in tramp.el.gz.

Signature

(tramp-get-buffer-string &optional BUFFER)

Documentation

Return contents of BUFFER.

If BUFFER is not a buffer or a buffer name, return the contents of current-buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
;;;###tramp-autoload
(defsubst tramp-get-buffer-string (&optional buffer)
  "Return contents of BUFFER.
If BUFFER is not a buffer or a buffer name, return the contents
of `current-buffer'."
  (with-current-buffer
      (if (or (bufferp buffer) (and (stringp buffer) (get-buffer buffer)))
	  buffer (current-buffer))
    (substring-no-properties (buffer-string))))