From: Thien-Thi Nguyen <ttn@glug.org>
Subject: where to put eol kludge
Date: Thu, 15 May 2003 19:05:58 -0400 [thread overview]
Message-ID: <E19GRnS-0002Mg-00@colo.agora-net.com> (raw)
(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.
of course, along the way we should write an autoconf test to detect the
necessity for such a kludge (i.e, just how broken `write' is) and then
omit it when not needed, but that's a side issue...
thi
next reply other threads:[~2003-05-15 23:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-15 23:05 Thien-Thi Nguyen [this message]
2003-05-15 23:49 ` where to put eol kludge Kenichi Handa
2003-05-16 10:20 ` Thien-Thi Nguyen
2003-05-16 11:07 ` Kenichi Handa
2003-05-16 12:14 ` Thien-Thi Nguyen
2003-05-16 13:06 ` Kenichi Handa
2003-05-19 14:50 ` Thien-Thi Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E19GRnS-0002Mg-00@colo.agora-net.com \
--to=ttn@glug.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.