Function: tramp-sudoedit-send-command-string
tramp-sudoedit-send-command-string is a byte-compiled function defined
in tramp-sudoedit.el.gz.
Signature
(tramp-sudoedit-send-command-string VEC &rest ARGS)
Documentation
Run command ARGS and return the output as a string.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-sudoedit.el.gz
(defun tramp-sudoedit-send-command-string (vec &rest args)
"Run command ARGS and return the output as a string."
(when (apply #'tramp-sudoedit-send-command vec args)
(with-current-buffer (tramp-get-connection-buffer vec)
(tramp-message vec 6 "\n%s" (buffer-string))
(goto-char (point-max))
;(delete-blank-lines)
(while (looking-back (rx (+ (any " \t\n"))) nil 'greedy)
(delete-region (match-beginning 0) (point)))
(when (> (point-max) (point-min))
(substring-no-properties (buffer-string))))))