]> git.eshelyaron.com Git - emacs.git/commit
HideIfDef mode bug fixes and enhancements. This is #3 of 3 patches based
authorLuke Lee <luke.yx.lee@gmail.com>
Mon, 7 Jul 2014 08:59:32 +0000 (16:59 +0800)
committerLuke Lee <luke.yx.lee@gmail.com>
Mon, 7 Jul 2014 08:59:32 +0000 (16:59 +0800)
commit2c578850246f76ada633e8af447a1c12958f267a
tree6d7c9354972399b37eaaf07b6ef620e3612e3276
parent4cf00b8c156d96fc05b5447d618c24ecdb14d640
HideIfDef mode bug fixes and enhancements. This is #3 of 3 patches based
on the completed work posted on http://www.emacswiki.org/emacs/HideIfDef.

- Add macro evaluation function and key binding for a marked region.
- Merge continuous "..." lines into one.
- Fix old hideif bugs that fail to hide the correct #elif regions
- Support hide/show commands in a marked region.
- Expand top level for .h files to prevent re-inclusion protection.
- Change maintainer.

* lisp/progmodes/hideif.el (hide-ifdef-env): Change to global.
(hide-ifdef-env-backup): New variable.
(hide-ifdef-expand-reinclusion-protection, hide-ifdef-header-regexp):
New customizable variables.
(hif-clear-all-ifdef-defined): New defun.
(hif-merge-ifdef-region, hide-ifdef-region-internal, hide-ifdef-region)
(hif-show-ifdef-region): Merge hidden regions to prevent continuous "...".
(hif-tokenize): Fix for MS-DOS/Win EOL style.
(hif-endif-to-ifdef, hif-make-range, hif-find-range, hif-possibly-hide):
Fix bug to hide the correct #elif region(s).
(hif-range-elif): New defun.
(hif-recurse-level): New var.
(hif-evaluate-region, hif-evaluate-macro): New defun.
(hide-ifdef-guts): Prevent reinclusion protected C/C++ headers from
fully hidden.
(hide-ifdef-define, hide-ifdefs, hide-ifdef-block, show-ifdef-block):
Better interaction.
etc/NEWS
lisp/ChangeLog
lisp/progmodes/hideif.el