]> git.eshelyaron.com Git - emacs.git/commit
Byte compiler: correct output warning message positions
authorAlan Mackenzie <acm@muc.de>
Mon, 18 Apr 2022 15:16:54 +0000 (15:16 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 18 Apr 2022 15:16:54 +0000 (15:16 +0000)
commit850074636e73509b09c28e965c1af054a84f4069
tree1ffef8827901cfb9d460c02ee673b325c4248372
parent352fc739a1df259b1d2de6bc442465f344e44fec
Byte compiler: correct output warning message positions

Correct the algorithm for determining the warning position to get the first
symbol-with-position in byte-compile--form-stack.

* lisp/emacs-lisp/bytecomp.el (byte-compile--first-symbol-with-pos): Function
renamed and amended from byte-compile--first-symbol.
(byte-compile--warning-source-offset): Call the new function above rather than
the old one.
lisp/emacs-lisp/bytecomp.el