🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99898

Re: Xtoolkit argument handling

#99898
From: Boaz P Ben-Zvi
Date: Wed, 28 Mar 1990 17:18
24 lines
1393 bytes
I have a similar problem with command line arguments. I wanted to add
the command line option "-foo", but Emacs takes it to be a file name!
My (ugly) solution (in .emacs):

(setq term-setup-hook
      (function (lambda ()
		(if (get-buffer "-foo") (kill-buffer "-foo"))
		(setq term-setup-hook '()))))

Another question: Why Emacs has the function "memq", but not "member" ?
(Scheme has both). When trying to search through command-line-args,
which is a list of strings, "memq" can not work since it is using "eq",
but "member" can. "member" is trivial:

(defun member (item item-list)
	(if item-list
		(if (equal item (car item-list)) t
			(member item (cdr item-list)))))


------------
Boaz Ben-Zvi
boaz@mit.edu
------------
Technical Details
Message-ID: <1990Mar28.171809.23357@athena.mit.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!snorkelwacker!bloom-beacon!athena.mit.edu!boaz
References: <4501@mhres.mh.nl>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,79390e40a26b9deb
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-03-28 09:18:09 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!snorkelwacker!bloom-beacon!athena.mit.edu!boaz
From: boaz@athena.mit.edu (Boaz P Ben-Zvi)
Newsgroups: gnu.emacs.bug
Subject: Re: Xtoolkit argument handling
Message-ID: <1990Mar28.171809.23357@athena.mit.edu>
Date: 28 Mar 90 17:18:09 GMT
References: <4501@mhres.mh.nl>
Sender: news@athena.mit.edu (News system)
Reply-To: boaz@lcs.mit.edu
Organization: Laboratory for Computer Science, MIT
Lines: 24
Posted: Wed Mar 28 18:18:09 1990