Now, the comment lines are always aligned with the preceding lines when I use comment-region.Įdit: I guess it is useful to add this link to my configuration, for the overrides I did to make octave-mode behave more pleasantly while editing MATLAB code. ![]() Since that functionality was not desirable to me from the very beginning, I am pleased with this result. For example: 1 function foo bar(baz) do some stuff end More information here. If you want to prevent this absurd confusion, just add anything above your code. Which I guess removed all that functionality tied to different number of comment characters. For those who end up here, Octave assumes any code starting with the function keyword is a so-called 'function file' that must only be called from a 'script file'. "A function for `smie-indent-functions' (which see)." ![]() In /lisp/progmodes/octave.el (the file was zipped, I had to unzip it to view the source), I redefined octave-indent-comment which originally goes like this: (defun octave-indent-comment () Anyway, here is the first example translated to R. Is anyone can give me some advices or > the rsenc.m and rsdec.m function. But i > didnt find the programs for rsenc.m and rsdec.m function in > 'Communications Toolbox for Octave'. So I can get the correct CCSDS code generator polynomial. ![]() Please note that there is already the sophisticated function princomp in R, so you shouldn't really do it by yourself. program of rsgenpoly function downloaded in 'Communications Toolbox for > Octave'. I achieved what I wanted by overriding some definitions from the original major mode. If you don't like GNU Octave for some reasons, you can also use R for the above examples.
0 Comments
Leave a Reply. |