21 May 2013 18:31
feature missed in geiser-repl
Slime REPL has a feature that if you put the point over the old repl input then hit enter, the old repl input will be yanked into the repl again to the end of the comint buffer. I find it is very convenient way of going through the repl input history besides cycling through the history using keybindings M-n and M-p. How about adding this feature to geiser-repl? --8<---------------cut here---------------(Continue reading)start------------->8--- From 31407eac6011bd6224699b95d4c9e723b83e67f2 Mon Sep 17 00:00:00 2001 From: Darren Hoo <darren.hoo@...> Date: Tue, 21 May 2013 15:01:11 +0800 Subject: [PATCH] yank input if point is over history input --- elisp/geiser-repl.el | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el index 1d1b317..87c1588 100644 --- a/elisp/geiser-repl.el +++ b/elisp/geiser-repl.el <at> <at> -525,15 +525,28 <at> <at> module command as a string") (narrow-to-region (geiser-repl--last-prompt-end) (point-max)) (geiser-syntax--nesting-level))) +(defun geiser-repl--mark-input-bounds (beg end) + (add-text-properties beg end '(field t))) + +(defun geiser-repl--is-history-input ()
RSS Feed