Function: remember-region

remember-region is an interactive and byte-compiled function defined in remember.el.gz.

Signature

(remember-region &optional BEG END)

Documentation

Remember the data from BEG to END.

It is called from within the remember-buffer to save the text that was entered.

If BEG and END are nil, the entire buffer will be remembered.

If you want to remember a region, supply a universal prefix to remember instead. For example: C-u (universal-argument) M-x remember (remember) RET.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/remember.el.gz
(defun remember-region (&optional beg end)
  "Remember the data from BEG to END.
It is called from within the `remember-buffer' to save the text
that was entered.

If BEG and END are nil, the entire buffer will be remembered.

If you want to remember a region, supply a universal prefix to
`remember' instead.  For example: \\[universal-argument] \\[remember] RET."
  ;; Sacha: I have no idea where remember.el gets this context information, but
  ;; you can just use remember-annotation-functions.
  (interactive)
  (let ((b (or beg (min (point) (or (mark) (point-min)))))
        (e (or end (max (point) (or (mark) (point-max))))))
    (save-restriction
      (narrow-to-region b e)
      (if remember-all-handler-functions
          (run-hooks 'remember-handler-functions)
        (run-hook-with-args-until-success 'remember-handler-functions))
      (remember-destroy))))