From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adam Newsgroups: gmane.emacs.help Subject: Re: handling parenthesis and quotes Date: Thu, 25 Jan 2007 10:32:02 +1300 Organization: Ihug Ltd Message-ID: References: <878xftpinw.fsf@kobe.laptop> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: sea.gmane.org 1169674870 7341 80.91.229.12 (24 Jan 2007 21:41:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 24 Jan 2007 21:41:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 24 22:41:05 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H9prY-000593-Es for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Jan 2007 22:41:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H9prY-0001CA-08 for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Jan 2007 16:41:00 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!ihnp4.UCSD.Edu!sdd.hp.com!news-pa1.hpl.hp.com!news.compaq.com!newsfeeds.ihug.co.nz!lust.ihug.co.nz!ihug.co.nz!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 56 Original-NNTP-Posting-Host: 203.173.200.5 Original-X-Trace: lust.ihug.co.nz 1169674234 21516 203.173.200.5 (24 Jan 2007 21:30:34 GMT) Original-X-Complaints-To: abuse@ihug.co.nz Original-NNTP-Posting-Date: Wed, 24 Jan 2007 21:30:34 +0000 (UTC) User-Agent: KNode/0.9.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:145009 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40612 Archived-At: Harald Hanche-Olsen wrote: > + Eli Zaretskii : > > |> From: Harald Hanche-Olsen > |> Date: Wed, 24 Jan 2007 08:24:51 +0100 > |> | > |> | (shell "grep -i \"\(define \" ~/mydir/myfile?.lisp") > |> > |> Much easier to use the single quote for the shell command. > | > | But double quotes are more portable, as the Windows shells support > | them, but don't support '...' quoting. > > Oh. I didn't know that. But single quotes are more portable, as es > and rc both support them, but not "...". > > Er, never mind. > > Oh, but I am confused now, because shell doesn't even take a command > as an argument. Did the OP mean shell-command? And *that* isn't > really portable either, if you wish to obsess about it, because (a) by > default it uses the user's login shell, and (b) as you pointed out, > different OSes have different kinds of shells anyhow. > > In summary, if you wish to use shell-command portably on unix you need > to wrap (let ((explicit-shell-file-name "/bin/sh")) ...) around it. > > (Disclaimer: I use a CVS emacs, so that variable may not be available > on older emacsen for all I know.) Thanks for your interest. And the Windows or more general non-portable case is interesting. No - I just wanted a grepped list to pop up in my Emacs Slime *inferior-lisp* buffer, my user login shell works fine for this. A related newbie question might be, is this the usual approach for 'incremental programming' by Lisp users ? That is; write a function, then append that function to a file of work with append-to-file ? This creates a file of functions that need to be listed from time to time. The grep thing works well for now. Perhaps that file will become a package for slime-set-package slime-profile-package or preferably something more Emacs native. Am I on track with my understanding of this so far as 'incremental programming'?