Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Dmitry Gutov
emacs
Commits
206f36b3
Commit
206f36b3
authored
Nov 16, 2019
by
Stefan Monnier
Committed by
Phil Sainty
Nov 18, 2019
Browse files
; * lisp/so-long.el: Use declare-function nearer the code that needs it
parent
bf7934a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
lisp/so-long.el
lisp/so-long.el
+6
-9
No files found.
lisp/so-long.el
View file @
206f36b3
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment