mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-13 16:38:14 +00:00
(byte-compile-warning-prefix): Correctly compute line number.
This commit is contained in:
parent
9b73fa0b88
commit
b0aa2c6515
@ -972,8 +972,10 @@ Each function's symbol gets added to `byte-compile-noruntime-functions'."
|
||||
(pos (if (and byte-compile-current-file
|
||||
(integerp byte-compile-read-position))
|
||||
(with-current-buffer byte-compile-current-buffer
|
||||
(format "%d:%d:" (count-lines (point-min)
|
||||
byte-compile-last-position)
|
||||
(format "%d:%d:"
|
||||
(save-excursion
|
||||
(goto-char byte-compile-last-position)
|
||||
(1+ (count-lines (point-min) (point-at-bol))))
|
||||
(save-excursion
|
||||
(goto-char byte-compile-last-position)
|
||||
(1+ (current-column)))))
|
||||
|
Loading…
Reference in New Issue
Block a user