[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33208: 26.1; mark-defun gives incorrect results in some fixed format
From: |
Lars Ingebrigtsen |
Subject: |
bug#33208: 26.1; mark-defun gives incorrect results in some fixed format FORTRAN |
Date: |
Wed, 09 Dec 2020 17:37:24 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
"Fairey, Robin M." <Robin.Fairey@iti-global.com> writes:
> Starting from emacs -Q,
> - Open a new fixed format fortran file ( C-x C-f t e s t . f o r <RET> )
> - Populate it with the following text:
> SUBROUTINE ONE
>
> END SUBROUTINE
> C------------------------------------------------------------------------
> SUBROUTINE TWO
>
> END SUBROUTINE
> C------------------------------------------------------------------------
> SUBROUTINE THREE
>
> END SUBROUTINE
>
> Position point on line 6 (the blank line in TWO), and observe that
> M-x mark-defun marks TWO and THREE instead of just TWO.
>
> Inserting an additional newline between the comment line and the start
> of TWO results in correct behaviour.
Looks like the interface of beginning-of-defun-function has changed --
it now takes an optional arg, and fortran-beginning-of-subprogram didn't
implement that.
I've now fixed that in Emacs 28, and mark-defun now seems to work fine
for me there. (I don't know Fortran, so my testing is limited, though.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#33208: 26.1; mark-defun gives incorrect results in some fixed format FORTRAN,
Lars Ingebrigtsen <=