emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

python-mode: minor bugfix


From: Slawomir Nowaczyk
Subject: python-mode: minor bugfix
Date: Sat, 16 Sep 2006 12:29:26 +0200

Hello,

In python-mode, try C-c C-s print "[]". Emacs reports:
    error in process filter: Invalid regexp: "Unmatched [ or [^"

The fix is trivial:

--- m:/EmacsCVS/EmacsCVS/lisp/progmodes/python.el       2006-09-16 
10:15:09.767984000 +0200
+++ c:/Emacs/lisp/progmodes/python.el   2006-09-16 10:19:15.751691200 +0200
@@ -1289,7 +1289,7 @@
                     ;; Maybe we could be more selective here.
                     (if (zerop (length res))
                         (not (bolp))
-                      (string-match res ".\\'"))))
+                      (string-match ".\\'" res))))
            ;; The need for this seems to be system-dependent:
            ;; What is this all about, exactly?  --Stef
            ;; (if (and (eq ?. (aref s 0)))


-- 
 Best wishes,
   Slawomir Nowaczyk
     ( address@hidden )

REALITY.SYS corrupted -- Reboot Universe (Y/N)?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]