(mail-strip-quoted-names): Catch errors from forward-sexp.

This commit is contained in:
Richard M. Stallman 1993-05-26 18:00:55 +00:00
parent 0a9b0670a4
commit c5fb599fa1

View file

@ -75,7 +75,11 @@ Return a modified address list."
(forward-char -1)
(skip-chars-backward " \t")
(delete-region (point)
(save-excursion (forward-sexp 1) (point))))
(save-excursion
(condition-case ()
(forward-sexp 1)
(error (goto-char (point-max))))
(point))))
(setq address (buffer-string))
(erase-buffer))
;; Strip non-nested comments an easier way.