bug#5122: Mismatched parentheses when dealing with huge buffercontent
Deniz Dogan <[email protected]> Sat, 5 Dec 2009 01:35:09 +0100
| Newsgroups | gmane.emacs.bugs,gmane.emacs.pretest.bugs |
|---|---|
| Message-ID | <[email protected]> |
2009/12/5 Drew Adams <[email protected]>: >> > See option `blink-matching-paren-distance' and node >> > Matching in the Emacs manual. >> > Does increasing that variable's value resolve the problem? >> >> Yes, it does solve the problem. > > It's not real obvious when you see mismatch highlighting (and are used to it > working) that the highlighting might not mean a mismatch at all, but just an > insufficiently large option value. Many (most?) users will not even guess that > there is such an option. > > Perhaps we could use a :help-echo property along with the mismatch highlight > face, pointing to the option? > > I'm not sure what the best solution would be, but it is indeed strange that Emacs says that there was a parenthesis *mismatch*. Maybe it would be better to say something along the lines of "Emacs was unable to find a matching parenthesis in the previous X characters", but obviously much more terse.