From dae8c96bfdcf81ff6e39890de2d3d1be788e552f Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Wed, 21 Sep 2022 15:14:50 +1000 Subject: Fixing some compile warnings --- hcel-outline.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hcel-outline.el') diff --git a/hcel-outline.el b/hcel-outline.el index c40ccf1..d485844 100644 --- a/hcel-outline.el +++ b/hcel-outline.el @@ -17,7 +17,9 @@ ;; You should have received a copy of the GNU Affero General Public ;; License along with hcel. If not, see . +(require 'hcel-utils) (require 'hcel-source) +(require 'outline) (defvar hcel-outline-buffer-name "*hcel-outline*") (defvar hcel-outline-indentation 2) @@ -37,9 +39,7 @@ kmap)) (define-derived-mode hcel-outline-mode outline-mode "hcel-outline" "Major mode for browsing Haskell codebases." - (setq-local package-filter nil - module-filter nil - outline-regexp "\\( *\\)." + (setq-local outline-regexp "\\( *\\)." outline-level (lambda () (1+ (/ (length (match-string 1)) hcel-outline-indentation))) buffer-read-only t) @@ -116,7 +116,7 @@ update in the outline mode too." 'package-id package-id 'module-path module 'folded t))) - (hcel-list-modules (print package-id))))))) + (hcel-list-modules package-id)))))) (defun hcel-outline-toggle-children () (interactive) -- cgit v1.2.3