]> git.eshelyaron.com Git - emacs.git/commitdiff
Search for Syntax section when viewing MDN
authorTom Tromey <tom@tromey.com>
Sun, 17 Sep 2017 03:46:17 +0000 (21:46 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 17 Sep 2017 03:55:05 +0000 (21:55 -0600)
* lisp/textmodes/css-mode.el (css--mdn-after-render): Also search for
"Syntax" section.

lisp/textmodes/css-mode.el

index dde9e6a8d91d2401f1661c301ee28f88db3af76f..ce9bbf47e77867ff85ace1e8cbfbf6dc76fabcdf 100644 (file)
@@ -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))))))