Function: reftex-toc-restore-region

reftex-toc-restore-region is a byte-compiled function defined in reftex-toc.el.gz.

Signature

(reftex-toc-restore-region POINT-LINE &optional MARK-LINE)

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/reftex-toc.el.gz
(defun reftex-toc-restore-region (point-line &optional mark-line)
  (let ((mpos
         (when mark-line
           (goto-char (point-min))
           (forward-line (1- mark-line))
           (point))))
    (when point-line
      (goto-char (point-min))
      (forward-line (1- point-line)))
    (when mpos
      (set-mark mpos)
      (setq mark-active t
            deactivate-mark nil))))