]> git.eshelyaron.com Git - emacs.git/commit
Better `sort` ignored-return-value warning
authorMattias EngdegÄrd <mattiase@acm.org>
Sun, 24 Mar 2024 17:18:41 +0000 (18:18 +0100)
committerEshel Yaron <me@eshelyaron.com>
Fri, 29 Mar 2024 12:33:49 +0000 (13:33 +0100)
commit9228be9148a4e3866532385d1912f533ca963a80
treef516fc1e8b9ce18d5ac5f83f22a16729b02d656f
parent7a27a1040127dd9c89ca9f5585887bba365641d8
Better `sort` ignored-return-value warning

* lisp/emacs-lisp/bytecomp.el (byte-compile-form)
(bytecomp--actually-important-return-value-p):
Special handling of `sort` that takes into account that it may return
an important value depending on the :in-place keyword argument.

(cherry picked from commit b20866c4b3aa1446efda252bd5c3fa54f68c5d7f)
lisp/emacs-lisp/bytecomp.el