GNU bug report logs -
#753
[Fwd: sh-script.el: indentation of ( )]
Previous Next
Reported by: occitan <at> esperanto.org
Date: Wed, 20 Aug 2008 21:45:04 UTC
Severity: normal
Tags: unreproducible
Done: Andrew Hyatt <ahyatt <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #31 received at 753 <at> emacsbugs.donarmstrong.com (full text, mbox):
> [ You must unarchive old bugs before mailing them ]
Yes: I didn't know it was old :-(
>>> Can you remember why you added '()'?
>> Because neither ( nor ) are allowed in keywords.
> They _are_ keywords, along with { and }, as evidenced by their entries
> in the constant `sh-kw'.
Hmm... I think I see what might be the problem, tho I don't understand
the code enough. Basically, what I saw is that it recognized "done|" as
a keyword, which I fixed by adding ?| to the "not in keywords" chars.
By the same reasonging "done)" is not a keyword, so I added ?\)
(and ?\( as well for good measure). I guess that sh-get-kw should be
fixed more robustly by recognizing ")" and "(" but not "(done", nor
"(done|toto)" for that matter.
Can you take care of that and make sure it fixes the problem at hand
without breaking the problem that prompted my misguided fix?
Stefan
This bug report was last modified 9 years and 136 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.