diff options
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/textmodes/sgml-mode.el | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b6f0a0f57bf..9e793bacc5c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2008-01-09 Eric S. Raymond <esr@snark.thyrsus.com> | ||
| 2 | |||
| 3 | * testmodes/sgml-mode.el (sgml-tag-syntax-table): Initialize this | ||
| 4 | constant with a computation on sgml-specials rather than a literal | ||
| 5 | list. Without this change the syntax table is generated | ||
| 6 | incorrectly, and the mode will think it's in a comment following | ||
| 7 | any instance of the string "--". | ||
| 8 | |||
| 1 | 2008-01-09 Tassilo Horn <tassilo@member.fsf.org> | 9 | 2008-01-09 Tassilo Horn <tassilo@member.fsf.org> |
| 2 | 10 | ||
| 3 | * doc-view.el (doc-view-mode-p): Add EPS as supported type. | 11 | * doc-view.el (doc-view-mode-p): Add EPS as supported type. |
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index 0c361463022..e8975252b15 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el | |||
| @@ -159,7 +159,7 @@ This takes effect when first loading the `sgml-mode' library.") | |||
| 159 | "Syntax table used in SGML mode. See also `sgml-specials'.") | 159 | "Syntax table used in SGML mode. See also `sgml-specials'.") |
| 160 | 160 | ||
| 161 | (defconst sgml-tag-syntax-table | 161 | (defconst sgml-tag-syntax-table |
| 162 | (let ((table (sgml-make-syntax-table '(?- ?\" ?\')))) | 162 | (let ((table (sgml-make-syntax-table sgml-specials))) |
| 163 | (dolist (char '(?\( ?\) ?\{ ?\} ?\[ ?\] ?$ ?% ?& ?* ?+ ?/)) | 163 | (dolist (char '(?\( ?\) ?\{ ?\} ?\[ ?\] ?$ ?% ?& ?* ?+ ?/)) |
| 164 | (modify-syntax-entry char "." table)) | 164 | (modify-syntax-entry char "." table)) |
| 165 | table) | 165 | table) |