From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: OT: emacs-style variables (etc) in the headers? Date: Mon, 03 Jan 2005 19:57:42 GMT Message-ID: References: <1cXzd.3978$Rb3.3396@fe07.lga> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1104782032 5839 80.91.229.6 (3 Jan 2005 19:53:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Jan 2005 19:53:52 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 03 20:53:45 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ClYGv-0002hI-00 for ; Mon, 03 Jan 2005 20:53:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1ClYS5-0002aL-IE for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Jan 2005 15:05:17 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:DWRVdMqR4I9/H5kLPlAmTzCQAnI= Original-Lines: 15 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1104782262 132.204.24.84 (Mon, 03 Jan 2005 14:57:42 EST) Original-NNTP-Posting-Date: Mon, 03 Jan 2005 14:57:42 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:127646 comp.emacs:87511 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: main.gmane.org gmane.emacs.help:23113 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23113 > I'm starting on a project where I want to include script > snippets in the headers of files (perl, shell, etc.) actually > inside comments where these snippets will not bother the real > script. Is there an algorithm somewhere to detect the script > is really a script and not a binary file, what the comment > character is, and some standard way to include these variables > and such in files? I do not fully understand your question. Could you give a concrete example? Does interpreter-mode-alist answer the question? Stefan "who doesn't read comp.emacs religiously"