all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thien-Thi Nguyen <ttn@glug.org>
Subject: Re: Suggestions? Better filetype sniffing -- XHTML vs. HTML
Date: Mon, 12 Sep 2005 09:59:54 +0200	[thread overview]
Message-ID: <7e4q8qu35x.fsf@ada2.unipv.it> (raw)
In-Reply-To: uzmubrinx.fsf@comcast.net

don provan <dprovan@comcast.net> writes:

> It's hard to remember back that far, but I think I probably found that
> comparison helpful way back when. I'm not sure why you think it's such
> a stretch. Sure, there are significant differences, but none-the-less,
>
>     (setq f 'function)
>     (funcall f)
>
> is how you accomplish in emacs the same feat as in C with
>
>     f = function;   /* implicitely takes the address of function */
>     (*f)();
>
> I suppose not all C programmers are familiar with function pointers,
> yet you really aren't an emacs programmer until you're familiar with
> quoted function names, so it might be considered a stretch in the
> sense that some C programmers wouldn't have the concept to begin with.
> Is that what you meant?

adopting analogies is a great way to learn, but i have been burned by
adopting ones that i mistakenly took to be more insightful (general)
than they actually were.  in this case, i might have as a newbie
(conjecture because i have forgotten the precise steps of my learning
process, unfortunately), taken the above to also imply that:

  (setq f '(+ 1 2 3))
  (funcall f)

would also be "valid", which it is not.  it certainly is valid when the
quoted object is a function, i'm not arguing against that.  i'm just
pointing out how easily i confuse myself w/ a little imprecision.

thi

  reply	other threads:[~2005-09-12  7:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-24 14:56 Suggestions? Better filetype sniffing -- XHTML vs. HTML D. D. Brierton
2004-02-24 16:47 ` Kin Cho
2004-02-24 17:16   ` D. D. Brierton
2004-02-24 17:31     ` Kin Cho
2004-02-24 17:46       ` D. D. Brierton
2005-05-27 14:29         ` slashdevslashnull
     [not found]         ` <mailman.2088.1117208718.25862.help-gnu-emacs@gnu.org>
2005-05-27 23:39           ` Thien-Thi Nguyen
2005-05-31  6:52             ` don provan
2005-09-12  7:59               ` Thien-Thi Nguyen [this message]
2005-09-15 16:25                 ` don provan
2004-02-24 17:11 ` Stefan Monnier

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=7e4q8qu35x.fsf@ada2.unipv.it \
    --to=ttn@glug.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.