all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Ushnish Basu <ubasu@cal.berkeley.edu>
Cc: 4259@emacsbugs.donarmstrong.com
Subject: bug#4259: Cannot indent fortran continue statement in emacs 23
Date: Tue, 25 Aug 2009 21:56:11 -0400	[thread overview]
Message-ID: <19092.38459.64403.819245@fencepost.gnu.org> (raw)
In-Reply-To: <4A9436EA.3070303@cal.berkeley.edu>


Please use M-x report-emacs-bug to report Emacs bugs, rather than
sending mail to addresses in the source files.


Ushnish Basu wrote (on Tue, 25 Aug 2009 at 12:09 -0700):

> Currently I am using version 23.1.1, but I did not have this problem
> with 23.0.60 from CVS.
[...]
>        subroutine first
>        do 10 i=1,10
>   10     continue
>        end
>        do 20 i=1,100
>   20     continue
> 
> If I run fortran-indent-line on the first continue (label 10) it works 
> fine. However, if I run it on the second one (label 20), I get the error:
> 
> fortran-check-end-prog-re: Lisp nesting exceeds 'max-lisp-eval-depth'


The example does not look like valid Fortran, so I'm not too bothered
if fortran-mode cannot indent it (although an infinite loop is not a
nice way to fail).

Do you have a minimum example of a valid Fortran file that fails in
this way?

The problem is another (see eg bug #2106) infinite loop in
end-of-defun, when called from the start of the "20" line. It's not
immediately obvious to me whether this is a problem in fortran-mode or
in end-of-defun.





  reply	other threads:[~2009-08-26  1:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <ja8wh23wq6.fsf@fencepost.gnu.org>
2009-08-25 19:09 ` bug#4259: Cannot indent fortran continue statement in emacs 23 Ushnish Basu
2009-08-26  1:56   ` Glenn Morris [this message]
2009-08-26 16:59     ` Ushnish Basu
2009-08-27 22:32       ` Glenn Morris
2009-08-30  1:45   ` bug#4259: marked as done (Cannot indent fortran continue statement in emacs 23) Emacs bug Tracking System
     [not found]   ` <handler.4259.D4259.125159643616456.notifdone@emacsbugs.donarmstrong.com>
2009-08-31 22:08     ` bug#4259: closed by Glenn Morris <rgm@gnu.org> (Re: Cannot " Ushnish Basu

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=19092.38459.64403.819245@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=4259@emacsbugs.donarmstrong.com \
    --cc=ubasu@cal.berkeley.edu \
    /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.