(auto-compose-chars): Execute the main code in
condition-case.
This commit is contained in:
parent
7bd9c08341
commit
1b9d98764d
1 changed files with 11 additions and 7 deletions
|
@ -431,12 +431,15 @@ This function is the default value of `auto-composition-function' (which see)."
|
|||
(save-buffer-state nil
|
||||
(save-excursion
|
||||
(save-match-data
|
||||
(let ((start pos)
|
||||
(limit (if string (length string) (point-max)))
|
||||
ch func newpos)
|
||||
(setq limit (or (text-property-any pos limit 'auto-composed t string)
|
||||
limit)
|
||||
pos (catch 'tag
|
||||
(condition-case nil
|
||||
(let ((start pos)
|
||||
(limit (if string (length string) (point-max)))
|
||||
ch func newpos)
|
||||
(setq limit
|
||||
(or (text-property-any pos limit 'auto-composed t string)
|
||||
limit)
|
||||
pos
|
||||
(catch 'tag
|
||||
(if string
|
||||
(while (< pos limit)
|
||||
(setq ch (aref string pos))
|
||||
|
@ -459,7 +462,8 @@ This function is the default value of `auto-composition-function' (which see)."
|
|||
(setq pos newpos)
|
||||
(setq pos (1+ pos)))))
|
||||
limit))
|
||||
(put-text-property start pos 'auto-composed t string))))))
|
||||
(put-text-property start pos 'auto-composed t string))
|
||||
(error nil))))))
|
||||
|
||||
(setq auto-composition-function 'auto-compose-chars)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue