Skip to content

Commit afbc0c4

Browse files
author
Maxim Baz
committed
Address @gracjan's comments
1 parent f1a5984 commit afbc0c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

haskell-compat.el

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
;;; Commentary:
2222

2323
;;; Code:
24+
(require 'xref nil 'noerror)
25+
(require 'ring)
2426

2527
;; Missing in Emacs23, stolen from Emacs24's `subr.el'
2628
(unless (fboundp 'process-live-p)
@@ -33,12 +35,11 @@ A process is considered alive if its status is `run', `open',
3335

3436
;; Cross-referencing commands have been replaced since Emacs 25.1.
3537
;; These aliases are required to provide backward compatibility.
36-
(unless (require 'xref nil 'noerror)
38+
(unless (fboundp 'xref-push-marker-stack)
3739
(defalias 'xref-pop-marker-stack 'pop-tag-mark)
3840

3941
(defun xref-push-marker-stack ()
4042
"Add point to the marker stack."
41-
(require 'ring)
4243
(defvar find-tag-marker-ring)
4344

4445
(ring-insert find-tag-marker-ring (point-marker)))

0 commit comments

Comments
 (0)