all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* where to put eol kludge
@ 2003-05-15 23:05 Thien-Thi Nguyen
  2003-05-15 23:49 ` Kenichi Handa
  0 siblings, 1 reply; 7+ messages in thread
From: Thien-Thi Nguyen @ 2003-05-15 23:05 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-05-19 14:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-15 23:05 where to put eol kludge Thien-Thi Nguyen
2003-05-15 23:49 ` 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

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.