Commit 069f790c authored by Gabriel do Nascimento Ribeiro's avatar Gabriel do Nascimento Ribeiro Committed by Lars Ingebrigtsen
Browse files

Use 'remember-buffer' in remember.el doc strings.

* lisp/textmodes/remember.el (remember-initial-contents)
(remember-before-remember-hook, remember-destroy): Refer to
`remember-buffer'.

* lisp/textmodes/remember.el (remember-buffer): Make into
defcustom (bug#49373).
parent 039d0032
Pipeline #11481 failed with stages
in 12 seconds
......@@ -223,8 +223,10 @@ recorded somewhere by that function."
;;; Internal Variables:
(defvar remember-buffer "*Remember*"
"The name of the remember data entry buffer.")
(defcustom remember-buffer "*Remember*"
"The name of the remember data entry buffer."
:version "28.1"
:type 'string)
(defcustom remember-save-after-remembering t
"Non-nil means automatically save after remembering."
......@@ -240,10 +242,10 @@ recorded somewhere by that function."
(defvar remember-annotation nil
"Current annotation.")
(defvar remember-initial-contents nil
"Initial contents to place into *Remember* buffer.")
"Initial contents to place into `remember-buffer'.")
(defcustom remember-before-remember-hook nil
"Functions run before switching to the *Remember* buffer."
"Functions run before switching to the `remember-buffer'."
:type 'hook)
(defcustom remember-run-all-annotation-functions-flag nil
......@@ -253,8 +255,8 @@ recorded somewhere by that function."
;;;###autoload
(defun remember (&optional initial)
"Remember an arbitrary piece of data.
INITIAL is the text to initially place in the *Remember* buffer,
or nil to bring up a blank *Remember* buffer.
INITIAL is the text to initially place in the `remember-buffer',
or nil to bring up a blank `remember-buffer'.
With a prefix or a visible region, use the region as INITIAL."
(interactive
......@@ -422,7 +424,7 @@ return the text to be remembered."
(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
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.
......@@ -478,7 +480,7 @@ Most useful for remembering things from other applications."
(remember-region (point-min) (point-max)))
(defun remember-destroy ()
"Destroy the current *Remember* buffer."
"Destroy the current `remember-buffer'."
(interactive)
(when (equal remember-buffer (buffer-name))
(kill-buffer (current-buffer))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment