From: Eric L. <Eri...@ma...> - 2008-05-15 12:18:02
|
It sounds like some sort of error is preventing the keymap from being reset. Start a fresh emacs, and try: M-x toggle-debug-on-error RET And then start a new Matlab shell. If that doesn't produce a stack trace, then, you will need to actually debug the matlab-shell command to see why it is not binding [up] to the right key. To do that, start a fresh Emacs, then do: M-x load-library RET matlab RET And then open up matlab.el, put the cursor on the line that looks like: (define-key km [up] Around line 4181, and type: M-x edebug-defun RET Followed by C-x x b (that sets a breakpoint.) Now run matlab-shell, and you can press SPC to step through the function, or g to go until a breakpoint. Hopefully this will expose why the keymap is not being set. Eric -----Original Message----- From: mon...@gm... [mailto:mon...@gm...] On Behalf Of Maria McKinley Sent: Monday, May 12, 2008 4:45 PM To: Eric Ludlam Cc: mat...@li... Subject: Re: [Matlab-emacs-discuss] up arrow not working as expected F1 works, and for the up-arrow gives: up runs `previous-line' `previous-line' is an interactive compiled Lisp function -- loaded from "/tmp/buildd/xemacs21-21.4.20/lisp/simple.elc" (previous-line COUNT) Documentation: Move cursor vertically up COUNT lines. If there is no character in the target line exactly over the current column, the cursor is positioned after the character in that line which spans this column, or at the end of the line if it is not long enough. The command M-x set-goal-column can be used to create a semipermanent goal column to which this command always moves. Then it does not try to move vertically. The characters that are moved over may be added to the current selection (i.e. active region) if the Shift key is held down, a motion key is used to invoke this command, and `shifted-motion-keys-select-region' is t; see the documentation for this variable for more details. If you are thinking of using this in a Lisp program, consider using `forward-line' with a negative argument instead. It is usually easier to use and more reliable (no dependence on goal column, etc.). I am using the latest version of matlab.el, compiled. thanks, maria On Mon, May 12, 2008 at 11:16 AM, Eric Ludlam <Eri...@ma...> wrote: > Hi, > > Mlint.el doesn't have anything to do with the shell mode. > > Perhaps you have found an older version of matlab.el? The latest version is on sourceforge in CVS. You can get it from http://matlab-emacs.sf.net. Go to the project page, then "Browse CVS". In CVS, you can download the latest versions. > > Also, it sounds like your Emacs has been configured to use C-h as a backspace key, and not for help. When that happens, use F1 instead. > > Eric > > -----Original Message----- > From: mon...@gm... [mailto:mon...@gm...] On Behalf Of Maria McKinley > Sent: Monday, May 12, 2008 2:07 PM > To: Eric Ludlam > Cc: mat...@li... > Subject: up arrow not working as expected > > It did use to be the default, until that computer died, and I had to > build a new one, and re-install xemacs, matlab, and matlab.el. > > When I do C-h, the cursor moves back a space, and then when I type the > k it just types a k. I am using matlab 2007b, and I did not install > your mlint.el file. Maybe I should have? > > thanks a bunch, > maria > > On Mon, May 12, 2008 at 6:40 AM, Eric Ludlam <Eri...@ma...> wrote: >> That ought to be the default behavior when using the matlab-shell mode. >> Use C-h k to describe the arrow key you have questions about. Perhaps the key is not set to the symbol you expect? >> >> Eric >> >> -----Original Message----- >> From: mat...@li... [mailto:mat...@li...] On Behalf Of Maria McKinley >> Sent: Friday, May 09, 2008 6:28 PM >> To: mat...@li... >> Subject: Re: [Matlab-emacs-discuss] Updates to matlab.el, mlint.el in CVS >> >> Hello all, >> >> At some point in the upgrades I have made to matlab I lost my ability >> to use the up arrow to get prior commands in the matlab buffer. I >> remember having to set this somewhere at some point originally, but >> can't remember where. Can anyone help me? I don't want the up arrow to >> go up in the buffer, but to go back through the command history >> instead. >> >> thanks for any clues, >> maria >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save $100. >> Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> Matlab-emacs-discuss mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save $100. >> Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> Matlab-emacs-discuss mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss >> > > > > -- > Maria Mckinley > Scientific Programmer > Shadlen Lab > Physiology and Biophysics > Box 357290 > University of Washington > (206) 616-3923 > parody@u.washington.edu > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matlab-emacs-discuss mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > -- Maria Mckinley Scientific Programmer Shadlen Lab Physiology and Biophysics Box 357290 University of Washington (206) 616-3923 parody@u.washington.edu |