2015-11-27 22:15:22 |
Thomas Danckaert |
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, see 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? |
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? |
|