Emacs-D-Mode-Maintainers / Emacs-D-Mode

An Emacs mode for D code.
GNU General Public License v3.0
84 stars 21 forks source link

Workaround issue #50. #51

Closed dmakarov closed 9 years ago

dmakarov commented 9 years ago

The macros advice-add and add-function were added in Emacs 24.4. There's no reason to use old style defadvice with add-function. This change disables special wrappers that handle indenting of 'static if', 'version' and 'debug' constructs in d-mode for versions of Emacs prior to version 24.4 because the macros that install the wrappers were not available until the version 24.4.