From: Alan M. <ac...@mu...> - 2008-02-19 22:44:25
|
Hi, Diogo and Richard! ACK! In a C file, write this: > #warning for isn't a keyword here The fontification goes haywire. The cause of the bug was the apostrophe in "isn't", which was being handled as an unbalanced string quote. This bug was actually quite profound; unbalanced parens/brackets/braces also caused syntactic havoc in other ways too. I have now committed a fix to the EMACS_22 branch at Savannah. I'm going to commit it to the trunk too, ASAP. Diogo, thanks very much indeed for reporting this bug! How would you prefer to get the fix? If you're familiar with the Emacs repository at savannah.gnu.org, you could download the latest versions of the CC Mode lisp files (..../lisp/progmodes/cc-*.el). Or I could sent you an up to date set of these by email. Please let me know! However you get them, please make sure that cc-defs.el is byte-compiled first, followed by cc-langs.el. The other files may then be byte-compiled in any order. On Tue, Jan 22, 2008 at 05:30:30PM -0500, Richard Stallman wrote: > Can you please DTRT and ack? > > ------- Start of forwarded message ------- > DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; > h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; > bh=Fah0Es5BsVLEQ0Jw00YqzzwPqfJwtdsKj8nbE2Duzyw=; > b=LSd5cViXz/XKjcYtVzUrzx2hJpnJQaDXEJYaR8BTj/mBDg814QXYQ2kXK9oAXlQWSDMl+H1JXvBsi7jPU/lw8+VXO9Oq+fvGNRbrv5VtoYRm9o1fILuSODEufWgZG//MS1pooTgfK2C87662OCEKUtpTPckq9+UBUuioWlSN6Kk= > Message-ID: <8f5...@ma...> > Date: Sun, 20 Jan 2008 20:02:13 +0000 > From: "Diogo Sousa" <or...@gm...> > To: bug...@gn... > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Disposition: inline > Subject: Bug in emacs 22.1.1 (cosmetic bug) > > When editing with c-mode or c++-mode reserved words are displayed > highlighted in pre-processor instructions. > > To reproduce: > > * Open emacs > * M-X c-mode (or c++-mode) > * Write the line: #warning for isn't a keyword here > > Thanks > ------- End of forwarded message ------- -- Alan Mackenzie (Nuremberg, Germany). |