aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes/sgml-mode.el
diff options
context:
space:
mode:
authorChong Yidong <[email protected]>2007-05-28 14:10:50 +0000
committerChong Yidong <[email protected]>2007-05-28 14:10:50 +0000
commit03b1a68c4f953202e20ceea82f3a96c40e211095 (patch)
treefd99c458d854e1577b6f7cfbe8baeeba35a758b5 /lisp/textmodes/sgml-mode.el
parent7936011cd69642c7b7200dd8321b68dc44b2c50f (diff)
(sgml-point-entered): Use condition-case.
Diffstat (limited to 'lisp/textmodes/sgml-mode.el')
-rw-r--r--lisp/textmodes/sgml-mode.el23
1 files changed, 13 insertions, 10 deletions
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index 5e599ea10e..5ac9d3fb63 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)