all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Adam <nospam@example.com>
To: help-gnu-emacs@gnu.org
Subject: Re: handling parenthesis and quotes
Date: Thu, 25 Jan 2007 10:32:02 +1300	[thread overview]
Message-ID: <ep8j5q$l0c$1@lust.ihug.co.nz> (raw)
In-Reply-To: pcofya0tcid.fsf@shuttle.math.ntnu.no

Harald Hanche-Olsen wrote:

> + Eli Zaretskii <eliz@gnu.org>:
> 
> |> From: Harald Hanche-Olsen <hanche@math.ntnu.no>
> |> 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'?

  reply	other threads:[~2007-01-24 21:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-23 20:09 handling parenthesis and quotes Adam
2007-01-23 20:55 ` Giorgos Keramidas
2007-01-23 21:12   ` Adam
2007-01-24  7:24     ` Harald Hanche-Olsen
2007-01-24 19:14       ` Eli Zaretskii
     [not found]       ` <mailman.3530.1169666053.2155.help-gnu-emacs@gnu.org>
2007-01-24 20:07         ` Harald Hanche-Olsen
2007-01-24 21:32           ` Adam [this message]
2007-01-24 22:02             ` Harald Hanche-Olsen
2007-01-25 13:53               ` Adam
2007-01-27  2:20               ` Tim X

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ep8j5q$l0c$1@lust.ihug.co.nz' \
    --to=nospam@example.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.