[Top][All Lists]
[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
- Re: [AUCTeX] debugging of multifile documents with TeX-next-error (2), (continued)
- Re: [AUCTeX] debugging of multifile documents with TeX-next-error (2), Ralf Angeli, 2007/07/03
- Re: [AUCTeX] debugging of multifile documents with TeX-next-error (2), David Kastrup, 2007/07/03
- Re: [AUCTeX] debugging of multifile documents with TeX-next-error (2), Stefan Vollmar, 2007/07/03
- Re: [AUCTeX] debugging of multifile documents with TeX-next-error (2), Ralf Angeli, 2007/07/04
- Re: [AUCTeX] debugging of multifile documents with TeX-next-error (2), David Kastrup, 2007/07/04
- Re: [AUCTeX] debugging of multifile documents with TeX-next-error (2), Stefan Vollmar, 2007/07/04
- Re: [AUCTeX] debugging of multifile documents with TeX-next-error (2), Ralf Angeli, 2007/07/05
- Re: [AUCTeX] debugging of multifile documents with TeX-next-error (2), Stefan Vollmar, 2007/07/05
- Re: [AUCTeX] debugging of multifile documents with TeX-next-error (2), Ralf Angeli, 2007/07/05
- Re: [AUCTeX] debugging of multifile documents with TeX-next-error (2), Stefan Vollmar, 2007/07/05
- [AUCTeX] Re: debugging of multifile documents with TeX-next-error (2),
Ralf Angeli <=
- Re: [AUCTeX] Re: debugging of multifile documents with TeX-next-error (2), David Kastrup, 2007/07/05
- Process filter and coding system (was: [AUCTeX] Re: debugging of multifile documents with TeX-next-error (2)), Ralf Angeli, 2007/07/07