Re: [Python-mode] xemacs Potential problem
On 8/9/2011 1:35 AM, Andreas Röhler wrote: For the moment put a semicolon before (require 'highlight-indentation) in python-mode.el, that's all. ;; (when (featurep 'xemacs) ;; (require 'highlight-indentation)) yields (1) (file-mode-spec/warning) Error in File mode specification: menu keyword must be :config, :included, :accelerator or :filter: :help Backtrace follows: backtrace(nil t) # bind (standard-output standard-output handler-arg-name) backtrace-in-condition-handler-eliminating-handler(call-trapping-errors-Ldc9FC5Hr) # bind (errstr call-trapping-errors-Ldc9FC5Hr) #compiled-function (from /home/esj/xemacs-beta/lisp/files.elc) (call-trapping-errors-Ldc9FC5Hr) ...(17) [call-trapping-errors-Ldc9FC5Hr errstr error-message-string lwarn file-mode-spec warning Error in %s: %s\n\nBacktrace follows:\n\n%s File mode specification backtrace-in-condition-handler-eliminating-handler] 8 0x694((error menu keyword must be :config, :included, :accelerator or :filter :help)) signal(error (menu keyword must be :config, :included, :accelerator or :filter :help)) # bind (menuitem item menubar-p menu) check-menu-syntax((Python :help Python-specific Features [Shift region left py-shift-left :active mark-active :help Shift by a single indentation step] [Shift region right py-shift-right :active mark-active :help Shift by a single indentation step] - [Mark block py-mark-block :help Mark innermost block at point] [Mark def/class mark-defun :help Mark innermost definition at point] - [Start of block py-beginning-of-block :help Go to start of innermost definition at point] [End of block py-end-of-block :help Go to end of innermost definition at point] [Start of def/class beginning-of-defun :help Go to start of innermost definition at point] [End of def/class end-of-defun :help Go to end of innermost definition at point] - (Templates... :help Expand templates for compound statements :filter (lambda (rest junk) (abbrev-table-menu python-mode-abbrev-table))) - [Import/reload file py-execute-import-or-reload :help Load into inferior Python session] [Eval buffer py-execute-buffer :help Evaluate buffer en bloc in inferior Python session] [Eval region py-execute-region :active mark-active :help Evaluate region en bloc in inferior Python session] [Eval def/class py-execute-defun :help Evaluate current definition in inferior Python session] [Switch to interpreter py-shell :help Switch to `inferior' Python in separate buffer] [Set default process py-set-proc :help Make buffer's inferior process the default :active (buffer-live-p py-buffer)] [Check file py-check :help Run pychecker] [Debugger pdb :help Run pdb under GUD] - [Help on symbol py-describe-symbol :help Use pydoc on symbol at point] [Complete symbol completion-at-point :help Complete (qualified) symbol before point] [Find function py-find-function :help Try to find source definition of function at point] [Update imports py-find-imports :help Update list of top-level imports for completion]) nil) # bind (in-menu before submenu menu-path) add-submenu(nil (Python :help Python-specific Features [Shift region left py-shift-left :active mark-active :help Shift by a single indentation step] [Shift region right py-shift-right :active mark-active :help Shift by a single indentation step] - [Mark block py-mark-block :help Mark innermost block at point] [Mark def/class mark-defun :help Mark innermost definition at point] - [Start of block py-beginning-of-block :help Go to start of innermost definition at point] [End of block py-end-of-block :help Go to end of innermost definition at point] [Start of def/class beginning-of-defun :help Go to start of innermost definition at point] [End of def/class end-of-defun :help Go to end of innermost definition at point] - (Templates... :help Expand templates for compound statements :filter (lambda (rest junk) (abbrev-table-menu python-mode-abbrev-table))) - [Import/reload file py-execute-import-or-reload :help Load into inferior Python session] [Eval buffer py-execute-buffer :help Evaluate buffer en bloc in inferior Python session] [Eval region py-execute-region :active mark-active :help Evaluate region en bloc in inferior Python session] [Eval def/class py-execute-defun :help Evaluate current definition in inferior Python session] [Switch to interpreter py-shell :help Switch to `inferior' Python in separate buffer] [Set default process py-set-proc :help Make buffer's inferior process the default :active (buffer-live-p py-buffer)] [Check file py-check :help Run pychecker] [Debugger pdb :help Run pdb under GUD] - [Help on symbol py-describe-symbol :help Use pydoc on symbol at point] [Complete symbol completion-at-point :help Complete (qualified) symbol before point] [Find function py-find-function :help Try to find source definition of function at point] [Update imports py-find-imports :help Update list of top-level imports for completion]) nil) # bind
Re: [Python-mode] xemacs Potential problem
Am 19.08.2011 09:18, schrieb Eric S. Johansson: On 8/9/2011 1:35 AM, Andreas Röhler wrote: For the moment put a semicolon before (require 'highlight-indentation) in python-mode.el, that's all. ;; (when (featurep 'xemacs) ;; (require 'highlight-indentation)) yields (1) (file-mode-spec/warning) Error in File mode specification: menu keyword must be :config, :included, :accelerator or :filter: :help Backtrace follows: backtrace(nil t) # bind (standard-output standard-output handler-arg-name) backtrace-in-condition-handler-eliminating-handler(call-trapping-errors-Ldc9FC5Hr) # bind (errstr call-trapping-errors-Ldc9FC5Hr) #compiled-function (from /home/esj/xemacs-beta/lisp/files.elc) (call-trapping-errors-Ldc9FC5Hr) ...(17) [call-trapping-errors-Ldc9FC5Hr errstr error-message-string lwarn file-mode-spec warning Error in %s: %s\n\nBacktrace follows:\n\n%s File mode specification backtrace-in-condition-handler-eliminating-handler] 8 0x694((error menu keyword must be :config, :included, :accelerator or :filter :help)) signal(error (menu keyword must be :config, :included, :accelerator or :filter :help)) # bind (menuitem item menubar-p menu) check-menu-syntax((Python :help Python-specific Features [Shift region left py-shift-left :active mark-active :help Shift by a single indentation step] [Shift region right py-shift-right :active mark-active :help Shift by a single indentation step] - [Mark block py-mark-block :help Mark innermost block at point] [Mark def/class mark-defun :help Mark innermost definition at point] - [Start of block py-beginning-of-block :help Go to start of innermost definition at point] [End of block py-end-of-block :help Go to end of innermost definition at point] [Start of def/class beginning-of-defun :help Go to start of innermost definition at point] [End of def/class end-of-defun :help Go to end of innermost definition at point] - (Templates... :help Expand templates for compound statements :filter (lambda (rest junk) (abbrev-table-menu python-mode-abbrev-table))) - [Import/reload file py-execute-import-or-reload :help Load into inferior Python session] [Eval buffer py-execute-buffer :help Evaluate buffer en bloc in inferior Python session] [Eval region py-execute-region :active mark-active :help Evaluate region en bloc in inferior Python session] [Eval def/class py-execute-defun :help Evaluate current definition in inferior Python session] [Switch to interpreter py-shell :help Switch to `inferior' Python in separate buffer] [Set default process py-set-proc :help Make buffer's inferior process the default :active (buffer-live-p py-buffer)] [Check file py-check :help Run pychecker] [Debugger pdb :help Run pdb under GUD] - [Help on symbol py-describe-symbol :help Use pydoc on symbol at point] [Complete symbol completion-at-point :help Complete (qualified) symbol before point] [Find function py-find-function :help Try to find source definition of function at point] [Update imports py-find-imports :help Update list of top-level imports for completion]) nil) # bind (in-menu before submenu menu-path) add-submenu(nil (Python :help Python-specific Features [Shift region left py-shift-left :active mark-active :help Shift by a single indentation step] [Shift region right py-shift-right :active mark-active :help Shift by a single indentation step] - [Mark block py-mark-block :help Mark innermost block at point] [Mark def/class mark-defun :help Mark innermost definition at point] - [Start of block py-beginning-of-block :help Go to start of innermost definition at point] [End of block py-end-of-block :help Go to end of innermost definition at point] [Start of def/class beginning-of-defun :help Go to start of innermost definition at point] [End of def/class end-of-defun :help Go to end of innermost definition at point] - (Templates... :help Expand templates for compound statements :filter (lambda (rest junk) (abbrev-table-menu python-mode-abbrev-table))) - [Import/reload file py-execute-import-or-reload :help Load into inferior Python session] [Eval buffer py-execute-buffer :help Evaluate buffer en bloc in inferior Python session] [Eval region py-execute-region :active mark-active :help Evaluate region en bloc in inferior Python session] [Eval def/class py-execute-defun :help Evaluate current definition in inferior Python session] [Switch to interpreter py-shell :help Switch to `inferior' Python in separate buffer] [Set default process py-set-proc :help Make buffer's inferior process the default :active (buffer-live-p py-buffer)] [Check file py-check :help Run pychecker] [Debugger pdb :help Run pdb under GUD] - [Help on symbol py-describe-symbol :help Use pydoc on symbol at point] [Complete symbol completion-at-point :help Complete (qualified) symbol before point] [Find function py-find-function :help Try to find source definition of function at point] [Update imports py-find-imports :help Update list of top-level imports for completion]) nil) # bind (before menu-items menu-name menu-path)
[Python-mode] xemacs Potential problem
I'm experimenting with the latest beta and try to figure out what's the right set of options for configure for production version and I got this error. Any ideas? (1) (file-mode-spec/warning) Error in File mode specification: Malformed list: :background Backtrace follows: backtrace(nil t) # bind (standard-output standard-output handler-arg-name) backtrace-in-condition-handler-eliminating-handler(call-trapping-errors-Ldc9FC5Hr) # bind (errstr call-trapping-errors-Ldc9FC5Hr) #compiled-function (from /home/esj/xemacs-beta/lisp/files.elc) (call-trapping-errors-Ldc9FC5Hr) ...(17) [call-trapping-errors-Ldc9FC5Hr errstr error-message-string lwarn file-mode-spec warning Error in %s: %s\n\nBacktrace follows:\n\n%s File mode specification backtrace-in-condition-handler-eliminating-handler] 8 0x694((malformed-list :background)) apply(face-custom-attributes-set highlight-indent-face nil (custom) :background) # bind (display atts tags frame spec face) face-display-set(highlight-indent-face class color) (min-colors 88) (background dark)) :background grey22) (((class color) (min-colors 88) (background light)) :background grey88)) nil (custom)) # bind (value frames frame args doc spec face) custom-declare-face(highlight-indent-face class color) (min-colors 88) (background dark)) :background grey22) (((class color) (min-colors 88) (background light)) :background grey88)) Basic face for highlighting indentation guides. :group basic-faces) (defface highlight-indent-face (quote class color) (min-colors 88) (background dark)) :background grey22) (((class color) (min-colors 88) (background light)) :background grey88))) Basic face for highlighting indentation guides. :group (quote basic-faces)) # (unwind-protect ...) # (unwind-protect ...) # (unwind-protect ...) # (unwind-protect ...) # (unwind-protect ...) # (unwind-protect ...) # (unwind-protect ...) # (unwind-protect ...) (load-internal [internal]) load-internal(highlight-indentation nil require nil undecided) # bind (handler path nosuffix nomessage noerror filename) load(highlight-indentation nil require nil) # (unwind-protect ...) require(highlight-indentation) # (unwind-protect ...) # (unwind-protect ...) # (unwind-protect ...) # (unwind-protect ...) # (unwind-protect ...) # (unwind-protect ...) # (unwind-protect ...) # (unwind-protect ...) (load-internal [internal]) load-internal(python-mode nil nil nil undecided) # bind (handler path nosuffix nomessage noerror filename) load(python-mode nil nil nil) # (unwind-protect ...) python-mode() # bind (alist mode name keep-going) # (unwind-protect ...) # bind (just-from-file-name) set-auto-mode() #compiled-function (from /home/esj/xemacs-beta/lisp/files.elc) nil ...(5) [set-auto-mode t] 1 0x695() # (unwind-protect ...) call-with-condition-handler(#compiled-function (from /home/esj/xemacs-beta/lisp/files.elc) (call-trapping-errors-Ldc9FC5Hr) ...(17) [call-trapping-errors-Ldc9FC5Hr errstr error-message-string lwarn file-mode-spec warning Error in %s: %s\n\nBacktrace follows:\n\n%s File mode specification backtrace-in-condition-handler-eliminating-handler] 8 0x694 #compiled-function (from /home/esj/xemacs-beta/lisp/files.elc) nil ...(5) [set-auto-mode t] 1 0x695) # (condition-case ... . ((error))) # bind (find-file) normal-mode(t) # bind (nomodes after-find-file-from-revert-buffer noauto warn error) after-find-file(nil t) # (unwind-protect ...) # bind (inhibit-read-only error number truename rawfile nowarn filename buf) find-file-noselect-1(#buffer food_calc.py /home/esj/food/food_calc.py nil nil c:/cygwin/home/esj/food/food_calc.py (361450 -22488999)) byte-code(... [number truename rawfile nowarn filename buf set-buffer-major-mode find-file-noselect-1] 7) # (condition-case ... . ((t (byte-code Â!Ã @ A\ [buf data kill-buffer signal] 3 # bind (number truename buf wildcards rawfile nowarn filename) find-file-noselect(~/food/food_calc.py nil nil t) # bind (coding-system-for-read wildcards codesys filename) #compiled-function (from find-file) (filename optional codesys wildcards) ...(37) [wildcards filename coding-system-for-read thunk value codesys check-coding-system find-file-noselect nil #compiled-function (from /home/esj/xemacs-beta/lisp/files.elc) (buffer) ...(21) [buffer buffer-file-name file-exists-p set-buffer-modified-p t switch-to-buffer] 3 0x67b mapcar] 5 1247230 (list (read-file-name Find file: ) (and current-prefix-arg (read-coding-system Coding system: )) t) 0x67c(~/food/food_calc.py nil t) call-interactively(find-file) (dispatch-event [internal]) # (condition-case ... . error) # (catch top-level ...) ___ Python-mode mailing list Python-mode@python.org http://mail.python.org/mailman/listinfo/python-mode
Re: [Python-mode] xemacs Potential problem
Am 09.08.2011 02:43, schrieb Eric S. Johansson: I'm experimenting with the latest beta and try to figure out what's the right set of options for configure for production version and I got this error. Any ideas? Hi Eric, think that's related to XEmacs compatibility problem you reported already with https://bugs.launchpad.net/python-mode/+bug/821824 Please ask at XEmacs devel what to do. For the moment put a semicolon before (require 'highlight-indentation) in python-mode.el, that's all. highlight-indentation is an add-on mode, displaying what (current-indention) also is saying. You are not missing any crucial without that display. Nonetheless I'll make it not loaded for XEmacs, so you will not get that error anymore with upcoming version. HTH, Andreas ___ Python-mode mailing list Python-mode@python.org http://mail.python.org/mailman/listinfo/python-mode