File tree Expand file tree Collapse file tree 3 files changed +11
-16
lines changed Expand file tree Collapse file tree 3 files changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -109,11 +109,12 @@ check-%: tests/%-tests.el
109
109
$(BATCH ) -l " $<" -f ert-run-tests-batch-and-exit;
110
110
111
111
check : $(ELCHECKS ) build-$(EMACS_VERSION )
112
- $(BATCH ) --eval " (when (>= emacs-major-version 24) \
113
- (require 'undercover) \
114
- (undercover \"*.el\" ( :exclude \"haskell-mode-pkg.el\")))" \
115
- -L tests \
116
- $(patsubst %,-l %,$(ELCHECKS)) \
112
+ $(BATCH ) --eval " (when (>= emacs-major-version 24) \
113
+ (require 'undercover) \
114
+ (undercover \"*.el\" \
115
+ ( :exclude \"haskell-mode-pkg.el\" \"haskell-compat.el\")))" \
116
+ -L tests \
117
+ $(patsubst %,-l %,$(ELCHECKS)) \
117
118
-f ert-run-tests-batch-and-exit
118
119
@TAB=$$(echo "\t"); \
119
120
if grep -Hn "[ $${TAB}]\+\$$" *.el; then \
Original file line number Diff line number Diff line change @@ -355,7 +355,9 @@ position with `xref-pop-marker-stack'."
355
355
(haskell-mode-handle-generic-loc loc)
356
356
(call-interactively 'haskell-mode-tag-find ))
357
357
(unless (equal initial-loc (point-marker ))
358
- (xref-push-marker-stack initial-loc))))
358
+ (save-excursion
359
+ (goto-char initial-loc)
360
+ (xref-push-marker-stack )))))
359
361
360
362
;;;### autoload
361
363
(defun haskell-mode-goto-loc ()
Original file line number Diff line number Diff line change 29
29
(eval-when-compile
30
30
(setq byte-compile-warnings '(not cl-functions obsolete)))
31
31
32
- ; ; Missing in Emacs23, stolen from Emacs24's `subr.el'
33
- (unless (fboundp 'process-live-p )
34
- (defun process-live-p (process )
35
- " Returns non-nil if PROCESS is alive.
36
- A process is considered alive if its status is `run' , `open' ,
37
- `listen' , `connect' or `stop' ."
38
- (memq (process-status process)
39
- '(run open listen connect stop))))
40
32
41
33
; ; Cross-referencing commands have been replaced since Emacs 25.1.
42
34
; ; These aliases are required to provide backward compatibility.
43
35
(unless (fboundp 'xref-push-marker-stack )
44
36
(defalias 'xref-pop-marker-stack 'pop-tag-mark )
45
37
46
- (defun xref-push-marker-stack (&optional m )
38
+ (defun xref-push-marker-stack ()
47
39
" Add point to the marker stack."
48
- (ring-insert find-tag-marker-ring (or m ( point-marker ) ))))
40
+ (ring-insert find-tag-marker-ring (point-marker ))))
49
41
50
42
(unless (fboundp 'outline-hide-sublevels )
51
43
(defalias 'outline-hide-sublevels 'hide-sublevels ))
You can’t perform that action at this time.
0 commit comments