[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: where to put eol kludge
From: |
Kenichi Handa |
Subject: |
Re: where to put eol kludge |
Date: |
Fri, 16 May 2003 08:49:52 +0900 (JST) |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) |
In article <address@hidden>, Thien-Thi Nguyen <address@hidden> writes:
> (thinking out loud...)
> the vms run-time `write' suffixes a gratuitous newline that for emacs 19
> was worked around by adjusting point to be at a newline, and silently
> suffering lack of workaround for gratuitous eof newline (see comment in
> `Fwrite_region'). in trying to adapt this kludge to emacs 21, i gather
> that the emacs 21 write path is now:
> Fwrite_region
> a_write
> e_write
> emacs_write
> sys_write
> write (vms)
> since emacs_write calls `encode_coding' (which eventually does eol
> encoding handling selective-display as well), i wonder if that might be
> a better place to move the kludge, than from the high level where it is
> currently. basically what is needed is to adjust the end of the buffer
> that `write' sees so that it ends w/ newline.
It's e_write, not emacs_write, that calls encode-coding.
Anyway, I agree that emacs_write is the better place for
such a job.
---
Ken'ichi HANDA
address@hidden