Function: icalendar-make-text-region
icalendar-make-text-region is a byte-compiled function defined in
icalendar-parser.el.gz.
Signature
(icalendar-make-text-region &optional BUFFER BEGIN END)
Documentation
Return an object that represents a region of text.
The region is taken from BUFFER between BEGIN and END. BUFFER defaults to the current buffer, and BEGIN and END default to point and mark in BUFFER.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/icalendar-parser.el.gz
(defun ical:make-text-region (&optional buffer begin end)
"Return an object that represents a region of text.
The region is taken from BUFFER between BEGIN and END. BUFFER defaults
to the current buffer, and BEGIN and END default to point and mark in
BUFFER."
(let ((buf (or buffer (current-buffer)))
(b (make-marker))
(e (make-marker)))
(with-current-buffer buf
(set-marker b (or begin (region-beginning)) buf)
(set-marker e (or end (region-end)))
(cons b e))))