[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/forth-mode 1ffc174c13 127/153: Pass Makefile variable FORT
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/forth-mode 1ffc174c13 127/153: Pass Makefile variable FORTH as environment variable to build.el |
Date: |
Sat, 29 Jan 2022 08:02:25 -0500 (EST) |
branch: elpa/forth-mode
commit 1ffc174c138a25b19f8f6562e05c184d61e49e43
Author: Helmut Eller <eller.helmut@gmail.com>
Commit: Helmut Eller <eller.helmut@gmail.com>
Pass Makefile variable FORTH as environment variable to build.el
* .travis.yml: Try to ignore errors while installing gforth.el
* Makefile (FORTH): New variable.
* build.el: Setup forth-executable.
* test/tests.el (forth-with-forth): Don't hardcode forth-executable.
---
.travis.yml | 3 ++-
Makefile | 3 ++-
build.el | 1 +
test/tests.el | 9 ++++-----
4 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 65a87de777..fa7696ee63 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,7 +7,8 @@ env:
install:
- sudo add-apt-repository -y ppa:ubuntu-elisp
- sudo apt-get update -y
- - sudo apt-get install emacs23 emacs24 emacs-snapshot gforth
+ - sudo apt-get install emacs23 emacs24 emacs-snapshot
+ - sudo apt-get install gforth || true
script: make EMACS=$EMACS
notifications:
email: lars@nocrew.org
diff --git a/Makefile b/Makefile
index 0e9188dc56..c55a954a0e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,13 @@
EMACS = emacs
EMACS_LOAD = $(EMACS) -Q --batch --load
+FORTH = gforth
SRC = $(wildcard *.el) $(wildcard backend/*.el)
all: forth-mode.elc
forth-mode.elc: $(SRC)
- $(EMACS_LOAD) build.el
+ FORTH=$(FORTH) $(EMACS_LOAD) build.el
doc: forth-mode.info
diff --git a/build.el b/build.el
index ac97befdd8..e627ba8eae 100644
--- a/build.el
+++ b/build.el
@@ -23,6 +23,7 @@
(should-not (string-match "failed" (byte-recompile-directory "." 0))))
(load-file "test/tests.el")
+(setq forth-executable (getenv "FORTH"))
;;; Ensure compile-package is run first.
(ert-run-tests-batch-and-exit '(or compile-package t))
diff --git a/test/tests.el b/test/tests.el
index 3329946032..28f23f2555 100644
--- a/test/tests.el
+++ b/test/tests.el
@@ -99,15 +99,14 @@ The whitespace before and including \"|\" on each line is
removed."
(should (string= after (substring-no-properties (buffer-string))))
(should (= (point) point-after))))))
-(defmacro forth-with-gforth (&rest body)
+(defmacro forth-with-forth (&rest body)
(declare (indent 0))
- `(let* ((forth-executable "gforth")
- (proc (get-buffer-process forth-interaction-buffer)))
+ `(let* ((proc (get-buffer-process forth-interaction-buffer)))
;; FIXME: there should be a better way to do this. Probably a
;; callback function.
(while (not (processp proc))
(run-forth)
- (message "Waiting for gforth to start ...")
+ (message "Waiting for Forth to start ...")
(accept-process-output nil 0.3)
(setq proc (get-buffer-process forth-interaction-buffer)))
(unwind-protect
@@ -344,7 +343,7 @@ The whitespace before and including \"|\" on each line is
removed."
(call-interactively #'comment-dwim))))
(ert-deftest forth-completion-at-point ()
- (forth-with-gforth
+ (forth-with-forth
(forth-should-before/after
"2C→"
"2Constant→"
- [nongnu] elpa/forth-mode 96c20f03f5 128/153: Make completion-at-point test work with Emacs23, (continued)
- [nongnu] elpa/forth-mode 96c20f03f5 128/153: Make completion-at-point test work with Emacs23, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 867922d61e 112/153: Handle string literals more correctly, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 16f359442e 109/153: Add tests for word movement commands, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 45650c28a2 140/153: Check if forth interactive buffer is live, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode ab790fdac8 091/153: Don't kill *forth* buffer when there's a fatal error., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode be0272be3a 076/153: Inhibut Gforth terminal attribute output., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 312f3860aa 124/153: Try to indent (foo), ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 952995d95e 098/153: Add tests for indentation, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 0bbf7992d6 135/153: Workaround pcase bug in Emacs-24.3, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode ee0781f0a8 066/153: Add more functions for evaluating Forth expressions., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 1ffc174c13 127/153: Pass Makefile variable FORTH as environment variable to build.el,
ELPA Syncer <=
- [nongnu] elpa/forth-mode 9b0982e169 149/153: Fix CI, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 52d84393c0 141/153: Remove newlines to fix markdown formatting., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 2d30ca8eaa 142/153: Use add-to-list in installation instructions instead of pushnew., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 8c0e519c57 148/153: Add restart-forth to source window menu, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 5e99586c1e 065/153: Remove prompt from Forth output., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 6bc035fd90 040/153: Fix missing argument to define-key., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode fbd2c51cea 070/153: Initialize pseudo terminal window size, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 38f0ccbfc8 027/153: Rename to run-forth, forth-ensure, and forth-parse.el., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode ccb14b4a47 136/153: Indentation rule for :noname, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode d711fd5200 130/153: Remove tabs in wercker.yml, ELPA Syncer, 2022/01/29