On 10-Oct-2007, Kurt Hornik wrote: | >>>>> Richard Stallman writes: | | > Can you please send the apropriate fix to emacs-devel@gnu.org, | > then ack this message? | | I assume this means that in all functions using looking-at() or | re-search-forward() with possibly case sensitive regexps one needs to | let() case-fold-search to nil? Thanks. How about the attached patch then? Here's the original message: ------- Start of forwarded message ------- X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=failed version=3.1.0 Date: Mon, 08 Oct 2007 13:17:49 +0200 From: GAIL MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Subject: octave-mod.el: wrong indentation for "IF", "FOR", etc. In octave-mode, depending on toggle-case-fold-search, octave-indent-line produces either this IF = 1 ; x = 2 ; or that: IF = 1 ; x = 2 ; (via the function re-search-backward). The second behavior is obviously nonsense. Similar for "FOR" etc. I verified the behavior for emacs-20.7.1/octave-2.1.34 and emacs 22.1.1/octave 2.9.14. G. ------- End of forwarded message ------- jwe