From: Liu, J. <jia...@gm...> - 2020-11-20 16:53:54
|
Matalb command shell becomes slow when there are too many lines. Is it possible to clear the buffer to speed up? I don't want to kill the buffer because it will lose the command history. Thanks Jiaen |
From: Karthik C. <kar...@gm...> - 2020-11-20 19:49:51
|
Hi Jiaen, Matlab-shell is derived from comint-mode, so you can use "C-c M-o" to clear the buffer. This runs `comint-clear'. You do not lose your history. However comint should not be slowing down in the first place. It stays snappy for me unless I accidentally dump several dozen megabytes of text into buffer by forgetting a semicolon at the end of the command. Karthik "Liu, Jiaen" <jia...@gm...> writes: > Matalb command shell becomes slow when there are too many lines. Is it > possible to clear the buffer to speed up? I don't want to kill the buffer > because it will lose the command history. > Thanks > > Jiaen > _______________________________________________ > Matlab-emacs-discuss mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss |
From: Liu, J. <jia...@gm...> - 2020-11-20 22:22:58
|
Hi Karthik Thanks a lot! It's really helpful to know this function. JIaen On Fri, Nov 20, 2020 at 2:49 PM Karthik Chikmagalur < kar...@gm...> wrote: > Hi Jiaen, > > Matlab-shell is derived from comint-mode, so you can use "C-c M-o" to > clear the buffer. This runs `comint-clear'. You do not lose your history. > > However comint should not be slowing down in the first place. It stays > snappy for me unless I accidentally dump several dozen megabytes of text > into buffer by forgetting a semicolon at the end of the command. > > Karthik > > "Liu, Jiaen" <jia...@gm...> writes: > > > Matalb command shell becomes slow when there are too many lines. Is it > > possible to clear the buffer to speed up? I don't want to kill the buffer > > because it will lose the command history. > > Thanks > > > > Jiaen > > _______________________________________________ > > Matlab-emacs-discuss mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > |
From: John C. <ci...@ma...> - 2020-11-20 20:20:15
|
Hi Could it be due to very long lines (not the number of lines)? Do you have an example, maybe a MATLAB script I could run to take a look at the issue? Thanks On Nov 20, 2020, at 2:50 PM, Karthik Chikmagalur <kar...@gm...> wrote: Hi Jiaen, Matlab-shell is derived from comint-mode, so you can use "C-c M-o" to clear the buffer. This runs `comint-clear'. You do not lose your history. However comint should not be slowing down in the first place. It stays snappy for me unless I accidentally dump several dozen megabytes of text into buffer by forgetting a semicolon at the end of the command. Karthik "Liu, Jiaen" <jia...@gm...> writes: > Matalb command shell becomes slow when there are too many lines. Is it > possible to clear the buffer to speed up? I don't want to kill the buffer > because it will lose the command history. > Thanks > > Jiaen > _______________________________________________ > Matlab-emacs-discuss mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss<https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss> _______________________________________________ Matlab-emacs-discuss mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss<https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss> |
From: Liu, J. <jia...@gm...> - 2020-11-20 22:29:15
|
What Karthik describes about dumping too much text in the shell happened to me. Maybe it better describes the issue. I'm not sure if a very long line can cause the slowdown. Unfortunately I don't have a concrete example to test this. Thanks, John. Jiaen On Fri, Nov 20, 2020 at 2:59 PM John Ciolfi <ci...@ma...> wrote: > Hi > > Could it be due to very long lines (not the number of lines)? Do you have > an example, maybe a MATLAB script I could run to take a look at the issue? > > Thanks > > On Nov 20, 2020, at 2:50 PM, Karthik Chikmagalur < > kar...@gm...> wrote: > > Hi Jiaen, > > Matlab-shell is derived from comint-mode, so you can use "C-c M-o" to > clear the buffer. This runs `comint-clear'. You do not lose your history. > > However comint should not be slowing down in the first place. It stays > snappy for me unless I accidentally dump several dozen megabytes of text > into buffer by forgetting a semicolon at the end of the command. > > Karthik > > "Liu, Jiaen" <jia...@gm...> writes: > > > Matalb command shell becomes slow when there are too many lines. Is it > > possible to clear the buffer to speed up? I don't want to kill the buffer > > because it will lose the command history. > > Thanks > > > > Jiaen > > _______________________________________________ > > Matlab-emacs-discuss mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > > > _______________________________________________ > Matlab-emacs-discuss mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > > |
From: Roman G. <rom...@gm...> - 2020-11-22 18:10:36
|
I have also experienced slowdown with extremely long shell buffers (hundreds of thousands of lines), which I managed to address by disabling undo. I added the following to my init file to do so automatically: (add-hook 'matlab-shell-mode-hook 'buffer-disable-undo) This does not affect command history. Cheers, Roman On Fri, Nov 20, 2020 at 4:29 PM Liu, Jiaen <jia...@gm...> wrote: > > What Karthik describes about dumping too much text in the shell happened to me. Maybe it better describes the issue. I'm not sure if a very long line can cause the slowdown. Unfortunately I don't have a concrete example to test this. > Thanks, John. > Jiaen > > On Fri, Nov 20, 2020 at 2:59 PM John Ciolfi <ci...@ma...> wrote: >> >> Hi >> >> Could it be due to very long lines (not the number of lines)? Do you have an example, maybe a MATLAB script I could run to take a look at the issue? >> >> Thanks >> >> On Nov 20, 2020, at 2:50 PM, Karthik Chikmagalur <kar...@gm...> wrote: >> >> Hi Jiaen, >> >> Matlab-shell is derived from comint-mode, so you can use "C-c M-o" to clear the buffer. This runs `comint-clear'. You do not lose your history. >> >> However comint should not be slowing down in the first place. It stays snappy for me unless I accidentally dump several dozen megabytes of text into buffer by forgetting a semicolon at the end of the command. >> >> Karthik >> >> "Liu, Jiaen" <jia...@gm...> writes: >> >> > Matalb command shell becomes slow when there are too many lines. Is it >> > possible to clear the buffer to speed up? I don't want to kill the buffer >> > because it will lose the command history. >> > Thanks >> > >> > Jiaen >> > _______________________________________________ >> > Matlab-emacs-discuss mailing list >> > Mat...@li... >> > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss >> >> >> _______________________________________________ >> Matlab-emacs-discuss mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > > _______________________________________________ > Matlab-emacs-discuss mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss |
From: Liu, J. <jia...@gm...> - 2020-11-23 00:41:15
|
Thanks Roman. Have you experienced slow down after clearing the command buffer? I haven’t tested this since I learned the clearing trick. Jiaen On Sun, Nov 22, 2020 at 1:10 PM Roman Garnett <rom...@gm...> wrote: > I have also experienced slowdown with extremely long shell buffers > (hundreds of thousands of lines), which I managed to address by > disabling undo. I added the following to my init file to do so > automatically: > > (add-hook 'matlab-shell-mode-hook 'buffer-disable-undo) > > This does not affect command history. > > Cheers, > Roman > > On Fri, Nov 20, 2020 at 4:29 PM Liu, Jiaen <jia...@gm...> wrote: > > > > What Karthik describes about dumping too much text in the shell happened > to me. Maybe it better describes the issue. I'm not sure if a very long > line can cause the slowdown. Unfortunately I don't have a concrete example > to test this. > > Thanks, John. > > Jiaen > > > > On Fri, Nov 20, 2020 at 2:59 PM John Ciolfi <ci...@ma...> > wrote: > >> > >> Hi > >> > >> Could it be due to very long lines (not the number of lines)? Do you > have an example, maybe a MATLAB script I could run to take a look at the > issue? > >> > >> Thanks > >> > >> On Nov 20, 2020, at 2:50 PM, Karthik Chikmagalur < > kar...@gm...> wrote: > >> > >> Hi Jiaen, > >> > >> Matlab-shell is derived from comint-mode, so you can use "C-c M-o" to > clear the buffer. This runs `comint-clear'. You do not lose your history. > >> > >> However comint should not be slowing down in the first place. It stays > snappy for me unless I accidentally dump several dozen megabytes of text > into buffer by forgetting a semicolon at the end of the command. > >> > >> Karthik > >> > >> "Liu, Jiaen" <jia...@gm...> writes: > >> > >> > Matalb command shell becomes slow when there are too many lines. Is it > >> > possible to clear the buffer to speed up? I don't want to kill the > buffer > >> > because it will lose the command history. > >> > Thanks > >> > > >> > Jiaen > >> > _______________________________________________ > >> > Matlab-emacs-discuss mailing list > >> > Mat...@li... > >> > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > >> > >> > >> _______________________________________________ > >> Matlab-emacs-discuss mailing list > >> Mat...@li... > >> https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > > > > _______________________________________________ > > Matlab-emacs-discuss mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > -- Jiaen -------------- Sent from my mobile device. |