included hideif.elc broken

Bug #1520707 reported by Thomas Danckaert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
emacs24 (Ubuntu)
New
Undecided
Unassigned

Bug Description

The version of hideif.elc shipped with emacs 24.5.1 is broken. This leads to errors when parsing certain C header files with semantic.

Example header which produces this problem:

 /* #undef __INT_MAX__ */
 /* #define __INT_MAX__ 0x7fffffff */

 #if __INT_MAX__ == 12345678
 #endif

 (parsing this header leads to errors such as Wrong type argument: number-or-marker-p, \"0x7fffffff\"). See also http://sourceforge.net/p/cedet/mailman/message/34367892/

The problem goes away when replacing the current hideif.elc (at /usr/share/emacs/24.5/lisp/progmodes/hideif.elc) with a file byte-compiled from the source from emacs master, e.g. the version at revision d1521c64 from https://github.com/typester/emacs/blob/d1521c64e34debe1618313fbed0e7354b28bf0ae/lisp/progmodes/hideif.el

In other words, the problem is already fixed in newer versions of emacs, but since the solution is quite simple, maybe the ubuntu package for emacs 24.5.1 could be patched?

description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.