aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-04-09 20:23:27 +0000
committerGerd Moellmann2000-04-09 20:23:27 +0000
commitd36fadcebcdf21fac0df32a4ad4b526576c397ef (patch)
tree0607bb0c0d258c4e46031f4dbffa12cf17fcae01
parent9a98ef18f571f20b6131cbd18708b07962ff39f9 (diff)
downloademacs-d36fadcebcdf21fac0df32a4ad4b526576c397ef.tar.gz
emacs-d36fadcebcdf21fac0df32a4ad4b526576c397ef.zip
(ebrowse-find-file-hook-fn): Moved
to ebrowse-ffh.el. (ebrowse-load): Add autoload.
-rw-r--r--lisp/progmodes/ebrowse.el14
1 files changed, 1 insertions, 13 deletions
diff --git a/lisp/progmodes/ebrowse.el b/lisp/progmodes/ebrowse.el
index 0bacb36da4a..e28fb67747e 100644
--- a/lisp/progmodes/ebrowse.el
+++ b/lisp/progmodes/ebrowse.el
@@ -899,14 +899,6 @@ this is the first progress message displayed."
899 899
900;;; Reading a tree from disk 900;;; Reading a tree from disk
901 901
902(defun ebrowse-find-file ()
903 "Function installed as `find-file hook'.
904This loads a tree when it sees a special signature at the beginning of
905the file loaded."
906 (when (looking-at "\\[ebrowse-hs")
907 (ebrowse-load buffer-file-name 'switch)))
908
909
910(defun ebrowse-read () 902(defun ebrowse-read ()
911 "Read `ebrowse-hs' and `ebrowse-ts' structures in the current buffer. 903 "Read `ebrowse-hs' and `ebrowse-ts' structures in the current buffer.
912Return a list (HEADER TREE) where HEADER is the file header read 904Return a list (HEADER TREE) where HEADER is the file header read
@@ -935,6 +927,7 @@ and TREE is a list of `ebrowse-ts' structures forming the class tree."
935 (list header tree))) 927 (list header tree)))
936 928
937 929
930;;;###autoload
938(defun ebrowse-load (file &optional switch) 931(defun ebrowse-load (file &optional switch)
939 "Load an Ebrowse file FILE into memory and make a tree buffer. 932 "Load an Ebrowse file FILE into memory and make a tree buffer.
940Optional SWITCH non-nil means switch to the tree buffer afterwards. 933Optional SWITCH non-nil means switch to the tree buffer afterwards.
@@ -4555,11 +4548,6 @@ EVENT is the mouse event."
4555 4548
4556 4549
4557 4550
4558;;; Hooks installed
4559
4560(add-hook 'find-file-hooks 'ebrowse-find-file)
4561
4562
4563(provide 'ebrowse) 4551(provide 'ebrowse)
4564 4552
4565;;; Local variables: 4553;;; Local variables: