Function: eshell-get-marker
eshell-get-marker is a byte-compiled function defined in
esh-arg.el.gz.
Signature
(eshell-get-marker POSITION BUFFER-OR-NAME)
Documentation
Return the marker for character number POSITION in BUFFER-OR-NAME.
BUFFER-OR-NAME can be a buffer or a string. If a string and a live buffer with that name exists, use that buffer. If no such buffer exists, create a new buffer with that name and use it.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-arg.el.gz
(defun eshell-get-marker (position buffer-or-name)
"Return the marker for character number POSITION in BUFFER-OR-NAME.
BUFFER-OR-NAME can be a buffer or a string. If a string and a
live buffer with that name exists, use that buffer. If no such
buffer exists, create a new buffer with that name and use it."
(let ((marker (make-marker)))
(set-marker marker (string-to-number position)
(get-buffer-create buffer-or-name))))