diff options
Diffstat (limited to 'lisp/textmodes')
-rw-r--r-- | lisp/textmodes/dns-mode.el | 2 | ||||
-rw-r--r-- | lisp/textmodes/fill.el | 4 | ||||
-rw-r--r-- | lisp/textmodes/ispell.el | 5 | ||||
-rw-r--r-- | lisp/textmodes/rst.el | 2 | ||||
-rw-r--r-- | lisp/textmodes/tex-mode.el | 18 |
5 files changed, 16 insertions, 15 deletions
diff --git a/lisp/textmodes/dns-mode.el b/lisp/textmodes/dns-mode.el index beab676e30..d5e259e5f9 100644 --- a/lisp/textmodes/dns-mode.el +++ b/lisp/textmodes/dns-mode.el @@ -222,7 +222,7 @@ This function is run from `before-save-hook'." ;; We return nil in case this is used in write-contents-functions. nil))) -;;;###autoload(add-to-list 'auto-mode-alist '("\\.soa\\'" . dns-mode)) +;;;###autoload(add-to-list 'auto-mode-alist (purecopy '("\\.soa\\'" . dns-mode))) (provide 'dns-mode) diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index 26dec949e9..3d0fbae969 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el @@ -92,7 +92,7 @@ reinserts the fill prefix in each resulting line." ;; Added `!' for doxygen comments starting with `//!' or `/*!'. ;; Added `%' for TeX comments. ;; RMS: deleted the code to match `1.' and `(1)'. - "[ \t]*\\([-!|#%;>*·•‣⁃◦]+[ \t]*\\)*" + (purecopy "[ \t]*\\([-!|#%;>*·•‣⁃◦]+[ \t]*\\)*") "Regexp to match text at start of line that constitutes indentation. If Adaptive Fill mode is enabled, a prefix matching this pattern on the first and second lines of a paragraph is used as the @@ -104,7 +104,7 @@ a role." :type 'regexp :group 'fill) -(defcustom adaptive-fill-first-line-regexp "\\`[ \t]*\\'" +(defcustom adaptive-fill-first-line-regexp (purecopy "\\`[ \t]*\\'") "Regexp specifying whether to set fill prefix from a one-line paragraph. When a paragraph has just one line, then after `adaptive-fill-regexp' finds the prefix at the beginning of the line, if it doesn't diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 5005d70d2b..75cc8e0de4 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -1429,6 +1429,7 @@ Valid forms include: ;;;###autoload (defvar ispell-tex-skip-alists + (purecopy '((;;("%\\[" . "%\\]") ; AMStex block comment... ;; All the standard LaTeX keywords from L. Lamport's guide: ;; \cite, \hspace, \hspace*, \hyphenation, \include, \includeonly, \input, @@ -1447,7 +1448,7 @@ Valid forms include: ("\\(figure\\|table\\)\\*?" ispell-tex-arg-end 0) ("list" ispell-tex-arg-end 2) ("program" . "\\\\end[ \t\n]*{[ \t\n]*program[ \t\n]*}") - ("verbatim\\*?" . "\\\\end[ \t\n]*{[ \t\n]*verbatim\\*?[ \t\n]*}"))) + ("verbatim\\*?" . "\\\\end[ \t\n]*{[ \t\n]*verbatim\\*?[ \t\n]*}")))) "*Lists of regions to be skipped in TeX mode. First list is used raw. Second list has key placed inside \\begin{}. @@ -1458,7 +1459,7 @@ for skipping in latex mode.") ;;;###autoload -(defvar ispell-html-skip-alists +(defconst ispell-html-skip-alists '(("<[cC][oO][dD][eE]\\>[^>]*>" "</[cC][oO][dD][eE]*>") ("<[sS][cC][rR][iI][pP][tT]\\>[^>]*>" "</[sS][cC][rR][iI][pP][tT]>") ("<[aA][pP][pP][lL][eE][tT]\\>[^>]*>" "</[aA][pP][pP][lL][eE][tT]>") diff --git a/lisp/textmodes/rst.el b/lisp/textmodes/rst.el index d24bcf7e2b..f94ba6949b 100644 --- a/lisp/textmodes/rst.el +++ b/lisp/textmodes/rst.el @@ -363,7 +363,7 @@ The value of this variable is used when Rst mode is turned on." ;; Use rst-mode for *.rst and *.rest files. Many ReStructured-Text files ;; use *.txt, but this is too generic to be set as a default. -;;;###autoload (add-to-list 'auto-mode-alist '("\\.re?st\\'" . rst-mode)) +;;;###autoload (add-to-list 'auto-mode-alist (purecopy '("\\.re?st\\'" . rst-mode))) ;;;###autoload (define-derived-mode rst-mode text-mode "ReST" "Major mode for editing reStructuredText documents. diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 40d26ee380..9f7ff975e5 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -64,7 +64,7 @@ :group 'tex-run) ;;;###autoload -(defcustom tex-directory "." +(defcustom tex-directory (purecopy ".") "*Directory in which temporary files are written. You can make this `/tmp' if your TEXINPUTS has no relative directories in it and you don't try to apply \\[tex-region] or \\[tex-buffer] when there are @@ -98,7 +98,7 @@ if the variable is non-nil." :group 'tex-file) ;;;###autoload -(defcustom tex-run-command "tex" +(defcustom tex-run-command (purecopy "tex") "*Command used to run TeX subjob. TeX Mode sets `tex-command' to this string. See the documentation of that variable." @@ -106,7 +106,7 @@ See the documentation of that variable." :group 'tex-run) ;;;###autoload -(defcustom latex-run-command "latex" +(defcustom latex-run-command (purecopy "latex") "*Command used to run LaTeX subjob. LaTeX Mode sets `tex-command' to this string. See the documentation of that variable." @@ -114,7 +114,7 @@ See the documentation of that variable." :group 'tex-run) ;;;###autoload -(defcustom slitex-run-command "slitex" +(defcustom slitex-run-command (purecopy "slitex") "*Command used to run SliTeX subjob. SliTeX Mode sets `tex-command' to this string. See the documentation of that variable." @@ -122,7 +122,7 @@ See the documentation of that variable." :group 'tex-run) ;;;###autoload -(defcustom tex-start-options "" +(defcustom tex-start-options (purecopy "") "*TeX options to use when starting TeX. These immediately precede the commands in `tex-start-commands' and the input file name, with no separating space and are not shell-quoted. @@ -132,7 +132,7 @@ If nil, TeX runs with no options. See the documentation of `tex-command'." :version "22.1") ;;;###autoload -(defcustom tex-start-commands "\\nonstopmode\\input" +(defcustom tex-start-commands (purecopy "\\nonstopmode\\input") "*TeX commands to use when starting TeX. They are shell-quoted and precede the input file name, with a separating space. If nil, no commands are used. See the documentation of `tex-command'." @@ -163,7 +163,7 @@ Combined with `latex-standard-block-names' for minibuffer completion." :group 'tex-run) ;;;###autoload -(defcustom tex-bibtex-command "bibtex" +(defcustom tex-bibtex-command (purecopy "bibtex") "*Command used by `tex-bibtex-file' to gather bibliographic data. If this string contains an asterisk (`*'), that is replaced by the file name; otherwise, the file name, preceded by blank, is added at the end." @@ -171,7 +171,7 @@ otherwise, the file name, preceded by blank, is added at the end." :group 'tex-run) ;;;###autoload -(defcustom tex-dvi-print-command "lpr -d" +(defcustom tex-dvi-print-command (purecopy "lpr -d") "*Command used by \\[tex-print] to print a .dvi file. If this string contains an asterisk (`*'), that is replaced by the file name; otherwise, the file name, preceded by blank, is added at the end." @@ -179,7 +179,7 @@ otherwise, the file name, preceded by blank, is added at the end." :group 'tex-view) ;;;###autoload -(defcustom tex-alt-dvi-print-command "lpr -d" +(defcustom tex-alt-dvi-print-command (purecopy "lpr -d") "*Command used by \\[tex-print] with a prefix arg to print a .dvi file. If this string contains an asterisk (`*'), that is replaced by the file name; otherwise, the file name, preceded by blank, is added at the end. |