1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 02:51:31 -08:00
emacs/doc
Mattias Engdegård 7acb3f1c06 Add the function declaration and property important-return-value
Now the declaration

 (declare (important-return-value t))

can be used to have the byte-compiler warn when the return value from
a call is discarded (bug#61730).

* lisp/emacs-lisp/bytecomp.el (byte-compile-form)
(important-return-value-fns): Use the function property
`important-return-value` instead of looking through a static list.
* lisp/emacs-lisp/byte-run.el (byte-run--set-important-return-value)
(defun-declarations-alist): New function declaration, setting the
property of the same name.
* lisp/emacs-lisp/cl-macs.el:
* lisp/subr.el (assoc-default): Set the property.
* doc/lispref/functions.texi (Declare Form):
* doc/lispref/symbols.texi (Standard Properties): Document.
* etc/NEWS: Announce.
2023-05-01 17:11:50 +02:00
..
emacs Merge from origin/emacs-29 2023-04-28 11:51:01 +08:00
lispintro ; Minor fix in Emacs Lisp Intro manual 2023-04-21 19:16:52 +03:00
lispref Add the function declaration and property important-return-value 2023-05-01 17:11:50 +02:00
man ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
misc Merge from origin/emacs-29 2023-04-28 12:14:26 -04:00