|
From: Maria M. <parody@u.washington.edu> - 2008-05-15 19:52:28
|
Sorry for the multiple emails, but it just occured to me that we are
using an xemacs init.el that is a bit large and old. Maybe there is
something in there that interferes when using newer versions of
xemacs? Is there a sample init.el matlab file that I could test with?
Also, I noticed a font error in the terminal after I had quit out of xemacs:
Warning: Missing charsets in String to FontSet conversion
thanks,
maria
On Thu, May 15, 2008 at 12:36 PM, Maria McKinley
<parody@u.washington.edu> wrote:
> It just occured to me that usually we start matlab with start-matlab,
> rather than matlab-shell, so that is why this time the history sort of
> works. But even using matlab-shell there is definitely something wrong
> with the way the up arrow functions. In general, what is the
> difference between the two ways of starting up matlab?
>
> thanks,
> maria
>
> On Thu, May 15, 2008 at 11:34 AM, Maria McKinley
> <parody@u.washington.edu> wrote:
>> This is the only thing that showed up:
>>
>> if usejava('jvm'),
>> com.mathworks.services.Prefs.setBooleanPref('EditorGraphicalDebugging',
>> false); end
>>
>> Does this mean anything to you?
>>
>> Interestingly, the history part then worked, sort of. I typed ls, and
>> with the up-arrow I got ls *.wav. The second time I tried, I got the
>> correct history, but the command was still in front of the prompt:
>>>> ls
>> ls
>> :2eDS_Store h207 neubeh545 startupjosh.m
>> data lab_code psychDAQ startupjosh.m~
>> dots maria rieke startup.m
>> DownloadPsychtoolbox.m matlab_prog.pdf scratch.m startup.m~
>> examples-tutorials misc scratch.m~ #test.m#
>>
>>>> if usejava('jvm'), com.mathworks.services.Prefs.setBooleanPref('EditorGraphicalDebugging', false); end
>> ls *.wav>>
>>
>>>> who
>> who
>>
>> Your variables are:
>>
>> ans
>>
>> who>> >>
>>
>> When I stepped through, I got a line about the keymap
>> matlab-shell-mode-map size on the line in question, but nothing that
>> looked unusual. This doesn't seem like much to go on, but maybe it
>> means something to you...
>>
>> thanks,
>> maria
>>
>> On Thu, May 15, 2008 at 5:17 AM, Eric Ludlam <Eri...@ma...> wrote:
>>> 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
>>>
>>
>>
>>
>> --
>> Maria Mckinley
>> Scientific Programmer
>> Shadlen Lab
>> Physiology and Biophysics
>> Box 357290
>> University of Washington
>> (206) 616-3923
>> parody@u.washington.edu
>>
>
>
>
> --
> Maria Mckinley
> Scientific Programmer
> Shadlen Lab
> Physiology and Biophysics
> Box 357290
> University of Washington
> (206) 616-3923
> parody@u.washington.edu
>
--
Maria Mckinley
Scientific Programmer
Shadlen Lab
Physiology and Biophysics
Box 357290
University of Washington
(206) 616-3923
parody@u.washington.edu
--
Maria Mckinley
Scientific Programmer
Shadlen Lab
Physiology and Biophysics
Box 357290
University of Washington
(206) 616-3923
parody@u.washington.edu
|