aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Fox1993-09-21 07:48:37 +0000
committerBrian Fox1993-09-21 07:48:37 +0000
commitbd2f232330d4ed86ba51dbc50139c9c52b837f51 (patch)
tree12ca58190ca0871887045b9de21d0a8f2842e1cc
parent80e7b471b6dd14561f9dc314922467423e55fc5b (diff)
downloademacs-bd2f232330d4ed86ba51dbc50139c9c52b837f51.tar.gz
emacs-bd2f232330d4ed86ba51dbc50139c9c52b837f51.zip
(slitex-mode): Add ###autoload magic cookie.
-rw-r--r--lisp/textmodes/tex-mode.el36
1 files changed, 36 insertions, 0 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index edf48c17d65..0c9c28a0411 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -354,6 +354,7 @@ subshell is initiated, the value of tex-shell-hook is called."
354 (setq tex-trailer "\\end{document}\n") 354 (setq tex-trailer "\\end{document}\n")
355 (run-hooks 'text-mode-hook 'tex-mode-hook 'latex-mode-hook)) 355 (run-hooks 'text-mode-hook 'tex-mode-hook 'latex-mode-hook))
356 356
357;;;###autoload
357(defun slitex-mode () 358(defun slitex-mode ()
358 "Major mode for editing files of input for SliTeX. 359 "Major mode for editing files of input for SliTeX.
359Makes $ and } display the characters they match. 360Makes $ and } display the characters they match.
@@ -976,6 +977,41 @@ so normally SUFFIX starts with one."
976 suffix)) 977 suffix))
977 " ")) 978 " "))
978 979
980;;; Use this code after discussing with rms. (bfox@ai.mit.edu)
981;;; Date: Tue, 31 Aug 1993 14:30:26 EDT
982;;; From: Stephen Gildea <gildea@expo2.x.org>
983;;; Sender: gnulists@ai.mit.edu
984;;; Resent-From: bug-gnu-emacs-request@prep.ai.mit.edu
985;;;
986;;; The function tex-append in Emacs 19.19 needs to be updated for the
987;;; newer C version of TeX, which parses filenames differently.
988;;; Pascal-based TeX scans for the first period; C TeX uses the last.
989;;; Here is a version of tex-append which tries both ways.
990;;;
991;;; (defun tex-append (file-name suffix)
992;;; "Append to FILENAME the suffix SUFFIX, using same algorithm TeX uses.
993;;; Pascal-based TeX scans for the first period, C TeX uses the last.
994;;; No period is retained immediately before SUFFIX,
995;;; so normally SUFFIX starts with one."
996;;; (if (stringp file-name)
997;;; (let ((file (file-name-nondirectory file-name))
998;;; trial-name)
999;;; ;; try spliting on first period
1000;;; (setq trial-name
1001;;; (concat (file-name-directory file-name)
1002;;; (substring file 0
1003;;; (string-match "\\." file))
1004;;; suffix))
1005;;; (if (or (file-exists-p trial-name)
1006;;; (file-exists-p (concat trial-name ".aux"))) ;for BibTeX files
1007;;; trial-name
1008;;; ;; not found, so split on last period
1009;;; (concat (file-name-directory file-name)
1010;;; (substring file 0
1011;;; (string-match "\\.[^.]*$" file))
1012;;; suffix)))
1013;;; " "))
1014
979(defun tex-show-print-queue () 1015(defun tex-show-print-queue ()
980 "Show the print queue that \\[tex-print] put your job on. 1016 "Show the print queue that \\[tex-print] put your job on.
981Runs the shell command defined by `tex-show-queue-command'." 1017Runs the shell command defined by `tex-show-queue-command'."