Timeline for How to solve character encoding issue with Emacs, mathematica.el, and Mathematica 10?
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 19, 2023 at 12:05 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jan 20, 2023 at 11:24 | answer | added | Aleksandr Popolitov | timeline score: 1 | |
Dec 8, 2014 at 5:07 | comment | added | Joe | Well, it turned out that it is not so easy to eliminate the echoed input with a regex without also sometimes messing up the output due to the way results can vary. I decided I can live with the echoed input, just not the ^M characters and so the revised gist suffices for me. | |
Dec 7, 2014 at 0:09 | comment | added | Joe | The gist linked in the previous comment is not quite perfect. I'll update when I get it fully situated. I am too aggressively trimming the echoed input and it is removing some of the output, e.g., the numerator of a fraction. This is easy to fix. | |
Dec 6, 2014 at 23:56 | comment | added | Joe | I was able to get my desired outcome: no ^M characters and no input echoing by hacking on mathematica-filter in two places. For those interested, here is a link to the diffs. | |
Dec 6, 2014 at 22:46 | comment | added | Joe | I'd like to solve that fundamental issue of having zsh not echo input to output in the Emacs->zsh->Mathematica->Emacs communication, but I'll use this hack until someone who knows better comes along and shows me a better way. | |
Dec 6, 2014 at 22:45 | comment | added | Joe | I was able to find an appropriate place to hack in a function called mathematica-filter which gets set as the process filter for the mathematica process output. There I inserted a replace-regexp-in-string call to get rid of all \r characters on the output string. That works. Now I just will tweak things a bit: it currently echoes the input to output (along with the result) and I may not want that. Typically that is due to the underlying shell echoing (since Mathematica is executing in the shell, zsh). ... | |
Dec 6, 2014 at 18:18 | comment | added | Joe | Thanks @george2079, I am trying the suggestions mentioned at the link you provided. That was a good find. My Emacs shell doesn't have this problem, but since mathematica.el uses the command line this may be related. I especially think so since the input command gets echoed which is a symptom mentioned in the linked help page. So far the suggestions haven't solved the problem, but I may need to adjust a few things for the fact that my default shell is zsh, so I am working on that as a possibility amongst other things. | |
Dec 6, 2014 at 13:25 | comment | added | george2079 | possibly relevant gnu.org/software/emacs/manual/html_node/efaq/… also you might find more emacs experts on stackoverflow.com | |
Dec 6, 2014 at 10:41 | history | tweeted | twitter.com/#!/StackMma/status/541180508240367616 | ||
Dec 6, 2014 at 6:00 | review | First posts | |||
Dec 6, 2014 at 7:08 | |||||
Dec 6, 2014 at 5:59 | history | asked | Joe | CC BY-SA 3.0 |