1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-07 06:41:00 -07:00
emacs/doc
Stéphane Marks faf1932875 New macro setopt-local and function set-local (bug#80709)
'setopt-local' is the buffer local equivalent of 'setopt'.

Unify 'setopt', 'setopt-local', 'setq-local',
'buffer-local-set-state' with 'setq' to signal
'wrong-number-of-arguments'.

* lisp/cus-edit.el (setopt): Change error signal to
'wrong-number-of-arguments'.
(setopt-local): New macro.
(setopt--set-local): New function.
* lisp/subr.el (set-local): New function.
(setq-local, buffer-local-set-state): Signal
'wrong-number-of-arguments' rather than 'error'.
* doc/emacs/custom.texi (Examining): Document 'setopt-local'.
* etc/NEWS: Announce the new macro and function.
2026-04-02 13:47:36 -04:00
..
emacs New macro setopt-local and function set-local (bug#80709) 2026-04-02 13:47:36 -04:00
lispintro ; Fix a typo in 'emacs-lisp-intro.texi' 2026-03-29 12:32:05 +03:00
lispref New macro setopt-local and function set-local (bug#80709) 2026-04-02 13:47:36 -04:00
man ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
misc Allow format specifiers in `tramp-login-program' 2026-03-30 08:18:00 +02:00
translations ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00