unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: ignoring comments and/or strings (in source files) by _any_ search function?
Date: Fri, 29 Jun 2007 10:34:21 -0400	[thread overview]
Message-ID: <jwvabuial1p.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: 1182780746.677970.186320@c77g2000hse.googlegroups.com

>> I could simply implement this as a function if I would know how to pass
>> R to FUN? (I know only macro's `,@' -- is there an equivalent
>> for functions?)

> Meanwhile I realized I can use `apply' for this: (apply fun r) works
> fine.

That's the way to do it (either `apply' or `funcall' depending on the
situation).

> Is there another, "better" solution also?

The only better way I can think of is to use another language where
`funcall' can be dropped, but since you'll probably need `apply' instead,
I can't think of any way it could be better, really.


        Stefan

      reply	other threads:[~2007-06-29 14:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-25 11:18 ignoring comments and/or strings (in source files) by _any_ search function? Peter Tury
2007-06-25 14:12 ` Peter Tury
2007-06-29 14:34   ` Stefan Monnier [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwvabuial1p.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).