all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problem loading Python mode
@ 2009-09-17 11:26 bar tomas
  2009-09-17 17:35 ` Andreas Röhler
  0 siblings, 1 reply; 4+ messages in thread
From: bar tomas @ 2009-09-17 11:26 UTC (permalink / raw
  To: help-gnu-emacs

Hi,
I'm using Emacs 22.3 on Wind XP.
When I open a Python file (with py extension) I get  the following
error warning:

File mode specification error: (file-error "Cannot open load file"
"python-mode")

I have checked in the lisp/prog-mode folder and there is a file called
python.el.

The only modification I have done to the init.el file (in .emacs.d) is
to paste the followiing lines at the end of the file for org mode :

     (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
     (global-set-key "\C-cl" 'org-store-link)
     (global-set-key "\C-ca" 'org-agenda)
     (global-set-key "\C-cb" 'org-iswitchb)


     (global-font-lock-mode 1)
     (add-hook 'org-mode-hook 'turn-on-font-lock)


Do you know what may be wrong?
Many thanks.




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

* Re: Problem loading Python mode
       [not found] <mailman.6858.1253186777.2239.help-gnu-emacs@gnu.org>
@ 2009-09-17 12:16 ` Anselm Helbig
  0 siblings, 0 replies; 4+ messages in thread
From: Anselm Helbig @ 2009-09-17 12:16 UTC (permalink / raw
  To: help-gnu-emacs

At Thu, 17 Sep 2009 13:26:06 +0200,
bar tomas <bartomas@gmail.com> wrote:
> 
> Hi,
> I'm using Emacs 22.3 on Wind XP.
> When I open a Python file (with py extension) I get  the following
> error warning:
> 
> File mode specification error: (file-error "Cannot open load file"
> "python-mode")
> 
> I have checked in the lisp/prog-mode folder and there is a file called
> python.el.

Yes, but Emacs is looking for `python-mode.el'. `python-mode.el' is
part of the python distribution while `python.el', which is a
different piece of software, comes with recent emacsen. 

> The only modification I have done to the init.el file (in .emacs.d) is
> to paste the followiing lines at the end of the file for org mode :
> 
>      (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
>      (global-set-key "\C-cl" 'org-store-link)
>      (global-set-key "\C-ca" 'org-agenda)
>      (global-set-key "\C-cb" 'org-iswitchb)

These lines don't look like they're related to your problem.

>      (global-font-lock-mode 1)
>      (add-hook 'org-mode-hook 'turn-on-font-lock)

These lines should not be necessary since at least Emacs 22. 

HTH, 

Anselm


-- 
Anselm Helbig 
mailto:anselm.helbig+news2009@googlemail.com


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

* Re: Problem loading Python mode
  2009-09-17 11:26 Problem loading Python mode bar tomas
@ 2009-09-17 17:35 ` Andreas Röhler
  2009-09-18  8:55   ` bar tomas
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Röhler @ 2009-09-17 17:35 UTC (permalink / raw
  To: bar tomas; +Cc: help-gnu-emacs

bar tomas wrote:
> Hi,
> I'm using Emacs 22.3 on Wind XP.
> When I open a Python file (with py extension) I get  the following
> error warning:
>
> File mode specification error: (file-error "Cannot open load file"
> "python-mode")
>
>   

Seems a bug. With

GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.0) of
2009-07-25 on Suse 10.3,
it doesn't occur.


> I have checked in the lisp/prog-mode folder and there is a file called
> python.el.
>
>   

Putting

(load "YOUR-PATH\python.el")

into your init file should load it.

In case of remaining difficulties, there is another python-mode, called
python-mode.el at

https://launchpad.net/python-mode

 
> The only modification I have done to the init.el file (in .emacs.d) is
> to paste the followiing lines at the end of the file for org mode :
>
>      (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
>      (global-set-key "\C-cl" 'org-store-link)
>      (global-set-key "\C-ca" 'org-agenda)
>      (global-set-key "\C-cb" 'org-iswitchb)
>
>
>      (global-font-lock-mode 1)
>      (add-hook 'org-mode-hook 'turn-on-font-lock)
>
>
> Do you know what may be wrong?
> Many thanks.
>
>
>
>   





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

* Re: Problem loading Python mode
  2009-09-17 17:35 ` Andreas Röhler
@ 2009-09-18  8:55   ` bar tomas
  0 siblings, 0 replies; 4+ messages in thread
From: bar tomas @ 2009-09-18  8:55 UTC (permalink / raw
  To: Andreas Röhler; +Cc: help-gnu-emacs

Many thanks!

On Thu, Sep 17, 2009 at 6:35 PM, Andreas Röhler
<andreas.roehler@easy-emacs.de> wrote:
> bar tomas wrote:
>> Hi,
>> I'm using Emacs 22.3 on Wind XP.
>> When I open a Python file (with py extension) I get  the following
>> error warning:
>>
>> File mode specification error: (file-error "Cannot open load file"
>> "python-mode")
>>
>>
>
> Seems a bug. With
>
> GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.0) of
> 2009-07-25 on Suse 10.3,
> it doesn't occur.
>
>
>> I have checked in the lisp/prog-mode folder and there is a file called
>> python.el.
>>
>>
>
> Putting
>
> (load "YOUR-PATH\python.el")
>
> into your init file should load it.
>
> In case of remaining difficulties, there is another python-mode, called
> python-mode.el at
>
> https://launchpad.net/python-mode
>
>
>> The only modification I have done to the init.el file (in .emacs.d) is
>> to paste the followiing lines at the end of the file for org mode :
>>
>>      (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
>>      (global-set-key "\C-cl" 'org-store-link)
>>      (global-set-key "\C-ca" 'org-agenda)
>>      (global-set-key "\C-cb" 'org-iswitchb)
>>
>>
>>      (global-font-lock-mode 1)
>>      (add-hook 'org-mode-hook 'turn-on-font-lock)
>>
>>
>> Do you know what may be wrong?
>> Many thanks.
>>
>>
>>
>>
>
>




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

end of thread, other threads:[~2009-09-18  8:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-17 11:26 Problem loading Python mode bar tomas
2009-09-17 17:35 ` Andreas Röhler
2009-09-18  8:55   ` bar tomas
     [not found] <mailman.6858.1253186777.2239.help-gnu-emacs@gnu.org>
2009-09-17 12:16 ` Anselm Helbig

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.