Earlier I submitted some fixes to hideshow.el to improve handling of braces in comments (bug#8036). These fixes were incomplete and in one case, incorrect. The attached patch improves hideshow.el further: 1. The previous patch made hs-find-block-beginning quit searching if a brace was found inside a comment. This patch ignores that match and keeps searching. 2. There were some false positives of (looking-at hs-block-start-regexp) if the point was at a commented-out brace. This patch wraps all instances of that in a function to check for comments.