From 822eddf41c060ea6db6887cccc42c21a8c5a7992 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 4 Jul 1997 04:41:46 +0000 Subject: [PATCH] (tex-common-initialization): Set search-whitespace-regexp locally. --- lisp/textmodes/tex-mode.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 6ca1447a9f9..606205404e9 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -666,6 +666,9 @@ Entering SliTeX mode runs the hook `text-mode-hook', then the hook (modify-syntax-entry ?~ " ") (modify-syntax-entry ?' "w")) (set-syntax-table tex-mode-syntax-table)) + ;; Regexp isearch should accept newline and formfeed as whitespace. + (make-local-variable 'search-whitespace-regexp) + (setq search-whitespace-regexp "[ \t\r\n\f]+") (make-local-variable 'paragraph-start) ;; A line containing just $$ is treated as a paragraph separator. (setq paragraph-start "[ \t]*$\\|[\f\\\\%]\\|[ \t]*\\$\\$") -- 2.39.2