]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/vlf/vlf.el
Add comments for autoloaded elements.
[gnu-emacs-elpa] / packages / vlf / vlf.el
index 73b133f98c857c3635ed54c8a1b05a998fae5f45..c33e11cde5039935f1083bb415ee8698ccd31388 100644 (file)
@@ -49,6 +49,7 @@
   :type 'integer)
 (put 'vlf-batch-size 'permanent-local t)
 
+;;; used by the autoloaded abort-if-file-too-large advice
 ;;;###autoload
 (defcustom vlf-application 'ask
   "Determines when `vlf' will be offered on opening files.
@@ -168,14 +169,16 @@ You can customize number of bytes displayed by customizing
 (eval-after-load "dired"
   '(define-key dired-mode-map "V" 'dired-vlf))
 
+;;; used by the autoloaded abort-if-file-too-large advice
 ;;;###autoload
 (defcustom vlf-forbidden-modes-list
   '(archive-mode tar-mode jka-compr git-commit-mode image-mode
-                 doc-view-mode doc-view-mode-maybe)
+                 doc-view-mode doc-view-mode-maybe ebrowse-tree-mode)
   "Major modes which VLF will not be automatically applied to."
   :group 'vlf
   :type '(list symbol))
 
+;;; used by the autoloaded abort-if-file-too-large advice
 ;;;###autoload
 (defun vlf-determine-major-mode (filename)
   "Determine major mode from FILENAME."
@@ -206,6 +209,7 @@ You can customize number of bytes displayed by customizing
         (cadr mode)
       mode)))
 
+;;; autoload this so vlf is available as soon as file is opened
 ;;;###autoload
 (defadvice abort-if-file-too-large (around vlf-if-file-too-large
                                            compile activate)