all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#7078: 24.0.50; process-send-string doesn't work with long lines on Solaris
@ 2010-09-20 22:18 Knut Anders Hatlen
  2012-09-14  9:14 ` bug#7078: works with (setq process-connection-type nil) Hendrik Tews
  0 siblings, 1 reply; 2+ messages in thread
From: Knut Anders Hatlen @ 2010-09-20 22:18 UTC (permalink / raw)
  To: 7078

With Emacs 24 on Solaris, the code below will insert ^G into the current
buffer. With Emacs 23.2, and with Emacs 24 on Linux, it will insert 257
a's into the current buffer, which is the expected behaviour. The
problem is only seen if the string passed to process-send-string
contains lines that exceed 256 characters.

(let ((process (start-process "cat" (current-buffer) "cat")))
  (process-send-string process (format "%s\n" (make-string 257 ?a))))

The bug was introduced with this change:

revno: 99890
committer: Stefan Monnier <monnier@iro.umontreal.ca>
branch nick: trunk
timestamp: Mon 2010-04-12 22:07:48 -0400
message:
  Try to solve the problem of spurious EOF chars in long lines of text
  sent to interactive subprocesses.
  * sysdep.c (child_setup_tty): Do not enable ICANON any more.
  (system_process_attributes): Remove unused var `ttotal'.
  * process.c (send_process): Don't bother breaking long line with EOF
  chars when talking to ttys any more.
  (wait_reading_process_output): Output a warning when called in such
  a way that it could block without being interruptible.


-- 
Knut Anders





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

* bug#7078: works with (setq process-connection-type nil)
  2010-09-20 22:18 bug#7078: 24.0.50; process-send-string doesn't work with long lines on Solaris Knut Anders Hatlen
@ 2012-09-14  9:14 ` Hendrik Tews
  0 siblings, 0 replies; 2+ messages in thread
From: Hendrik Tews @ 2012-09-14  9:14 UTC (permalink / raw)
  To: 7078

Hi,

with emacs 24.2 257 characters work, but probably only because
some buffer has been increased to 4K. Trying with 6000
characters, will only insert the first 4K characters.

However, with process-connection-type set to nil everything works
as expected.

Bye,

Hendrik Tews





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

end of thread, other threads:[~2012-09-14  9:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-20 22:18 bug#7078: 24.0.50; process-send-string doesn't work with long lines on Solaris Knut Anders Hatlen
2012-09-14  9:14 ` bug#7078: works with (setq process-connection-type nil) Hendrik Tews

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.