File mode specification error: (void-variable py-mode-map)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Medium
|
Andreas Roehler |
Bug Description
This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org. Please check that
the From: line contains a valid email address. After a delay of up
to one day, you should receive an acknowledgement at that address.
Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.
Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug. If you can, give a recipe
starting from `emacs -Q':
If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/Applications/
In GNU Emacs 24.2.1 (x86_64-
of 2012-08-27 on bob.porkrind.org
Windowing system distributor `Apple', version 10.3.1187
Configured using:
`configure '--host=
'--with-ns' 'build_
'host_
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: nil
locale-
default enable-
In GNU Emacs 24.2.1 (x86_64-
of 2012-08-27 on bob.porkrind.org
Windowing system distributor `Apple', version 10.3.1187
Configured using:
`configure '--host=
'--with-ns' 'build_
'host_
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: nil
locale-
default enable-
Major mode: Emacs-Lisp
Minor modes in effect:
autopair-mode: t
autopair-
delete-
shell-
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-
global-
font-lock-mode: t
auto-
auto-
auto-
line-number-mode: t
transient-
.emacs file
;path to python-mode
(add-to-list 'load-path "/Users/
;;remove??
(add-to-list 'load-path "/usr/local/bin")
;;remove??
(add-to-list 'load-path "/Users/
(setq py-install-
(setq pylookup-dir "/Users/
(add-to-list 'load-path pylookup-dir)
(add-to-list 'load-path "/Users/
(setq py-shell-name "ipython")
(setq py-shell-name "/usr/local/
(require 'python-mode)
(autoload 'python-mode "python-mode.el")
(add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode))
(transient-
(delete-
;;(require 'ipython)
(require 'anything-ipython)
(add-hook 'python-mode-hook #'(lambda ()
(add-hook 'ipython-shell-hook #'(lambda ()
(when (require 'anything-
(use-
(require 'comint)
(define-key comint-mode-map (kbd "M-") 'comint-next-input)
(define-key comint-mode-map (kbd "M-") 'comint-
(define-key comint-mode-map [down] 'comint-
(define-key comint-mode-map [up] 'comint-
;; add pylookup to your loadpath, ex) ~/.emacs.d/pylookup
;;(setq pylookup-dir "[/Users/
;;(add-to-list 'load-path pylookup-dir)
;; load pylookup when compile time
(eval-when-compile (require 'pylookup))
;; set executable file and db file
(setq pylookup-program (concat pylookup-dir "/pylookup.py"))
(setq pylookup-db-file (concat pylookup-dir "/pylookup.db"))
;; set search option if you want
(setq pylookup-
;; to speedup, just load it on demand
(autoload 'pylookup-lookup "pylookup"
"Lookup SEARCH-TERM in the Python HTML indexes." t)
(autoload 'pylookup-update "pylookup"
"Run pylookup-update and create the database at `pylookup-
(global-set-key "\C-ch" 'pylookup-lookup)
(autoload 'autopair-
(autopair-
(add-hook 'lisp-mode-hook #'(lambda () (setq autopair-
(add-hook 'python-mode-hook
#'(lambda () (push '(?' . ?')
(setq autopair-
(list #'autopair-
(add-hook 'before-save-hook 'delete-
Changed in python-mode: | |
status: | New → Fix Committed |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
py-mode-map isn't used any more. Probably you loaded ipython.el , which isn't needed any more also.
Not loading ipython.el should solve it. Will re-install a defvaralias lost by mistake, which should avoid that error anyway. Thanks for the report.