On Mon, 12 Oct 2020 20:38:15 +0300 Eli Zaretskii wrote: >> From: Stephen Berman >> Cc: Stephen Berman , jidanni@jidanni.org, >> 43941@debbugs.gnu.org >> Date: Mon, 12 Oct 2020 19:21:08 +0200 >> >> diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el >> index f3d8695e24..92a2215ed7 100644 >> --- a/lisp/textmodes/sgml-mode.el >> +++ b/lisp/textmodes/sgml-mode.el >> @@ -193,7 +193,7 @@ sgml-mode-syntax-table >> >> (defconst sgml-tag-syntax-table >> (let ((table (sgml-make-syntax-table sgml-specials))) >> - (dolist (char '(?\( ?\) ?\{ ?\} ?\[ ?\] ?$ ?% ?& ?* ?+ ?/)) >> + (dolist (char '(?\( ?\) ?\{ ?\} ?\[ ?\] ?$ ?% ?& ?* ?+ ?/ ?()) >> (modify-syntax-entry char "." table)) >> (unless (memq ?' sgml-specials) >> ;; Avoid that skipping a tag backwards skips any "'" prefixing it. >> >> If this is the right approach, then all such characters would have to be >> added, or is there a better alternative? > > It shouldn't be hard to add to the list some of the characters that > have the paired bracket semantics, see uni-brackets.el. Some, but which? I used the following the code to add all the paired-bracket characters listed in that file: