Code Monkey home page Code Monkey logo

python-el's Introduction

INTRODUCTION

python.el is a decent python mode for emacs developed by Dave Love that had been part of GNU emacs for quite a few years. It provides tight integration with standard elisp packages such as comint.el, compile.el, info-look.el and gud.el. Many people have been using it for authoring python. They provide feedback and bug fixes to ensure it works reliably in all major platforms.

As of this writing (2012/08/01), upstream has replaced python.el with another implementation that provides more or less the same feature set. Being a happy user of Dave's python.el, I extracted python.el from emacs trunk keeping the revision history and placed it here for the convenience of people so that they don't have to fix something that ain't broken.

INSTALL

File emacs.py, emacs2.py and emacs3.py should be placed in PYTHONPATH or data-directory.

If you place these files in a different directory, you need something like this (remember to replace MY_EMACSPY_DIR with the real path):

(defadvice run-python (around python-emacspy-directory activate)
  (let ((process-environment (cons (concat "PYTHONPATH=" "MY_EMACSPY_DIR")
                                   process-environment)))
    ad-do-it))

python-el's People

Contributors

monnier avatar rgmorris avatar leoliu avatar lektu avatar eli-zaretskii avatar kenmanheimer avatar rfrancoise avatar bogo666 avatar cschol avatar jwiegley avatar

Stargazers

 avatar lily avatar jun fujita avatar  avatar Graham Fawcett avatar

Watchers

 avatar James Cloos avatar

Forkers

ouyangjun-joy

python-el's Issues

python-imenu-create-index may fail in the first run

Open file sphinx/environment.py as found in https://bitbucket.org/birkenfeld/sphinx in emacs and eval

M-: (imenu--make-index-alist) RET
C-h v imenu--index-alist RET

In the Help buffer, look for odd entries that look like:

("class \"" . 3616)
("class \"" . 5553)

This is caused by python-in-string/comment screwing up the match data.

Note also if you do the experiment a second time in the same buffer you get correct index alist; this is believed to have something to do with the intricate handling of triple-quoted string, i.e. after the first run syntax properties in the buffer have been updated and as a result the return value of python-in-string/comment is reliable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.