diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2007-05-28 14:10:50 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2007-05-28 14:10:50 +0000 |
commit | 03b1a68c4f953202e20ceea82f3a96c40e211095 (patch) | |
tree | fd99c458d854e1577b6f7cfbe8baeeba35a758b5 /lisp/textmodes | |
parent | 7936011cd69642c7b7200dd8321b68dc44b2c50f (diff) | |
download | emacs-03b1a68c4f953202e20ceea82f3a96c40e211095.tar.gz |
(sgml-point-entered): Use condition-case.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r-- | lisp/textmodes/sgml-mode.el | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index 5e599ea10e6..5ac9d3fb63e 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el @@ -897,16 +897,19 @@ With prefix argument ARG, repeat this ARG times." ;; Show preceding or following hidden tag, depending of cursor direction. (let ((inhibit-point-motion-hooks t)) (save-excursion - (message "Invisible tag: %s" - ;; Strip properties, otherwise, the text is invisible. - (buffer-substring-no-properties - (point) - (if (or (and (> x y) - (not (eq (following-char) ?<))) - (and (< x y) - (eq (preceding-char) ?>))) - (backward-list) - (forward-list))))))) + (condition-case nil + (message "Invisible tag: %s" + ;; Strip properties, otherwise, the text is invisible. + (buffer-substring-no-properties + (point) + (if (or (and (> x y) + (not (eq (following-char) ?<))) + (and (< x y) + (eq (preceding-char) ?>))) + (backward-list) + (forward-list)))) + (error nil))))) + (defun sgml-validate (command) |