; Fix last change (bug#75543)

* lisp/textmodes/remember.el (remember-initial-major-mode)
(remember-data-files-regex): Fix :version and doc strings.

* etc/NEWS: Fix last added entries.
This commit is contained in:
Eli Zaretskii 2025-03-13 12:21:28 +02:00
parent e937167253
commit d29e0add71
2 changed files with 10 additions and 9 deletions

View file

@ -1452,15 +1452,15 @@ change the selection rules.
** Remember
---
*** `remember-mode' is now a minor mode.
The `remember' command enables the major mode set in
`remember-initial-major-mode' and then the `remember-mode' minor mode in
the `remember-buffer'. This allows users to customize the major mode
*** Remember mode is now a minor mode.
The 'remember' command enables the major mode set in
'remember-initial-major-mode' and then the 'remember-mode' minor mode in
the 'remember-buffer'. This allows users to customize the major mode
used to write notes.
---
*** New handler that append remember data in directory.
The `remember-append-in-data-directory' handler appends remember data in
The 'remember-append-in-data-directory' handler appends remember data in
a file, that file being choosen by the user through the minibuffer.
---

View file

@ -185,8 +185,8 @@
(defcustom remember-initial-major-mode 'text-mode
"Major mode to use in the `remember-buffer'."
:type '(choice (const :tag "Use `initial-major-mode'" nil)
(function :tag "Major mode" text-mode))
:version "31.0")
(function :tag "Major mode" text-mode))
:version "31.1")
(defcustom remember-mode-hook nil
"Functions run upon entering `remember-mode'."
@ -484,10 +484,10 @@ The file is named by calling `format-time-string' using
(defcustom remember-data-files-regex nil
"Regular expression for specifying which files to append data.
If non-nil, keep only files whose non-directory part match the regexp.
If non-nil, keep only files whose non-directory part matches the regexp.
Used by `remember-append-in-data-directory'."
:type '(choice (const :tag "Any file" nil) regexp)
:version "31.0")
:version "31.1")
(defun remember-append-in-data-directory ()
"Append remember data to a file in `remember-data-directory'.
@ -709,6 +709,7 @@ is non-nil, bury it and return nil; otherwise return t."
;; Prefix map
(defvar remember-prefix-map)
(define-prefix-command 'remember-prefix-map)
;; Use with for example:
;; (keymap-global-set "C-c r" 'remember-prefix-map)