[gnu.emacs.bug] ispell.el and time.el

taylor@THINK.COM (10/22/88)

[I sent this yesterday, but it doesn't appear to have left the local 
machine.  Sorry if this is a repeat.]

Not really a bug, but this seemed like the best mailing list.

This is in GNU Emacs 18.49.17:

ispell-init-process in ispell.el and display-time in time.el both use
pty's for the process that they create.  But, they don't do anything
that requires the use of a pty.

Why do I care?  Because sun4 servers running Sun4-3.2_REV2 limit you to
32 pty's and we've been running out with just 8-10 users logged on!  One
day when I looked via rsh (we were out of pty's) I found 9 loadst's
running on their own pty's and 3 ispell's running on pty's.

The change to not use a pty is easy:

in display-time in time.el, change:

  (let ((live (and display-time-process
		   (eq (process-status display-time-process) 'run))))

to

  (let ((live (and display-time-process
		   (eq (process-status display-time-process) 'run)))
	(process-connection-type nil))

And in ispell-init-process in ispell.el, change:

       (setq ispell-process (apply 'start-process "ispell"
				   ispell-out-name ispell-program-name
				   (if ispell-dictionary
				       (list "-p" ispell-dictionary "-A")
				       (list "-A"))))

to

       (let ((process-connection-type nil))
	 (setq ispell-process (apply 'start-process "ispell"
				     ispell-out-name ispell-program-name
				     (if ispell-dictionary
					 (list "-p" ispell-dictionary "-A")
					 (list "-A")))))

That is, just make sure that process-connection-type is nil when
start-process is called.

David
--
David Taylor
taylor@think.com, ...!think!taylor