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

> Ralf Angeli <[EMAIL PROTECTED]> 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



_______________________________________________
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex

Reply via email to