[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] displaying line numbers > 9999 in TeX Error Overview
From: |
Mosè Giordano |
Subject: |
Re: [AUCTeX] displaying line numbers > 9999 in TeX Error Overview |
Date: |
Tue, 2 May 2017 20:27:59 +0200 |
Hi
2017-05-02 19:51 GMT+02:00 jfbu <address@hidden>:
> hi,
>
> this is from TeX error overview buffer
>
> blender_manual.tex 2375 Error Package inputenc Error: Unicode char
> ▸ (U+25B8)
> blender_manual.tex 1... Error Package inputenc Error: Unicode char
> ⏮ (U+23EE)
>
> one sees that line number >= 10000 gets displayed as 1...
>
> the jump to the file and to the log work fine, but I wanted to copy paste to
> help the author of the document and this makes it more difficult
>
> this document has 111915 lines (whoosh...) and has errors all the way to the
> end (of the above type, of the type of using svg or gif image files, of
> various perhaps a missing \item (that's wrapfig fault) and, sadly some
> dimension too large error (due to gigantic jpeg files).
>
> It would be nice to get the 5 digits line numbers in TeX Error Overview...
>
> Is there a way to configure AUCTeX to display them ?
Not super-easy, but yes, it's possible with a few Elisp lines:
--8<---------------cut here---------------start------------->8---
(add-hook
'TeX-error-overview-mode-hook
(lambda ()
(setq tabulated-list-format [("File" 25 nil)
("Line" 5 nil :right-align t)
("Type" 7 nil)
("Message" 0 nil)]
tabulated-list-padding 1
tabulated-list-entries TeX-error-overview-list-entries)
(tabulated-list-init-header)
(tabulated-list-print)))
--8<---------------cut here---------------end--------------->8---
You can set the width of each column by adjusting the number after the
column name.
Bye,
Mosè