unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* fortran-blink-matching-do does not work in v21.2.1
@ 2002-10-01 22:57 Juan Carlos Lopez Vieyra
  2002-10-01 23:16 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Juan Carlos Lopez Vieyra @ 2002-10-01 22:57 UTC (permalink / raw)


Greetings,

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)?	


Thanks
JCLV

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: fortran-blink-matching-do does not work in v21.2.1
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2002-10-01 23:16 UTC (permalink / raw)
  Cc: bug-gnu-emacs


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")

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-01 23:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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).