Function: sesman-link-with-buffer
sesman-link-with-buffer is an autoloaded, interactive and
byte-compiled function defined in sesman.el.
Signature
(sesman-link-with-buffer &optional BUFFER SESSION)
Documentation
Ask for SESSION and link with BUFFER.
BUFFER defaults to current buffer. On universal argument, or if BUFFER is ='ask, ask for buffer.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/sesman-20260616.1239/sesman.el
;;;###autoload
(defun sesman-link-with-buffer (&optional buffer session)
"Ask for SESSION and link with BUFFER.
BUFFER defaults to current buffer. On universal argument, or if BUFFER is \='ask,
ask for buffer."
(interactive "P")
(let ((buf (if (or (eq buffer 'ask)
(equal buffer '(4)))
(let ((this-system (sesman--system)))
(read-buffer "Link buffer: " (current-buffer) t
(lambda (buf-cons)
(equal this-system
(sesman--system-in-buffer (cdr buf-cons))))))
(or buffer (current-buffer)))))
(sesman--link-session-interactively session 'buffer buf)))