From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: Suggestions? Better filetype sniffing -- XHTML vs. HTML Date: Mon, 12 Sep 2005 09:59:54 +0200 Organization: sometimes Message-ID: <7e4q8qu35x.fsf@ada2.unipv.it> References: <7i8yisfmqx.fsf@neoscale.com> <7iznb8e648.fsf@neoscale.com> <7e64x48cij.fsf@ada2.unipv.it> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1126516729 9645 80.91.229.2 (12 Sep 2005 09:18:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Sep 2005 09:18:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 12 11:18:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EEkRW-0004BP-Pd for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Sep 2005 11:17:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EEkRV-0004Qk-Ts for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Sep 2005 05:17:37 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: ada2.unipv.it Original-X-Trace: quimby.gnus.org 1126511905 8518 193.204.44.145 (12 Sep 2005 07:58:25 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Mon, 12 Sep 2005 07:58:25 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:2/amNDq958Z2ccpsklm+S3Kqo1M= Original-Xref: shelby.stanford.edu gnu.emacs.help:133870 Original-To: help-gnu-emacs@gnu.org 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:29421 Archived-At: don provan 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