Skip to content

Commit

Permalink
Upgrade to outline-(show|hide)-levels.
Browse files Browse the repository at this point in the history
  • Loading branch information
gracjan committed Feb 28, 2015
1 parent 3b60e8d commit 79e6a91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions haskell-compat.el
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ A process is considered alive if its status is `run', `open',
(unless (fboundp 'outline-show-subtree)
(defalias 'outline-show-subtree 'show-subtree))

(unless (fboundp 'outline-hide-sublevels)
(defalias 'outline-hide-sublevels 'hide-sublevels))

(unless (fboundp 'outline-show-subtree)
(defalias 'outline-show-subtree 'show-subtree))

(provide 'haskell-compat)

;;; haskell-compat.el ends here
4 changes: 2 additions & 2 deletions haskell-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ When MESSAGE is non-nil, display a message with the version."
(interactive)
(with-current-buffer (find-file-read-only (expand-file-name "NEWS" haskell-mode-pkg-base-dir))
(goto-char (point-min))
(hide-sublevels 1)
(outline-hide-sublevels 1)
(outline-next-visible-heading 1)
(show-subtree)))
(outline-show-subtree)))

;; Are we looking at a literate script?
(defvar haskell-literate nil
Expand Down

0 comments on commit 79e6a91

Please sign in to comment.