From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.help Subject: Re: Is there any elisp functions to tell whether the cursor is in a comment block? Date: Tue, 15 Jul 2008 23:34:27 +0200 Message-ID: <487D17E3.3020803@gmail.com> References: <87tzetis7w.fsf@DEBLAP1.BeNet> <71bcf427-442c-45b8-95d6-5f8289c85297@z72g2000hsb.googlegroups.com> <87iqv8sdyi.fsf@DEBLAP1.BeNet> <87mykk1b1r.fsf@DEBLAP1.BeNet><487BDF2F.8010202@gmail.com> <487C526A.6010806@gmail.com> <003201c8e685$3d7f9770$0200a8c0@us.oracle.com> <487D0D8B.7050907@gmail.com> <001c01c8e6c0$bd3203a0$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216157723 7491 80.91.229.12 (15 Jul 2008 21:35:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jul 2008 21:35:23 +0000 (UTC) Cc: 'Tom Tromey' , help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 15 23:36:10 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KIsBp-0006Pm-SV for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Jul 2008 23:36:06 +0200 Original-Received: from localhost ([127.0.0.1]:48869 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIsAx-00040E-HL for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Jul 2008 17:35:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KIsAc-0003y5-FP for help-gnu-emacs@gnu.org; Tue, 15 Jul 2008 17:34:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KIsAc-0003xl-1l for help-gnu-emacs@gnu.org; Tue, 15 Jul 2008 17:34:50 -0400 Original-Received: from [199.232.76.173] (port=43527 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIsAb-0003xg-Oj for help-gnu-emacs@gnu.org; Tue, 15 Jul 2008 17:34:49 -0400 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:52302) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KIsAb-00010h-6Z for help-gnu-emacs@gnu.org; Tue, 15 Jul 2008 17:34:49 -0400 Original-Received: from c83-254-145-59.bredband.comhem.se ([83.254.145.59]:64373 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KIsAI-0002Aw-6z; Tue, 15 Jul 2008 23:34:30 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <001c01c8e6c0$bd3203a0$0200a8c0@us.oracle.com> X-Antivirus: avast! (VPS 080712-0, 2008-07-12), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.145.59 X-Scan-Result: No virus found in message 1KIsAI-0002Aw-6z. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KIsAI-0002Aw-6z c9c8320fbe78e4cf61302d65556d95a4 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:55608 Archived-At: Drew Adams wrote: >>>> I am thinking about a page on EmacsWiki that holds the >>>> information. This page could for example have entries like >>>> >>>> === Tabkey2.el 21=n 22=y 23=y === >>>> elisp:tabkey2.el >>>> comment ... comment ... >>>> >>>> ELPA could then fetch information from this page. And >>>> users could too. >>>> >>>> The elisp pages on EmacsWiki could at the bottom have a link >>>> to this page. >>> A file-header field in each library file can give the same >>> information. I use this field, for example: >>> >>> ;; Compatibility: GNU Emacs 20.x, GNU Emacs 21.x, GNU Emacs 22.x >>> >>> However, the field value is free-form at present. A >>> conventional form would let tools pick up the value. >>> >>> An advantage is locality of reference and update: some >>> developers are more likely to update a file header field than >>> a separate wiki page. >> Yes, that might be good too, but it can't be used for packages. > > Why not? > > If a tool (e.g. ELPA) can pick up the info from a wiki page, as you suggest, why > can't it pick it up from an elisp file (which can also be a wiki page) or a > "package file" or whatever. IOW, whatever info you would provide in the form you > suggested could alternatively be provided in the source code itself. No? Yes, you are right. It can be done. For a package consisting of several files there can be a file, say this-package-compatibility.el, that contains this information. For a single elisp file I think the compatibility info can be in the file itself. So maybe your suggestion is better. I would suggest a shorter version of the compatibility line, like ;; Compatibility: Emacs=20.*,21.*,22.* XEmacs=unknown I would also suggest adding this information to all elisp files on EmacsWiki. Perhaps this can be done automatically using the dates the files where added and assuming the files only works for the then current released version of Emacs?