diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-07-29 13:21:45 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-07-29 13:21:45 +0200 |
commit | dedd05d2831d650b07cd9f0c639bdc8eb3bef1e4 (patch) | |
tree | a4a026f785427477207cfc2b9888b7600ab5de2a /lisp/outline.el | |
parent | 0728764faeb30c7d03106f4e075a839905f2662e (diff) | |
download | emacs-dedd05d2831d650b07cd9f0c639bdc8eb3bef1e4.tar.gz emacs-dedd05d2831d650b07cd9f0c639bdc8eb3bef1e4.tar.bz2 emacs-dedd05d2831d650b07cd9f0c639bdc8eb3bef1e4.zip |
Fix outline byte compilation warning from previous change
* lisp/outline.el (outline--use-buttons-p): Move around to fix
byte compilation warning.
Diffstat (limited to 'lisp/outline.el')
-rw-r--r-- | lisp/outline.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/outline.el b/lisp/outline.el index b7935551dbb..6ec7d95d3a1 100644 --- a/lisp/outline.el +++ b/lisp/outline.el @@ -438,13 +438,6 @@ outline font-lock faces to those of major mode." (outline--insert-open-button))) (goto-char (match-end 0)))))) -(defun outline--use-buttons-p () - (and outline-minor-mode - outline-minor-mode-use-buttons - (or (eq outline-minor-mode-use-buttons t) - (buffer-match-p outline-minor-mode-use-buttons - (current-buffer))))) - ;;;###autoload (define-minor-mode outline-minor-mode "Toggle Outline minor mode. @@ -482,6 +475,13 @@ See the command `outline-mode' for more information on this mode." ;; When turning off outline mode, get rid of any outline hiding. (outline-show-all))) +(defun outline--use-buttons-p () + (and outline-minor-mode + outline-minor-mode-use-buttons + (or (eq outline-minor-mode-use-buttons t) + (buffer-match-p outline-minor-mode-use-buttons + (current-buffer))))) + (defvar-local outline-heading-alist () "Alist associating a heading for every possible level. Each entry is of the form (HEADING . LEVEL). |