|
From: John C. <ci...@ma...> - 2023-04-25 19:45:34
|
I took a quick look. matlab-fill-comment-line assumes that it is filling a comment only line and not a trailing comment. I'm not as familiar with the code as Eric. Eric would you have a chance to look at this?
Also, I've noticed that M-q doesn't work on some comments. For example, given the following, M-q on the first comment results in mixing the comment with the function line. Whereas M-q on the second comment works as expected.
function f = foo
% 1. a long comment comment comment comment comment comment comment comment comment comment comment comment comment comment comment comment comment
f = 1;
% 2. a long comment comment comment comment comment comment comment comment comment comment comment comment comment comment comment comment comment
f = f + 1;
end
Thanks,
John
________________________________
From: Uwe Brauer <ou...@ma...>
Sent: Monday, April 24, 2023 3:03 PM
To: mat...@li... <mat...@li...>
Subject: [Matlab-emacs-discuss] filling of very long inline comments
Hi
I am currently reading code provided by my students who use the native matlab editor.
So I see lines like this
while diff > TOL && k <= nmax %por una parte se condiciona al while con un valor de tolerancia para el error diff, error de una iteración (de la iteración simple), y, por otra parte, se toma un numero máximo de iteraciones porque puede perfectamente el error de iteración no ser menor que la tolerancia, provocando un bucle infinito
Which is simply terrible, so I tried to use (matlab-fill-comment-line)
(because matlab fill paragraph ended up deleting the "%" in several
lines.
However the matlab-fill-comment-line gave me an error I attach:
I am running the latest master.
Any idea what is wrong here?
Regards
Uwe
--
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/<https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view>
|