(byte-compile-warning-prefix): Correctly compute line number.
This commit is contained in:
parent
9b73fa0b88
commit
b0aa2c6515
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue