[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/idris-mode 4cbe153905 03/10: Move definition of *-words-of
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/idris-mode 4cbe153905 03/10: Move definition of *-words-of-encouragement to idris-repl.el |
Date: |
Mon, 23 Jan 2023 04:59:56 -0500 (EST) |
branch: elpa/idris-mode
commit 4cbe1539056f51b6832b4a326d24a2d525aa07de
Author: Marek L <nospam.keram@gmail.com>
Commit: Marek L <nospam.keram@gmail.com>
Move definition of *-words-of-encouragement to idris-repl.el
where they are also used.
---
idris-repl.el | 25 +++++++++++++++++++++++++
inferior-idris.el | 27 ---------------------------
2 files changed, 25 insertions(+), 27 deletions(-)
diff --git a/idris-repl.el b/idris-repl.el
index a5511c5e34..09e322a673 100644
--- a/idris-repl.el
+++ b/idris-repl.el
@@ -38,6 +38,31 @@
(eval-when-compile (require 'cl-lib))
+;;; Words of encouragement - strongly inspired by Slime
+(defun idris-user-first-name ()
+ (let ((name (if (string= (user-full-name) "")
+ (user-login-name)
+ (user-full-name))))
+ (string-match "^[^ ]*" name)
+ (capitalize (match-string 0 name))))
+
+(defvar idris-words-of-encouragement
+ `("Let the hacking commence!"
+ "Hacks and glory await!"
+ "Hack and be merry!"
+ ,(format "%s, this could be the start of a beautiful program."
+ (idris-user-first-name))
+ ,(format "%s, this could be the start of a beautiful proof."
+ (idris-user-first-name))
+ "The terms have seized control of the means of computation - a glorious
future awaits!"
+ "It typechecks! Ship it!"
+ "Do you know 'Land of My Fathers'?"
+ "Constructors are red / Types are blue / Your code always works / Because
Idris loves you"))
+
+(defun idris-random-words-of-encouragement ()
+ "Return a random string of encouragement"
+ (nth (random (length idris-words-of-encouragement))
+ idris-words-of-encouragement))
(defvar idris-prompt-string "Idris"
"The prompt shown in the REPL.")
diff --git a/inferior-idris.el b/inferior-idris.el
index a300c72722..b54f52de5e 100644
--- a/inferior-idris.el
+++ b/inferior-idris.el
@@ -32,33 +32,6 @@
(require 'idris-log)
(require 'idris-warnings)
-;;; Words of encouragement - strongly inspired by Slime
-(defun idris-user-first-name ()
- (let ((name (if (string= (user-full-name) "")
- (user-login-name)
- (user-full-name))))
- (string-match "^[^ ]*" name)
- (capitalize (match-string 0 name))))
-
-
-(defvar idris-words-of-encouragement
- `("Let the hacking commence!"
- "Hacks and glory await!"
- "Hack and be merry!"
- ,(format "%s, this could be the start of a beautiful program."
- (idris-user-first-name))
- ,(format "%s, this could be the start of a beautiful proof."
- (idris-user-first-name))
- "The terms have seized control of the means of computation - a glorious
future awaits!"
- "It typechecks! Ship it!"
- "Do you know 'Land of My Fathers'?"
- "Constructors are red / Types are blue / Your code always works / Because
Idris loves you"))
-
-(defun idris-random-words-of-encouragement ()
- "Return a random string of encouragement"
- (nth (random (length idris-words-of-encouragement))
- idris-words-of-encouragement))
-
;;; Process stuff
(defvar idris-process nil
"The Idris process.")
- [nongnu] elpa/idris-mode updated (7a7a468000 -> 3f529d72cd), ELPA Syncer, 2023/01/23
- [nongnu] elpa/idris-mode 7ba6e9b6ab 04/10: Preserve current source code buffer as current when receiving input from Idris compiler, ELPA Syncer, 2023/01/23
- [nongnu] elpa/idris-mode 3cce2336b7 01/10: Allow per buffer and project controlled semantic source highlighting, ELPA Syncer, 2023/01/23
- [nongnu] elpa/idris-mode 4cbe153905 03/10: Move definition of *-words-of-encouragement to idris-repl.el,
ELPA Syncer <=
- [nongnu] elpa/idris-mode 3f529d72cd 10/10: Merge pull request #601 from keram/impro-sem-high, ELPA Syncer, 2023/01/23
- [nongnu] elpa/idris-mode 03e6cdfe41 09/10: Merge pull request #612 from keram/code-impro5, ELPA Syncer, 2023/01/23
- [nongnu] elpa/idris-mode d01b47c972 06/10: Apply minor documentation improvements, ELPA Syncer, 2023/01/23
- [nongnu] elpa/idris-mode 1451b8ffa3 05/10: Improve documentation in inferior-idris.el, ELPA Syncer, 2023/01/23
- [nongnu] elpa/idris-mode 5c6e255b92 07/10: Replace obsolete `interactive-p` function in idris-navigate.el and, ELPA Syncer, 2023/01/23
- [nongnu] elpa/idris-mode cf69a2c921 02/10: Simplify and improve semantic source highlighting code by:, ELPA Syncer, 2023/01/23
- [nongnu] elpa/idris-mode 86ec653651 08/10: Improve documentation for idris-log.el, ELPA Syncer, 2023/01/23