🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #1099

ispell.el and time.el

#1099
From: taylor
Date: Fri, 21 Oct 1988 21:29
53 lines
2006 bytes
[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
Technical Details
Message-ID: <8810212129.AA12231@odin.think.com>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!osu-cis!tut.cis.ohio-state.edu!THINK.COM!taylor

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!osu-cis!tut.cis.ohio-state.edu!THINK.COM!taylor
From: taylor@THINK.COM
Newsgroups: gnu.emacs.bug
Subject: ispell.el and time.el
Message-ID: <8810212129.AA12231@odin.think.com>
Date: 21 Oct 88 21:29:19 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 52