From: Eric L. <Eri...@ma...> - 2011-10-05 12:48:48
|
Hi, Sorry for the delay in replying. I was not able to reproduce this issue, but the patch seems to continue working fine for me, so I'll include it in the next check-in unless I discover something else along the way. Thanks! Eric -----Original Message----- From: Mark Histed [mailto:mh...@gm...] Sent: Thursday, September 08, 2011 1:58 PM To: David Engster Cc: Eric Ludlam; mat...@li... Subject: Bug report (patch): matlab.el: previous command at shell prompt fix 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 |