[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode ea46850 207/385: bugfix for compile vs ru
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode ea46850 207/385: bugfix for compile vs runtime loading |
Date: |
Tue, 5 Oct 2021 23:59:32 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit ea4685006de08491a93ec1526482ae7d1038f6e7
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
bugfix for compile vs runtime loading
---
haskell-tng-contrib.el | 8 ++++++--
haskell-tng-util.el | 6 ------
test/haskell-tng-testutils.el | 5 +++--
3 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/haskell-tng-contrib.el b/haskell-tng-contrib.el
index 681b088..8976251 100644
--- a/haskell-tng-contrib.el
+++ b/haskell-tng-contrib.el
@@ -42,12 +42,15 @@
;;;###autoload
(progn
+ ;; TODO split into separate files that require their dependency
+
(when (boundp yas-minor-mode)
(add-to-list
'yas-snippet-dirs
(expand-file-name
"snippets"
- (haskell-tng--util-this-lisp-directory)))
+ (when load-file-name
+ (file-name-directory load-file-name))))
(yas-reload-all nil t))
(when (fboundp 'sp-local-pair)
@@ -60,9 +63,10 @@
:post-handlers '(("| " "SPC")))))
(add-hook
- 'haskell-tng-mode
+ 'haskell-tng-mode-hook
(lambda ()
(when (boundp projectile-mode)
+ ;; TODO fix the haskell-stack detection to also include cabal
(setq-local projectile-tags-command "fast-tags -Re
--exclude=dist-newstyle .")))
))
diff --git a/haskell-tng-util.el b/haskell-tng-util.el
index b8fad4c..4155bd7 100644
--- a/haskell-tng-util.el
+++ b/haskell-tng-util.el
@@ -71,11 +71,5 @@ and taking a regexp."
(while (not (setq ,res ,test)) ,@body)
,res)))
-(defmacro haskell-tng--util-this-lisp-directory ()
- (expand-file-name
- (if load-file-name
- (file-name-directory load-file-name)
- default-directory)))
-
(provide 'haskell-tng-util)
;;; haskell-tng-util.el ends here
diff --git a/test/haskell-tng-testutils.el b/test/haskell-tng-testutils.el
index 6d16a44..7bb5994 100644
--- a/test/haskell-tng-testutils.el
+++ b/test/haskell-tng-testutils.el
@@ -38,10 +38,11 @@ Alternatively, if MODE is a buffer object, run TO-STRING
there instead."
(write-region got nil golden)
nil))))
-(defun testdata (file)
+(defmacro testdata (file)
(expand-file-name
file
- (haskell-tng--util-this-lisp-directory)))
+ (when load-file-name
+ (file-name-directory load-file-name))))
(defun is-comment-at-point ()
;; this could be sped up by storing all comment regions in an alist
- [nongnu] elpa/haskell-tng-mode 1310276 346/385: planning, (continued)
- [nongnu] elpa/haskell-tng-mode 1310276 346/385: planning, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 09018bc 352/385: support hsinspect beta releases, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e73bc19 335/385: jump-to-definition, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 2f2c500 354/385: defining a test spec, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 232baf8 362/385: less import suggestions, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ab53433 375/385: reprioritise, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 2b9c6bf 369/385: support dev hsinspect, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 68d1d7c 371/385: bump hsinspect, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 6a31b59 101/385: document the plan for indentation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 9ec4841 104/385: meh indentation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ea46850 207/385: bugfix for compile vs runtime loading,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode 63b1c8d 250/385: flip the default newline / comment behaviour, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 83458d6 253/385: reverting newline comment behaviour, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode f59c9ee 259/385: fix indentation of short type signatures, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode dbbe488 265/385: abbrevs don't fire in comments / strings, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode f56bd2a 256/385: prefer optimised hsinspect builds, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e84970b 263/385: rename -contrib to -extra, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode af443a1 269/385: fix a name clash in the tests, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode cce466c 271/385: hsinspect now has a compiler plugin, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode d0cd9b9 252/385: documenting an annoying indentation bug, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode afbac7c 300/385: missing import, ELPA Syncer, 2021/10/06