in reply to Re^6: How would you indent this?
in thread How would you indent this?
I don't think it's useful but it's not worth arguing about.
This behavior also goes away if you set the configuration variable ‘cperl-indent-region-fix-constructs’ to nil.
I don't know of any other language mode in Emacs, or even another instance in cperl-mode, where an unfinished statement of any kind, like a /* in c-mode or an open quote " without its closing quote causes an error message to appear.
Well, parens (of any kind) are sort of magical in Emacs, even in situations where they should not be, like within comments or strings. Comments and strings, on the other hand, have ... a different kind of magic.
I am still at a loss why the message would cause scrolling. Emacs emits warnings rather frequently without any scrolling taking place. I have a hunch that the issue is not caused by CPerl mode. There are similar cases, which might help to narrow down the issue:
|
|---|