emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master dedd05d283: Fix outline byte compilation warning from previous ch


From: Lars Ingebrigtsen
Subject: master dedd05d283: Fix outline byte compilation warning from previous change
Date: Fri, 29 Jul 2022 07:21:59 -0400 (EDT)

branch: master
commit dedd05d2831d650b07cd9f0c639bdc8eb3bef1e4
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix outline byte compilation warning from previous change
    
    * lisp/outline.el (outline--use-buttons-p): Move around to fix
    byte compilation warning.
---
 lisp/outline.el | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/lisp/outline.el b/lisp/outline.el
index b7935551db..6ec7d95d3a 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).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]