all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#13138: f90-mode indent preprocessor command after continuation line
@ 2012-12-10 23:25 rogue-spectre
  2012-12-11  4:46 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: rogue-spectre @ 2012-12-10 23:25 UTC (permalink / raw)
  To: 13138

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#13138: f90-mode indent preprocessor command after continuation line
  2012-12-10 23:25 bug#13138: f90-mode indent preprocessor command after continuation line rogue-spectre
@ 2012-12-11  4:46 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2012-12-11  4:46 UTC (permalink / raw)
  To: 13138-done

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.)





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-11  4:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-10 23:25 bug#13138: f90-mode indent preprocessor command after continuation line rogue-spectre
2012-12-11  4:46 ` Glenn Morris

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.