From: Mark H. <mh...@gm...> - 2011-09-08 17:58:38
|
Hi, Using the latest CVS matlab.el, and Matlab 2011a, pressing M-p or the up arrow does not recall previous history. Status line shows "History item 1", but the previous command gets inserted before the ">>" prompt and pressing RET gives an error like "Unknown operator >>" from Matlab. This patch fixes it. But it is unlikely to be the best solution. Best Mark Subject: [PATCH] kludgy fix to make previous command history work at shell prompt --- matlab.el | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/matlab.el b/matlab.el index fee2bb9..d928458 100644 --- a/matlab.el +++ b/matlab.el @@ -4729,6 +4729,7 @@ end\n" (defun matlab-shell-previous-matching-input-from-input (n) "Get the Nth previous matching input from for the command line." (interactive "p") + (end-of-line) (if (comint-after-pmark-p) (if (memq last-command '(matlab-shell-previous-matching-input-from-input matlab-shell-next-matching-input-from-input)) -- 1.7.0.3 |