![]() Towards the end of the function, we have these lines (when (or (not (string-match "\n$" string)) I was able to trace this issue to the function python-shell-send-string in python.el (do C-h f python-shell-send-string RET, you will see a link to python.el in the help buffer, click on it and emacs will take you to definition of function). The issue I guess is that the python-mode is NOT adding the final newline (which triggers the evaluation) to the string sent to command interpreter. But then I highlight the final line print spam andĪfter doing C-c C-r, if you switch to the python repl and press enter you will actually get the output printed. The python code spam = "spam "ĭo not produce any output that is why you see the blank "In :" lines. ![]() What you are seeing is a side effect of how code is evaluated in comint-mode (this is a general mode on top of which python-mode's repl is written).īasically it sends the string you selected to the inferior process as it is (including the newlines etc), then it receives the output from the inferior process and prints it in the emacs comint buffer (the repl you opened in emacs). Here is what I have been able to understand about the issue. The ^C^R (eval region) command may generate a lot of blank "In :" Even when the active region is one line, I often see 15 blank "In :" lines or more. Odd, no? Things get much worse for longer files. But then I highlight the final line print spam and then type ^C^R. Then I type ^C^P (start interpreter), return back to the test.py buffer, and type ^C^C (eval buffer). To reproduce the problem in aquamacs, I make an file called test.py and place the following code in it: spam = "spam " Here's one symptom that I'm able to reproduce: the ^C^R (eval region) command may generate a lot of blank "In :" from to the interpreter. I'm not a lisp expert, so any help with this would be greatly appreciated. emacs file are apparently for iPython 0.11, not 1.2.0, and that may be the source of the problems. emacs file, but I'm still seeing some weird behavior. In particular, I added the settings given in the top answer here to my. I was able to get iPython basically working using the instructions in python.el. Is it assumed that Aquamacs.app is directly in /Applications or is it fully relocatable? I prefer storing it, with associated documentation, in a sub-directory of /Applications.I'm trying to make Aquamacs 3.0a GNU Emacs 24.3.50.2 work with iPython 1.2.0 as the interpreter. I just downloaded and re-installed Aquamacs.app and still have the same problem. The correct path is shown in Terminal.app so the system is using the /etc/paths.d/TeX file which contains /Library/TeX/texbin. For some reason it doesn't seem to pick up the changed PATH variable. > I will make sure that Aquamacs will also pick up /Library/TeX/texbin, although generally, the Path setting from the default login shell is imported. > On the other hand, I gather this does not work for Herb…? Herb, which one are you using, Aquamacs or Emacs.app? Can you please keep the other lists in the CC? I am going to paste your response below. My response was to tell Aquatics picks my PATH just fine. > I think Herb is interested in formulating some kind of advise for MacTeX users. > Oh, that’s because you are responding to me, and I was responding to Herb, who > From your message, I cannot see your original problem. > It appears that newer MacTeX installations might install into a different path, or at least no longer link /usr/texbin (which may be a protected directory under El Capitan). I haven’t used Emacs.app in a long time, so I could not remember about that one. > Emacs.app will not pick up your PATH settings, but Aquamacs does so. > On Oct 29, 2015, at 6:19 PM, Ettore Aldrovandi wrote: Next message (by thread): Aquamacs
0 Comments
Leave a Reply. |