Subject: Re: bug#11340: 24.0.95; hide-show-mode hides only ever other subroutine in Fortran-mode

From: Stefan Kangas <[email-masked]>
Date: Fri, 01 Nov 2019 20:56:30 +0100

found 11340 27.0.50
thanks

Anton Daitche <[email-masked]> writes:

> Use the following example source code:
>
> module test_mod
>   implicit none
>
> contains
>   
>   subroutine a()
>   end subroutine a
>
>   subroutine b()
>   end subroutine b
>
>   subroutine c()
>   end subroutine c
>
>   subroutine d()
>   end subroutine d
>
> end module test_mod
>
> enable hide-show-mode (hs-minor-mode) and execute command hs-hide-level when cursor is outside of any subroutine. The result is that only every other subroutine gets hidden.
> This can be also reproduced with emacs 23.2.1 (debian-stable).

I can reproduce this on current master.

Glenn Morris <[email-masked]> writes:

> Thanks for the report. At first sight, it looks like f90-end-block-re
> and f90-start-block-re should not be anchored to the start of the line.
> Expect to see this fixed in Emacs 24.2.

Did you ever look into this?

Best regards,
Stefan Kangas