mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(sgml-point-entered): Use condition-case.
This commit is contained in:
parent
7936011cd6
commit
03b1a68c4f
1 changed files with 13 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue