GNU bug report logs - #13138
f90-mode indent preprocessor command after continuation line

Previous Next

Package: emacs;

Reported by: rogue-spectre <rogue-spectre <at> laposte.net>

Date: Mon, 10 Dec 2012 23:36:02 UTC

Severity: normal

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13138 in the body.
You can then email your comments to 13138 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13138; Package emacs. (Mon, 10 Dec 2012 23:36:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to rogue-spectre <rogue-spectre <at> laposte.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 10 Dec 2012 23:36:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: rogue-spectre <rogue-spectre <at> laposte.net>
To: bug-gnu-emacs <at> gnu.org
Subject: f90-mode indent preprocessor command after continuation line
Date: Tue, 11 Dec 2012 00:25:21 +0100
hi,

i recently wanted to use emacs f90-mode in order to proper indent a big program in which one can find lines like this :


w = something &
#ifdef IJK
+ updateforijk
#elif VECTOR
+ updateforvector
#endif

when one execute f90-indent-subprogram either by C-M-q or by the f90 menu, one gets :

w = something &
#ifdef IJK
+ updateforijk
#elif VECTOR
+ updateforvector
#endif

so the first #ifdef is indented and it should not.

have a nice day 


Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Tue, 11 Dec 2012 04:48:02 GMT) Full text and rfc822 format available.

Notification sent to rogue-spectre <rogue-spectre <at> laposte.net>:
bug acknowledged by developer. (Tue, 11 Dec 2012 04:48:02 GMT) Full text and rfc822 format available.

Message #10 received at 13138-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 13138-done <at> debbugs.gnu.org
Subject: Re: bug#13138: f90-mode indent preprocessor command after
	continuation line
Date: Mon, 10 Dec 2012 23:46:50 -0500
Version: 24.4

rogue-spectre wrote:

> w = something &
> #ifdef IJK
> + updateforijk
> #elif VECTOR
> + updateforvector
> #endif
>
> when one execute f90-indent-subprogram either by C-M-q or by the f90 menu, one gets :
>
> w = something &
> #ifdef IJK
> + updateforijk
> #elif VECTOR
> + updateforvector
> #endif
>
> so the first #ifdef is indented and it should not.

Thanks for the report. I think you forgot to indent your second example,
but I see what you mean. Fixed in trunk. (The indentation of the code
statement inside the #else branch still is not correct, but I don't
think that's worth bothering about.)




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 08 Jan 2013 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 117 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.