Skip to main content
9 events
when toggle format what by license comment
Oct 20, 2022 at 13:48 comment added NickD I must admit that I didn't try it out, so I could very well be wrong. I'll have to take a look at the bug report and the fix and try it out in this particular case, but one thing that I just noticed that argues for @dalanicolai's point of view is that the error message in this case is different from the one in the question I linked to.
Oct 20, 2022 at 13:09 history edited dalanicolai CC BY-SA 4.0
added 359 characters in body
Oct 20, 2022 at 12:55 comment added dalanicolai I could not easily find the bug report, but I have now found that it is just mentioned in that commit message. So finally here also is the original bug report.
Oct 20, 2022 at 12:51 comment added dalanicolai @NickD It probably really is a replace-string-in-region, as I have edebugged the function with a 'simple testcase', i.e. using (replace-string-in-region "," " &" 1 22) in a buffer containing only the 'example matrix', where the bug was easy to see. Furthermore (I forgot to mention), when simply using the latest version of that function, then the latex-matrixify function produces the correct result (except for some misplaced newlines). Finally, here is a link to the fix...
Oct 20, 2022 at 11:40 comment added NickD It's probably NOT a replace-string-in-region bug: see my comment.
Oct 20, 2022 at 7:48 comment added dalanicolai Actually, it looks like the function already has been fixed on 2022-09-11, so you should probably just obtain that fixed function from the latest Emacs source code.
Oct 20, 2022 at 7:42 history edited dalanicolai CC BY-SA 4.0
added 7 characters in body
Oct 20, 2022 at 7:32 comment added dalanicolai It looks like the replace-string-in-region function has been changed a few times in the last year(s), so I am not sure how exactly the version you are using looks like. I guess the explanation is relevant for most versions, but it would probably be wise to create the patch against the latest version (or just report the bug otherwise).
Oct 20, 2022 at 7:25 history answered dalanicolai CC BY-SA 4.0