summaryrefslogtreecommitdiff
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-09-16 21:46:17 -0600
committerTom Tromey <tom@tromey.com>2017-09-16 21:55:05 -0600
commit48d39c39e822a792f7c20254c3d9f94aa298be31 (patch)
tree2c9fee23dfb7a89de5625b3346adbba77e0c5ee3 /lisp/textmodes
parent9d101376b42e51007e7f83b646e172c52251ae1e (diff)
downloademacs-48d39c39e822a792f7c20254c3d9f94aa298be31.tar.gz
Search for Syntax section when viewing MDN
* lisp/textmodes/css-mode.el (css--mdn-after-render): Also search for "Syntax" section.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/css-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el
index dde9e6a8d91..ce9bbf47e77 100644
--- a/lisp/textmodes/css-mode.el
+++ b/lisp/textmodes/css-mode.el
@@ -1578,7 +1578,7 @@ to look up will be substituted there."
(goto-char (point-min))
(let ((window (get-buffer-window (current-buffer) 'visible)))
(when window
- (when (re-search-forward "^Summary" nil 'move)
+ (when (re-search-forward "^\\(Summary\\|Syntax\\)" nil 'move)
(beginning-of-line)
(set-window-start window (point))))))