diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2019-11-16 14:35:36 +1300 |
---|---|---|
committer | Phil Sainty <psainty@orcon.net.nz> | 2019-11-18 21:25:36 +1300 |
commit | 206f36b38cfe50e92acc8d48926d1e5e2dec5939 (patch) | |
tree | 1b102083a81a90e2f09e37de69253817caf4e3bc /lisp/so-long.el | |
parent | bf7934a63de50c8913d0304371ba404d81d540bd (diff) | |
download | emacs-206f36b38cfe50e92acc8d48926d1e5e2dec5939.tar.gz |
; * lisp/so-long.el: Use declare-function nearer the code that needs it
Diffstat (limited to 'lisp/so-long.el')
-rw-r--r-- | lisp/so-long.el | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lisp/so-long.el b/lisp/so-long.el index 208bdf4ce91..c7931e737cc 100644 --- a/lisp/so-long.el +++ b/lisp/so-long.el @@ -415,15 +415,6 @@ (declare-function longlines-mode "longlines") (defvar longlines-mode) - -(declare-function outline-next-visible-heading "outline") -(declare-function outline-previous-visible-heading "outline") -(declare-function outline-toggle-children "outline") -(declare-function outline-toggle-children "outline") - -(declare-function ad-find-advice "advice") -(declare-function ad-remove-advice "advice") - (defvar so-long-enabled nil "Set to nil to prevent `so-long' from being triggered automatically. @@ -985,6 +976,10 @@ REPLACEMENT is a `so-long-action-alist' item." (rename-buffer buf) ;; Enable `outline-mode' and `view-mode' for user convenience. (outline-mode) + (declare-function outline-next-visible-heading "outline") + (declare-function outline-previous-visible-heading "outline") + (declare-function outline-toggle-children "outline") + (declare-function outline-toggle-children "outline") (view-mode 1) ;; Add some custom local bindings. (let ((map (make-sparse-keymap))) @@ -1832,6 +1827,8 @@ If it appears in `%s', you should remove it." (when (version< so-long-version "1.0") (remove-hook 'change-major-mode-hook 'so-long-change-major-mode) (require 'advice) + (declare-function ad-find-advice "advice") + (declare-function ad-remove-advice "advice") (when (ad-find-advice 'hack-local-variables 'after 'so-long--file-local-mode) (ad-remove-advice 'hack-local-variables 'after 'so-long--file-local-mode) (ad-activate 'hack-local-variables)) |