Package: pyrex-mode
Version: 0.9.4.1-1
Severity: normal
File: /etc/emacs/site-start.d/50pyrex-mode.el
Tags: patch

Hi

50pyrex-mode.el autoloads python-mode instead of pyrex-mode and uses
it for .pyx files.

50pyrex-mode.el handles only .pyx files but not .pxi and .pxd files.

Attached patch fixing both issues.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.17-1-vserver-k7
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)

Versions of packages pyrex-mode depends on:
ii  python-mode                   1:1.0-2    Emacs-lisp python-mode and doctest

pyrex-mode recommends no packages.

-- no debconf information

-- 

=*= Lukasz Pankowski =*=
--- /etc/emacs/site-start.d/50pyrex-mode.el	2006-06-14 18:36:43.000000000 +0200
+++ 50pyrex-mode.el	2006-06-28 16:32:27.000000000 +0200
@@ -1,6 +1,6 @@
 ;-*-emacs-lisp-*-
 
-(autoload 'python-mode "pyrex-mode" "Pyrex editing mode." t)
+(autoload 'pyrex-mode "pyrex-mode" "Pyrex editing mode." t)
 
 (setq load-path (cons (concat "/usr/share/"
                               (symbol-name debian-emacs-flavor)
@@ -8,4 +8,7 @@
                       load-path))
 
 (setq auto-mode-alist
-    (cons '("\\.pyx$" . python-mode) auto-mode-alist))
+      (append '(("\\.pyx$" . pyrex-mode)
+		("\\.pxi$" . pyrex-mode)
+		("\\.pxd$" . pyrex-mode))
+	      auto-mode-alist))

Reply via email to