From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don provan Newsgroups: gmane.emacs.help Subject: Re: Suggestions? Better filetype sniffing -- XHTML vs. HTML Date: 30 May 2005 23:52:50 -0700 Message-ID: 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 1117522777 31887 80.91.229.2 (31 May 2005 06:59:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 May 2005 06:59:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 31 08:59:36 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dd0hl-000599-Gq for geh-help-gnu-emacs@m.gmane.org; Tue, 31 May 2005 08:58:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dd0mn-0002q8-Ba for geh-help-gnu-emacs@m.gmane.org; Tue, 31 May 2005 03:03:37 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Tue, 31 May 2005 01:52:43 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 34 Original-NNTP-Posting-Host: 24.5.243.171 Original-X-Trace: sv3-jmTtw7DfuaZdDRW9b3pGHXDdJ39t4UmpCXbCjUrAyUNZKNVciqO+1E9wjRPvceGW8WeYb3oVbWlkiB0!MD3h2jTjOt4OIZhtVnOTkCmC+v2DGjiOZl5MJVCgFLWEaeDr Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.help:131628 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:27087 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27087 Thien-Thi Nguyen writes: > On Tue, 24 Feb 2004 09:31:51 -0800, Kin Cho wrote: > > > If you know C, 'xml-html-mode is like taking the > > address of a function. > > that's a stretch! > > did anyone who: > (a) did know C previously > and (b) did NOT know emacs lisp previously > and (c) learned something about emacs lisp eventually > find this comparison to be helpful in going from (b) to (c)? 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? -don provan