all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Error in python-mode (Emacs HEAD)
@ 2010-09-15  9:05 dhruva
  2010-09-15  9:38 ` Deniz Dogan
  2010-09-15 13:12 ` Stefan Monnier
  0 siblings, 2 replies; 6+ messages in thread
From: dhruva @ 2010-09-15  9:05 UTC (permalink / raw)
  To: Emacs Development

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\x10\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\x10\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\x19\211\x1a\203/\n@\x11\306	!\204\x1a\307\310	\"\210\202(\311\x13\312	\f\"\204(\313\314\305\"\210\nA\211\x12\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



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error in python-mode (Emacs HEAD)
  2010-09-15  9:05 Error in python-mode (Emacs HEAD) dhruva
@ 2010-09-15  9:38 ` Deniz Dogan
  2010-09-15 11:30   ` dhruva
  2010-09-15 13:12 ` Stefan Monnier
  1 sibling, 1 reply; 6+ messages in thread
From: Deniz Dogan @ 2010-09-15  9:38 UTC (permalink / raw)
  To: dhruva; +Cc: Emacs Development

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error in python-mode (Emacs HEAD)
  2010-09-15  9:38 ` Deniz Dogan
@ 2010-09-15 11:30   ` dhruva
  0 siblings, 0 replies; 6+ messages in thread
From: dhruva @ 2010-09-15 11:30 UTC (permalink / raw)
  To: Deniz Dogan; +Cc: Emacs Development

Hi,

On Wed, Sep 15, 2010 at 3:08 PM, Deniz Dogan <deniz.a.m.dogan@gmail.com> wrote:
> 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("\"")
>
> I had this same error but on the Windows build. Byte compiling the
> file manually got rid of the problem.
>

Thanks, I did the same and it worked! Does this indicate some
dependency issues in the make? I regularly (after checkout) do a "make
-C lisp cvs-update". I would expect that target
to rebuild out of sync elisp files.

-dhruva



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error in python-mode (Emacs HEAD)
  2010-09-15  9:05 Error in python-mode (Emacs HEAD) dhruva
  2010-09-15  9:38 ` Deniz Dogan
@ 2010-09-15 13:12 ` Stefan Monnier
  2010-09-15 14:00   ` dhruva
  1 sibling, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2010-09-15 13:12 UTC (permalink / raw)
  To: dhruva; +Cc: Emacs Development

> In am empty buffer, I type "M-x python-mode", I get the following
> error. I am using Emacs HEAD on GNU/Linux.

Have you "make bootstrap"?

> Debugger entered--Lisp error: (invalid-function 2)
>   2("\"")

This sounds like you compiled python.el with an old syntax.elc which
didn't yet have a syntax-propertize-rules macro.


        Stefan



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error in python-mode (Emacs HEAD)
  2010-09-15 13:12 ` Stefan Monnier
@ 2010-09-15 14:00   ` dhruva
  2010-09-15 14:55     ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: dhruva @ 2010-09-15 14:00 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Emacs Development

Hello,

On Wed, Sep 15, 2010 at 6:42 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>> In am empty buffer, I type "M-x python-mode", I get the following
>> error. I am using Emacs HEAD on GNU/Linux.
>
> Have you "make bootstrap"?

No, it has been a while since I did a 'make bootstrap'. Could there be
a special file in the source
tree to trigger a 'make bootstrap'? Someone aware of a change that
needs a 'make bootstrap' can
update that (or ideally have a dependency mechanism for bootstrap target).

-dhruva



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error in python-mode (Emacs HEAD)
  2010-09-15 14:00   ` dhruva
@ 2010-09-15 14:55     ` Stefan Monnier
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2010-09-15 14:55 UTC (permalink / raw)
  To: dhruva; +Cc: Emacs Development

>>> In am empty buffer, I type "M-x python-mode", I get the following
>>> error. I am using Emacs HEAD on GNU/Linux.
>> Have you "make bootstrap"?
> No, it has been a while since I did a 'make bootstrap'.  Could there
> be a special file in the source tree to trigger a 'make bootstrap'?
> Someone aware of a change that needs a 'make bootstrap' can update
> that (or ideally have a dependency mechanism for bootstrap target).

That would be good, indeed.  Patches welcome.
Note also that we should probably get rid of "cvs-update", since "make"
should now work at least as well if not better (e.g. in this particular
case, I think "make" would have gotten it right, whereas "cd lisp; make
cvs-update" would indeed end up with the problem you encountered).


        Stefan



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-09-15 14:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-15  9:05 Error in python-mode (Emacs HEAD) dhruva
2010-09-15  9:38 ` Deniz Dogan
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

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.