all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: fkrogh@mathalacarte.com
Cc: 8944@debbugs.gnu.org
Subject: bug#8944: 23.3; Formatting of Labeled Constructs in Fortran
Date: Mon, 27 Jun 2011 21:42:20 -0400	[thread overview]
Message-ID: <jcr56ehgub.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <87sjqvdqmt.fsf@mon.i-did-not-set--mail-host-address--so-tickle-me>

fkrogh@mathalacarte.com wrote:

> It would be best if the construct names did not effect the indentation
> of code that follows.
>
> Thus
>
>      An ordinary line indented like here.
> Construct_Name: do i = 1, 10
>        Next line indented as if the construct name were not there.
> Another_Construct_name: do j = 1, 30
> And_Yet_Another_name: do k = 1,8
>            The next line starts like this
>          end do Construct_Name
>        end do Another_Construct_name
>      end do And_Yet_Another_name

I don't understand what you are asking for, because the names
already make no difference to the indentation of subsequent lines.

Compare the result of indenting:

do i = 1, 10
foo
end do

and

very_long_label: do i = 1, 10
foo
end do

Lines 2 and 3 get the same indentation in both cases.

What you seem to be asking for is the option to indent named statements
to column 0. That's probably doable, but it won't be a high priority.

> Although I've been told, it is awkward to implement, I would like to be
> able to use continuation lines so that the indentation structure of the
> code is more clear.  Thus the above might look like this
>
>      An ordinary line indented like here.
> Construct_Name:&
> &    do i = 1, 10

I'm not going to implement this. It is too difficult to support
constructs split across lines.





  reply	other threads:[~2011-06-28  1:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-27 19:24 bug#8944: 23.3; Formatting of Labeled Constructs in Fortran fkrogh
2011-06-28  1:42 ` Glenn Morris [this message]
     [not found]   ` <4E095C50.9090101@mathalacarte.com>
2011-06-28 21:24     ` Glenn Morris
2016-12-07 17:54       ` Glenn Morris

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=jcr56ehgub.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=8944@debbugs.gnu.org \
    --cc=fkrogh@mathalacarte.com \
    /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.