Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark various turn-on-haskell-* functions obsolete #774

Merged
merged 1 commit into from
Jul 24, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions haskell-decl-scan.el
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
;; To turn declaration scanning on for all Haskell buffers under the
;; Haskell mode of Moss&Thorn, add this to .emacs:
;;
;; (add-hook 'haskell-mode-hook 'turn-on-haskell-decl-scan)
;; (add-hook 'haskell-mode-hook 'haskell-decl-scan-mode)
;;
;; Otherwise, call `turn-on-haskell-decl-scan'.
;; Otherwise, call `haskell-decl-scan-mode'.
;;
;;
;; Customisation:
Expand Down Expand Up @@ -542,6 +542,9 @@ datatypes) in a Haskell file for the `imenu' package."
"Unconditionally activate `haskell-decl-scan-mode'."
(interactive)
(haskell-decl-scan-mode))
(make-obsolete 'turn-on-haskell-decl-scan
'haskell-decl-scan-mode
"2015-07-23")

;;;###autoload
(define-minor-mode haskell-decl-scan-mode
Expand Down
11 changes: 11 additions & 0 deletions haskell-doc.el
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@
;;; Changelog:

;; $Log: haskell-doc.el,v $
;; Revision 1.31 2015/07/23 10:34:20 ankhers
;; (turn-on-haskell-doc-mode): marked obsolete
;; (turn-on-haskell-doc): marked obsolete
;; other packages have been moving away from (turn-on-haskell-*)
;;
;; Revision 1.30 2009/02/02 21:00:33 monnier
;; (haskell-doc-imported-list): Don't add current buffer
;; to the imported file list if it is not (yet?) visiting a file.
Expand Down Expand Up @@ -1380,9 +1385,15 @@ See variable docstring."

;;;###autoload
(defalias 'turn-on-haskell-doc-mode 'haskell-doc-mode)
(make-obsolete 'turn-on-haskell-doc-mode
'haskell-doc-mode
"2015-07-23")

;;;###autoload
(defalias 'turn-on-haskell-doc 'haskell-doc-mode)
(make-obsolete 'turn-on-haskell-doc
'haskell-doc-mode
"2015-07-23")

(defalias 'turn-off-haskell-doc-mode 'turn-off-haskell-doc)

Expand Down
3 changes: 3 additions & 0 deletions haskell-simple-indent.el
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ Runs `haskell-simple-indent-hook' on activation."
"Turn on function `haskell-simple-indent-mode'."
(interactive)
(haskell-simple-indent-mode))
(make-obsolete 'turn-on-haskell-simple-indent
'haskell-simple-indent-mode
"2015-07-23")

(defun turn-off-haskell-simple-indent ()
"Turn off function `haskell-simple-indent-mode'."
Expand Down