summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-07-04 04:41:46 +0000
committerRichard M. Stallman <rms@gnu.org>1997-07-04 04:41:46 +0000
commit2a90de0bf8a6538b8e8df01b5a7242a28498a8d1 (patch)
tree8210c097e50cf14f4694bab15678fc54520fa0a6
parenta58324b28a40d3e955f57dc482bf2d98954b1088 (diff)
downloademacs-2a90de0bf8a6538b8e8df01b5a7242a28498a8d1.tar.gz
(tex-common-initialization):
Set search-whitespace-regexp locally.
-rw-r--r--lisp/textmodes/tex-mode.el3
1 files changed, 3 insertions, 0 deletions
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]*\\$\\$")