简体   繁体   English

ipython控制台emacs中的上一个项目在控制台提示之前将文本左移

[英]previous item in ipython console emacs shifts text to the left before console prompt

I am using python-mode 6.0.10 with the ipython console. 我在ipython控制台上使用python-mode 6.0.10。 When I try to bring up a previous history item it is shifted to the left preceeding the console input prompt eg 当我尝试调出以前的历史记录项目时,它会在控制台输入提示之前移到左侧,例如

In [51]: (hit Mp to get previous item) plt.plot(u_class)In[51]: (hitting Mp after this yields a "not a command line" error). 在[51]中:(点击Mp获得上一个项目)plt.plot(u_class)In [51] :(在此之后点击Mp会产生“不是命令行”错误)。

What I have to do now is to effectively kill the badly formatted previous item text and yank it in front of the "In[51]:" . 我现在要做的是有效地删除格式错误的先前项目文本,并将其放在“ In [51]:”前面。 After that repeated use of Mp works as desired. 之后,根据需要重复使用Mp。

Is there a way to fix this? 有没有办法解决这个问题? This behaviour happens both on OS X and windows. 在OS X和Windows上都会发生此行为。

Well it seems that the latest build of ipython (2927) in conjuction with python-mode 6.0.1. 好吧,似乎最新版本的ipython(2927)与python-mode 6.0.1结合使用了。 solves this issue. 解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM