unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David McKee <dmckee@jlab.org>
Cc: emacs-devel@gnu.org
Subject: Re: hide/show mode definitions for g77
Date: Thu, 11 Nov 2004 13:38:35 -0500 (EST)	[thread overview]
Message-ID: <Pine.SOL.4.10.10411111313290.25646-100000@jlabs2.jlab.org> (raw)
In-Reply-To: <50lldkwlwo.fsf@xpc14.ast.cam.ac.uk>

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
<http://www.jlab.org/~dmckee/G0/g77_hs_mode.el>

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)

      parent reply	other threads:[~2004-11-11 18:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-25 17:16 hide/show mode definitions for g77 David McKee
2004-11-02  9:48 ` Thien-Thi Nguyen
2004-11-02 11:05   ` Glenn Morris
2004-11-02 17:26     ` Thien-Thi Nguyen
2004-11-11 18:38     ` David McKee [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.SOL.4.10.10411111313290.25646-100000@jlabs2.jlab.org \
    --to=dmckee@jlab.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).