all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <gmorris+mail@ast.cam.ac.uk>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: fortran-blink-matching-do does not work in v21.2.1
Date: Wed, 02 Oct 2002 00:16:01 +0100	[thread overview]
Message-ID: <g4fzvpyclq.fsf@ast.cam.ac.uk> (raw)
In-Reply-To: <3D9A2844.5060702@nuclecu.unam.mx> (Juan Carlos Lopez Vieyra's message of "Tue, 01 Oct 2002 17:57:08 -0500")


Juan Carlos Lopez Vieyra wrote:

> Using emacs v21.2.1, I have found a problem with the fortran mode. The
> fortran-blink-matching-do does not match properly the do-enddo loops.
> Even in a very simple example:
>
> c234567
> 	DO I=1,100
> 	  WRITE(*,*)'Hello World'
>          END DO
>
> placing the cursor over the END DO and pressing TAB emacs responds with
> "No matching do".
>
> Does anyone know how to fix this bug (if it is really a  bug)?	

That is a (known) bug - thanks for reporting it. It is already fixed in the
CVS, and will be fixed in Emacs 21.3.

To fix it, you could download the latest EMACS_21_1_RC version of
fortran.el from

http://savannah.gnu.org/cgi-bin/viewcvs/emacs/emacs/lisp/progmodes/fortran.el

Or if you want to edit your existing fortran.el, just make a slight change
to `fortran-beginning-do', and recompile it.

***************
*** 1101,1107 ****
  				(fortran-check-end-prog-re))))
  	    (skip-chars-forward " \t0-9")
  	    (cond ((looking-at
! 		    "\\(\\(\\sw\\|\\s_\\)+:[ \t]*\\)?do[ \t]+[0-9]")
  		   (setq count (1- count)))
  		  ((looking-at "end[ \t]*do\\b")
  		   (setq count (1+ count)))))
--- 1104,1110 ----
  				(fortran-check-end-prog-re))))
  	    (skip-chars-forward " \t0-9")
  	    (cond ((looking-at
! 		    "\\(\\(\\sw\\|\\s_\\)+:[ \t]*\\)?do[ \t]+")
  		   (setq count (1- count)))
  		  ((looking-at "end[ \t]*do\\b")

      reply	other threads:[~2002-10-01 23:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-01 22:57 fortran-blink-matching-do does not work in v21.2.1 Juan Carlos Lopez Vieyra
2002-10-01 23:16 ` Glenn Morris [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

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

  git send-email \
    --in-reply-to=g4fzvpyclq.fsf@ast.cam.ac.uk \
    --to=gmorris+mail@ast.cam.ac.uk \
    --cc=bug-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.