Skip to content

Commit 61f73cf

Browse files
author
github-actions
committed
Update source, eask-core.el
1 parent 2e36d7c commit 61f73cf

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

eask-core.el

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ These commands will first respect the current workspace. If the current
501501
workspace has no valid Eask-file; it will load global workspace instead."
502502
(member (eask-command) '("init/cask" "init/eldev" "init/keg"
503503
"init/source"
504-
"bump" "cat" "keywords"
504+
"bump" "cat" "keywords" "repl"
505505
"generate/ignore" "generate/license"
506506
"test/melpazoid")))
507507
(defun eask-checker-p ()
@@ -2266,6 +2266,23 @@ Argument VERSION is a string represent the version number of this package."
22662266
(eask-info "(Total of %s package%s reinstalled, %s skipped)"
22672267
installed s skipped)))
22682268

2269+
;; ~/lisp/core/repl.el
2270+
(defvar eask--repl-old-pos nil
2271+
"Record the last position to output on the screen for the `ielm' buffer.")
2272+
(defun eask--repl-output ()
2273+
"Print the REPL result to screen."
2274+
(unless eask--repl-old-pos (setq eask--repl-old-pos (point-min)))
2275+
(with-current-buffer "*ielm*"
2276+
(goto-char eask--repl-old-pos)
2277+
(while (not (eobp))
2278+
(let ((line (thing-at-point 'line t)))
2279+
(unless (string-prefix-p "ELISP> " line)
2280+
(eask-print line)))
2281+
(forward-line 1)
2282+
(end-of-line))
2283+
;; Record last output position
2284+
(setq eask--repl-old-pos (point))))
2285+
22692286
;; ~/lisp/core/search.el
22702287
(defun eask--search-packages (query)
22712288
"Filter available packages with QUERY."

0 commit comments

Comments
 (0)