I revered to matlab-mode-20180125.1810 from matlab-mode-20180928.1526 and
now it works.  I setup my Emacs in following manner.

(setq package-load-list '((matlab-mode "20180125.1810") all))

I also found that in an emergency case, following works.

(setq octave-comment-char ?%)
(add-to-list 'auto-mode-alist '("\\.m\\'" . octave-mode))

Tak


> On Aug 15, 2019, at 17:35 , Tak Kunihiro <tak.kunih...@gmail.com> wrote:
> 
> I found that Emacs freezes on following block. Do you have idea?
> 
> matlab.el:1167: (defun matlab-mode ()
> ...
> matlab.el:1275:   (setq font-lock-defaults '((matlab-font-lock-keywords
> matlab.el:1276:                   matlab-gaudy-font-lock-keywords
> matlab.el:1277:                   matlab-really-gaudy-font-lock-keywords
> matlab.el:1278:                   )
> matlab.el:1279:                  t ; do not do string/comment highlighting
> matlab.el:1280:                  nil ; keywords are case sensitive.
> matlab.el:1281:                  ;; This puts _ as a word constituent,
> matlab.el:1282:                  ;; simplifying our keywords significantly
> matlab.el:1283:                  ((?_ . "w"))))
> 
> 
> From: Tak Kunihiro <tak.kunih...@gmail.com>
> Subject: Emacs hangs with a line
> Date: Sat, 10 Aug 2019 06:09:46 +0900 (JST)
> 
>> I use matlab.el for 10 years. Thank you the maintenance. I embed data
>> in a script using arrays and cell arrays.
>> 
>> Today I found that when buffer is with a line, emacs hangs.  Emacs
>> hangs on matlab-mode but not on text-mode.  The line is shown below as
>> line A.  I tried to minimize the line that is OK and it is shown as
>> line B below.
>> 
>> Could you spot a problem and fix it?
>> 
>> Tak
>> 
>> * environment
>> 
>> - matlab-mode-20180928.1526 from melpa
>> - matlab-mode-version "3.3.6"
>> - Emacs 26.2 on Mac and Windows
>> 
>> * Line A (On this message, a line may be divided in several lines.)
>> 
>> % remark = {'1.86 29.2 0.001','1.86 29.2 0.001','1.86 29.2 0.001','1.86 29.2 
>> 0.001','1.86 29.2 0.001','1.86 29.2 0.001','1.86 29.2 0.001','1.86 29.2 
>> 0.001','1.86 29.2 
>> 0.001','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','1.86
>>  29.2 0.001','1.86 29.2 0.001','1.86 29.2 0.001','1.86 29.2 0.001','1.86 
>> 29.2 0.001','1.86 29.2 0.001','1.86 29.2 0.001','1.86 29.2 0.001','1.86 29.2 
>> 0.001','1.86 29.2 0.001','1.86 29.2 0.001','1.86 29.2 0.001','1.86 29.2 
>> 0.001','1.86 29.2 0.001','1.86 29.2 0.001','1.86 29.2 0.001','1.86 29.2 
>> 0.001','1.86 29.2 0.001','1.86 29.2 0.001'};
>> 
>> * line B (On this message, a line may be divided in several lines.)
>> 
>> % remark = {'1.86 29.2 0.001','1.86 29.2 0.001','1.86 29.2 0.001','1.86 29.2 
>> 0.001','1.86 29.2 0.001','1.86 29.2 0.001','1.86 29.2 0.001','1.86 29.2 
>> 0.001','1.86 29.2 
>> 0.001','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','1.86
>>  2



_______________________________________________
Matlab-emacs-discuss mailing list
Matlab-emacs-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss

Reply via email to