emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/emacs-lisp/regexp-opt.el,v


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/regexp-opt.el,v
Date: Fri, 01 Feb 2008 16:03:21 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Miles Bader <miles>     08/02/01 16:01:31

Index: lisp/emacs-lisp/regexp-opt.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/emacs-lisp/regexp-opt.el,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -b -r1.36 -r1.37
--- lisp/emacs-lisp/regexp-opt.el       8 Jan 2008 20:45:32 -0000       1.36
+++ lisp/emacs-lisp/regexp-opt.el       1 Feb 2008 16:01:25 -0000       1.37
@@ -263,13 +263,21 @@
     (map-char-table
      (lambda (c v)
        (when v
+        (if (consp c)
+            (if (= (1- (car c)) end) (setq end (cdr c))
+              (if (> end (+ start 2))
+                  (setq charset (format "%s%c-%c" charset start end))
+                (while (>= end start)
+                  (setq charset (format "%s%c" charset start))
+                  (incf start)))
+              (setq start (car c) end (cdr c)))
         (if (= (1- c) end) (setq end c)
           (if (> end (+ start 2))
               (setq charset (format "%s%c-%c" charset start end))
             (while (>= end start)
               (setq charset (format "%s%c" charset start))
               (incf start)))
-          (setq start c end c))))
+            (setq start c end c)))))
      charmap)
     (when (>= end start)
       (if (> end (+ start 2))




reply via email to

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