all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Deniz Dogan <deniz.a.m.dogan@gmail.com>
To: dhruva <dhruvakm@gmail.com>
Cc: Emacs Development <emacs-devel@gnu.org>
Subject: Re: Error in python-mode (Emacs HEAD)
Date: Wed, 15 Sep 2010 11:38:12 +0200	[thread overview]
Message-ID: <AANLkTimJ9-eREusfPtSgeSQOgqrXxj42-jRNikvqe8an@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikvVoWHG5+GJKm1Jr+Mh3PJwAmH6Daq9+9qOHcX@mail.gmail.com>

2010/9/15 dhruva <dhruvakm@gmail.com>:
> In am empty buffer, I type "M-x python-mode", I get the following
> error. I am using Emacs HEAD on GNU/Linux.
>
>
> Debugger entered--Lisp error: (invalid-function 2)
>  2("\"")
>  byte-code("\301\302!\210\303\304\305\"\210\306\307\310\311\312\313\314\315\316\317&   \210\320\321\322\323!\324B\"\210\320\321\322\325!\326B\"\210\320\327\322\330!\326B\"\210\320\331\322\332!\"\210\33B \334\333!\204a\335\333\336\337\340B\341\342B\343\344B\345\346B\347\350B\351\352B\353\354B\355\356B\257      \"\210\35B \360\361\362\363\364!!\365\366\367\370
> !!!\"!\207" [current-load-list require comint autoload comint-mode
> "comint" custom-declare-group python nil "Silly walks in the Python
> language." :group languages :version "22.1" :link
> (emacs-commentary-link "python") add-to-list interpreter-mode-alist
> purecopy "jython" jython-mode "python" python-mode auto-mode-alist
> "\\.py\\'" same-window-buffer-names "*Python*"
> python-font-lock-keywords default-boundp set-default
> "\\_<\\(?:\\(?:False\\|True\\|a\\(?:nd\\|s\\(?:sert\\)?\\)\\|break\\|continue\\|del\\|e\\(?:l\\(?:if\\|se\\)\\|x\\(?:cept\\|ec\\)\\)\\|f\\(?:inally\\|or\\|rom\\)\\|global\\|i\\(?:mport\\|[fns]\\)\\|lambda\\|not\\|or\\|p\\(?:ass\\|rint\\)\\|r\\(?:aise\\|eturn\\)\\|self\\|try\\|w\\(?:hile\\|ith\\)\\|yield\\)\\)\\_>"
> "\\_<None\\_>" font-lock-constant-face
> "\\_<\\(class\\)[[:space:]]+\\(\\(?:[[:word:]]\\|_\\)+\\)" ((1
> font-lock-keyword-face) (2 font-lock-type-face))
> "\\_<\\(def\\)[[:space:]]+\\(\\(?:[[:word:]]\\|_\\)+\\)" ((1
> font-lock-keyword-face) (2 font-lock-function-name-face))
> "^\\(\\(?:[[:word:]]\\|_\\)+\\)[[:space:]]*=" ((1
> font-lock-variable-name-face)) "^[
> ]*\\(@\\(?:[[:word:]]\\|_\\)+\\(?:\\.\\(?:[[:word:]]\\|_\\)+\\)*\\)"
> ((1 font-lock-type-face))
> "\\_<\\(?:\\(?:A\\(?:\\(?:rithmetic\\|ssertion\\|ttribute\\)Error\\)\\|B\\(?:aseException\\|ufferError\\|ytesWarning\\)\\|DeprecationWarning\\|E\\(?:OFError\\|nvironmentError\\|xception\\)\\|F\\(?:loatingPointError\\|utureWarning\\)\\|GeneratorExit\\|I\\(?:OError\\|mport\\(?:Error\\|Warning\\)\\|nde\\(?:\\(?:ntation\\|x\\)Error\\)\\)\\|Key\\(?:Error\\|boardInterrupt\\)\\|LookupError\\|MemoryError\\|N\\(?:ameError\\|otImplemented\\(?:Error\\)?\\)\\|O\\(?:\\(?:S\\|verflow\\)Error\\)\\|PendingDeprecationWarning\\|R\\(?:eferenceError\\|untime\\(?:Error\\|Warning\\)\\)\\|S\\(?:t\\(?:andardError\\|opIteration\\)\\|y\\(?:ntax\\(?:Error\\|Warning\\)\\|stemE\\(?:rror\\|xit\\)\\)\\)\\|T\\(?:\\(?:ab\\|ype\\)Error\\)\\|U\\(?:n\\(?:boundLocalError\\|icode\\(?:DecodeError\\|E\\(?:\\(?:ncodeE\\)?rror\\)\\|TranslateError\\|Warning\\)\\)\\|serWarning\\)\\|ValueError\\|W\\(?:arning\\|indowsError\\)\\|ZeroDivisionError\\)\\)\\_>"
> font-lock-type-face "\\(?:^\\|[^         .]\\)[
> ]*\\_<\\(\\(?:a\\(?:bs\\|ll\\|\\(?:n\\|ppl\\)y\\)\\|b\\(?:asestring\\|in\\|ool\\|uffer\\|yte\\(?:array\\|s\\)\\)\\|c\\(?:allable\\|hr\\|lassmethod\\|mp\\|o\\(?:erce\\|mp\\(?:ile\\|lex\\)\\|pyright\\)\\|redits\\)\\|d\\(?:elattr\\|i\\(?:ct\\|r\\|vmod\\)\\)\\|e\\(?:numerate\\|val\\|x\\(?:ecfile\\|it\\)\\)\\|f\\(?:il\\(?:e\\|ter\\)\\|\\(?:loa\\|orma\\|rozense\\)t\\)\\|g\\(?:etattr\\|lobals\\)\\|h\\(?:as\\(?:attr\\|h\\)\\|e\\(?:lp\\|x\\)\\)\\|i\\(?:d\\|n\\(?:put\\|t\\(?:ern\\)?\\)\\|s\\(?:instance\\|subclass\\)\\|ter\\)\\|l\\(?:en\\|i\\(?:cense\\|st\\)\\|o\\(?:cals\\|ng\\)\\)\\|m\\(?:a[px]\\|emoryview\\|in\\)\\|next\\|o\\(?:bject\\|ct\\|pen\\|rd\\)\\|p\\(?:ow\\|r\\(?:int\\|operty\\)\\)\\|quit\\|r\\(?:a\\(?:nge\\|w_input\\)\\|e\\(?:duce\\|load\\|pr\\|versed\\)\\|ound\\)\\|s\\(?:et\\(?:attr\\)?\\|lice\\|orted\\|t\\(?:aticmethod\\|r\\)\\|u\\(?:m\\|per\\)\\)\\|t\\(?:\\(?:upl\\|yp\\)e\\)\\|unic\\(?:hr\\|ode\\)\\|vars\\|xrange\\|zip\\)\\)\\_>"
> ((1 font-lock-builtin-face))
> "\\_<\\(?:\\(?:Ellipsis\\|False\\|None\\|True\\|_\\(?:_\\(?:\\(?:d\\(?:ebug\\|oc\\)\\|import\\|\\(?:nam\\|packag\\)e\\)__\\)\\)?\\)\\)\\_>"
> font-lock-builtin-face python-syntax-propertize-function (lambda
> (defconst-tmp-var) (defconst python-syntax-propertize-function
> defconst-tmp-var)) syntax-propertize-rules ...] 12)
>  python-mode()
>  set-auto-mode-0(python-mode nil)
>  byte-code(\237\305 \211 \203/\n@ \306 !\204 \307\310  \"\210\202(\311 \312    \f\"\204(\313\314\305\"\210\nA\211 \204 *\305\207"
> [modes mode --cl-dolist-temp-- done keep-mode-if-same nil functionp
> message "Ignoring unknown mode `%s'" t set-auto-mode-0 throw nop] 4)
>  set-auto-mode()
>  normal-mode(t)
>  after-find-file(nil t)
>  find-file-noselect-1(#<buffer Component.py>
> "~/devel/ws/boost/boost/Component.py" nil nil
> "/x/eng/bbnb/users/dhruva/BTC_boost_1160477_08252053/boost/Component.py"
> ((59522 . 18981) 118))
>
> -dhruva
>
>

I had this same error but on the Windows build. Byte compiling the
file manually got rid of the problem.

-- 
Deniz Dogan



  reply	other threads:[~2010-09-15  9:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-15  9:05 Error in python-mode (Emacs HEAD) dhruva
2010-09-15  9:38 ` Deniz Dogan [this message]
2010-09-15 11:30   ` dhruva
2010-09-15 13:12 ` Stefan Monnier
2010-09-15 14:00   ` dhruva
2010-09-15 14:55     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTimJ9-eREusfPtSgeSQOgqrXxj42-jRNikvqe8an@mail.gmail.com \
    --to=deniz.a.m.dogan@gmail.com \
    --cc=dhruvakm@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.