auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] Re: debugging of multifile documents with TeX-next-error (2)


From: Ralf Angeli
Subject: [AUCTeX] Re: debugging of multifile documents with TeX-next-error (2)
Date: Thu, 05 Jul 2007 23:02:43 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

* David Kastrup (2007-07-03) writes:

> Ralf Angeli <address@hidden> writes:
>
>> Hm, but pasting together random stuff will not be trivial.
>
> Would be the job of the filter routine.

Doing a simple proof-of-concept implementation (without safety checks
and optimization) turned out to be rather easy:

--- tex-buf.el  29 Apr 2007 16:39:36 +0200      1.260
+++ tex-buf.el  05 Jul 2007 22:59:20 +0200      
@@ -1051,6 +1051,10 @@
        (goto-char pt)
        (insert-before-markers string)
        (set-marker (process-mark process) (point))
+       (while (> (point) pt)
+         (end-of-line 0)
+         (when (= (current-column) 79) (delete-char 1)))
+       (goto-char (marker-position (process-mark process)))
        (while (and pt
                    (skip-chars-backward "^]" pt)
                    (> (point) pt))


> Given TeX's byte-centricity,
> it would have to be done even before decoding the byte stream into
> characters.

Is the string passed to the filter function still a byte stream?

-- 
Ralf





reply via email to

[Prev in Thread] Current Thread [Next in Thread]