Merge from gnus--devo--0
authorMiles Bader <miles@gnu.org>
Mon, 3 Nov 2008 06:05:36 +0000 (06:05 +0000)
committerMiles Bader <miles@gnu.org>
Mon, 3 Nov 2008 06:05:36 +0000 (06:05 +0000)
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1460

lisp/gnus/ChangeLog
lisp/gnus/ietf-drums.el

index 66fafa9..21132eb 100644 (file)
@@ -1,3 +1,14 @@
+2008-10-31  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * ietf-drums.el (ietf-drums-remove-comments): Localize second
+       condition-case to only the forward-sexp call.
+
+2008-10-31  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * ietf-drums.el (ietf-drums-remove-comments): Fix bug with single
+       quotes contained.  Make it more robust regardless by an extra
+       condition-case wrapper.
+
 2008-10-03  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * nnml.el (nnml-request-expire-articles): Check if the function set to
index 4f2e9af..78567f6 100644 (file)
@@ -123,9 +123,18 @@ backslash and doublequote.")
        (setq c (char-after))
        (cond
         ((eq c ?\")
-         (forward-sexp 1))
+         (condition-case err
+             (forward-sexp 1)
+           (error (goto-char (point-max)))))
         ((eq c ?\()
-         (delete-region (point) (progn (forward-sexp 1) (point))))
+         (delete-region
+              (point)
+              (condition-case nil
+                  (with-syntax-table (copy-syntax-table ietf-drums-syntax-table)
+                    (modify-syntax-entry ?\" "w")
+                    (forward-sexp 1)
+                    (point))
+                (error (point-max)))))
         (t
          (forward-char 1))))
       (buffer-string))))