From: Mark H. <mh...@gm...> - 2011-10-05 14:18:15
|
Thanks for the reply. I've been testing this over the past few weeks, and the issue still pops up sporadically for me, so you should not include the patch below. I think it may be related to using Aquamacs on Mac OS X. I've switched to using a more stock Emacs: 23.3 from http://emacsformacosx.com/builds. So far I haven't seen it, but if recurs I will look into it and let you know. Aquamacs seems to have multiple issues with matlab-shell, for anyone else that was thinking of using it. Best, Mark On Oct 5, 2011, at 8:48 AM, Eric Ludlam wrote: > 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 > > |