Comments (9)
(At least) version 6.0.10 of python-mode installed from ELPA (which starter-kit-python seems to seek out and install if it's not installed) requires you have abbrev-file-name set. This could be the source of your problem. I also use starter-kit-python and don't have the problem that your'e describing, but I have abbrev-file-name set...
This doesn't strike me as an issue with starter kit, but rather (perhaps) an issue with python-mode...
from emacs24-starter-kit.
Philosophically speaking I feel that starter-kit-python should take reasonable measures to work around upstream bugs until they're fixed. Isn't that partially what it means to provide sane defaults?
Practically speaking, where do people usually put their abbrev files? I've never used them before (it's been a while since I've used python-mode and it worked without them last time I tried). Would it be reasonable for starter-kit to just do something like (setq abbrev-file-name "~/.emacs.d/abbrev_defs")
?
from emacs24-starter-kit.
Actually, setting abbrev-file-name
like so doesn't solve the problem anyway. I went through and typed in the parts of starter-kit-python.el that could possibly fail line by line and while it issues the warning about abbrev-file-name when you require python-mode it actually fails with the "Don't know how to make a localized variable an alias" bit when you require ipython. That does sound like an upstream bug, I'll go bug the ipython folks about it.
from emacs24-starter-kit.
Rather than typing things in line-by-line you should be able to execute the code block by block with C-c C-c (which should be somewhat easier).
I believe Emacs just recently switched implementations of python.el, so it may be hairy for a while depending on whether you are using Emacs version 24.1 (old python.el) or 24.3 and up (brand new python.el).
I don't use python myself, but I'm happy to commit any fixes to starter-kit-python.el.
thanks,
from emacs24-starter-kit.
I keep my abbrev_defs file in the same place as I keep my user-host specific init file: I use startup kit on more than one host (I keep it on Dropbox and then mount it on more than one machine), and so it's handy to have some files of init code that's user-host specific (like, for example, abbreviation files, desktop files, and so forth).
And of course you're right -- starter kit probably could benefit by seeking to do what it can to harden itself in the face of potential issues.
from emacs24-starter-kit.
@eschulte Okay, so it seems that python-mode supports using IPython as the inferior python now, and as far as I can tell the IPython mode isn't actively maintained anymore - this is a bug that's been around for a while now. If I just strip out the IPython part from starter-kit-python and have it always use python-mode (which does work) would you commit that?
from emacs24-starter-kit.
Thanks to pajmullaney for isolating the problem. Commit 6750a72 should fix this issue.
from emacs24-starter-kit.
A brief browse about led me to this thread on patching iPython.el (ipython/ipython#1015); there, it seems to suggest that python.el now supports the ipython interpreter, so there's no need to even try using ipython.el any more... I don't know if this is precisely relevant here, or not.
from emacs24-starter-kit.
oh, in that case I'll just remove that section. Sorry @pajmullaney, it looks like I just should have merged your pull request to begin with.
from emacs24-starter-kit.
Related Issues (20)
- How to override buildin CEDET HOT 1
- Auto completion of C-x-C-f HOT 3
- flet is deprecated HOT 1
- espresso mode no longer available, renamed to js-mode HOT 1
- Publish to MELPA? HOT 6
- adding turn-on-flyspell text-mode hook throws an error HOT 1
- How to use starter kit with desktop.el and other init-dependant functions? HOT 1
- why three elisp code in starter-kit.org no run? HOT 2
- head of packaged python-mode needs python-mode installation dir set HOT 1
- starter-kit-lisp.org breaks the SLIME debugger
- custom.el not loading HOT 1
- Autocompletion? HOT 2
- "Package `emacs-24.4' is unavailable" HOT 1
- conflict between `org-src-tab-acts-natively` and yasnippet
- No starter-git-gnus-imap.el was found
- Upgrading org-mode?
- Put files to be loaded in a sub-directory of .emacs.d
- [:Query] on starter-kit.org
- starter-kit-gnus.org contains stuff related to GMail which seems weird
- Common code for personal settings that aren't dependent on usernames or system-names
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emacs24-starter-kit.