]> git.eshelyaron.com Git - emacs.git/commit
Ebrowse: Use invisibility-spec instead of selective-display
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 18 Mar 2019 12:09:42 +0000 (08:09 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 18 Mar 2019 12:09:42 +0000 (08:09 -0400)
commit799eb257970b1f6aeb5833417b6dd943d6479977
treed88a1e1632990ecb710e17b767c4c97648181ca4
parent5055e14dda041f4a4985d3663f19fa8ccb37cad6
Ebrowse: Use invisibility-spec instead of selective-display

* lisp/progmodes/ebrowse.el: Use lexical-binding.
(ebrowse-tree-mode): Set invisibility-spec instead of selective-display.
(ebrowse--hidden-p, ebrowse--hide, ebrowse--unhide): New functions.
(ebrowse-expand-all, ebrowse-unhide-base-classes, ebrowse-hide-line)
(ebrowse-mouse-1-in-tree-buffer): Use them.
(ebrowse-output): Remove macro, use with-silent-modifications instead.
(ebrowse-save-selective): Remove macro, not needed any more.
(ebrowse-trim-string, ebrowse-read, ebrowse-collapse-fn):
No need to pay attention to \r.
(ebrowse-files-list): Use push.
(ebrowse-view/find-file-and-search-pattern): Use add-hook here...
(ebrowse-find-pattern): ...and remove-hook here.
(ebrowse-view/find-position): Use add/remove-hook.
lisp/progmodes/ebrowse.el