From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David McKee Newsgroups: gmane.emacs.devel Subject: Re: hide/show mode definitions for g77 Date: Thu, 11 Nov 2004 13:38:35 -0500 (EST) Message-ID: References: <50lldkwlwo.fsf@xpc14.ast.cam.ac.uk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1100198410 16671 80.91.229.6 (11 Nov 2004 18:40:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Nov 2004 18:40:10 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 11 19:40:02 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CSJrV-0008BW-00 for ; Thu, 11 Nov 2004 19:40:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSJzx-0004bt-U1 for ged-emacs-devel@m.gmane.org; Thu, 11 Nov 2004 13:48:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CSJzp-0004bC-Fu for emacs-devel@gnu.org; Thu, 11 Nov 2004 13:48:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CSJzo-0004aY-Bp for emacs-devel@gnu.org; Thu, 11 Nov 2004 13:48:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSJzo-0004aI-1C for emacs-devel@gnu.org; Thu, 11 Nov 2004 13:48:36 -0500 Original-Received: from [129.57.35.124] (helo=mailer.jlab.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CSJr1-0000io-WC for emacs-devel@gnu.org; Thu, 11 Nov 2004 13:39:32 -0500 Original-Received: from jlabs2.jlab.org (localhost [127.0.0.1]) by mailer.jlab.org (8.12.11/8.12.11) with ESMTP id iABIcajT014576; Thu, 11 Nov 2004 13:38:36 -0500 (EST) Original-Received: from localhost (dmckee@localhost) by jlabs2.jlab.org (8.12.9/8.12.8) with ESMTP id iABIcZXR027791; Thu, 11 Nov 2004 13:38:35 -0500 (EST) Original-To: Glenn Morris In-Reply-To: <50lldkwlwo.fsf@xpc14.ast.cam.ac.uk> REPLY_TO: dmckee@jlab.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:29757 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29757 Folks, Last weekend I was able to give a little time to this code again. The version originally posted had some problems which I have partially remedied... I've updated the version in my web-space First and foremost, the forward block implementation was simply broken. Blame it on my (nearly complete lack of) lisp skills. Secondly, is the issue of column 1 comments. Evidently these are quite a headache in the fortran mode as they cannot be handled using the usual syntax table methods. The new code completely ignores column 1 comments. Comments indicated with a '!' are now treated. I think this even works. As a hack, one can indicate column one comments with a '!' and then they will work too. G77 seems to accept this. Thirdly, the regexps that identify block start/stop conditions are extended objects, and if the point is somewhere inside or immediately before them when hs-hide-block is called, it hides the block _containing_ the indicated block deliminator. Which is not what I expected. Not sure if I can beat this, or if the user will simply have to beware. I looked for a Pascal hide/show implementation to see if this is normal with extended delimnators (begin/end), but didn't find one. Is there an extant hide/show implementation for a language with extended deliminators? Does it do this? I've not heard back from any of my colleagues on this and don't know if anyone is using it. Still very little testing. cc: Glenn Morris Cheers, -- -- David McKee -- dmckee@jlab.org -- (757) 269-7492 (Office)