comparison lisp/textmodes/texinfo.el @ 1577:a52da8d63ff3

Doc fix.
author Christopher Zaborsky <rogue@erratum.com>
date Tue, 10 Nov 1992 20:01:10 +0000
parents a6d32838af49
children f79966ac4f9d
comparison
equal deleted inserted replaced
1576:ddfd236e2c0c 1577:a52da8d63ff3
315 315
316 (defvar texinfo-texindex-command "texindex" 316 (defvar texinfo-texindex-command "texindex"
317 "*Command used by texinfo-texindex to sort unsorted index files.") 317 "*Command used by texinfo-texindex to sort unsorted index files.")
318 318
319 (defun texinfo-tex-region (beg end) 319 (defun texinfo-tex-region (beg end)
320 "Run tex on the current region. A temporary file (tex-zap-file) is 320 "Run tex on the current region.
321 written in directory tex-directory, and tex is run in that directory. 321 A temporary file (`tex-zap-file') is written in directory `tex-directory', and
322 The first line of the file is copied to the temporary file; and 322 tex is run in that directory. The first line of the file is copied to the
323 if the buffer has a header, it is written to the temporary file before 323 temporary file; and if the buffer has a header, it is written to the
324 the region itself. The buffer's header is all lines between the 324 temporary file before the region itself. The buffer's header is all lines
325 strings defined by tex-start-of-header and tex-end-of-header 325 between the strings defined by `tex-start-of-header' and `tex-end-of-header'
326 inclusive. The header must start in the first 100 lines. The value 326 inclusive. The header must start in the first 100 lines. The value of
327 of tex-trailer is appended to the temporary file after the region." 327 tex-trailer is appended to the temporary file after the region."
328 (interactive "r") 328 (interactive "r")
329 (if (get-buffer "*tex-shell*") 329 (if (get-buffer "*tex-shell*")
330 (tex-kill-job) 330 (tex-kill-job)
331 (tex-start-shell)) 331 (tex-start-shell))
332 (or tex-zap-file (setq tex-zap-file (make-temp-name "#tz"))) 332 (or tex-zap-file (setq tex-zap-file (make-temp-name "#tz")))
396 (texinfo-tex-region (point-min) (point-max))) 396 (texinfo-tex-region (point-min) (point-max)))
397 397
398 (defun texinfo-texindex () 398 (defun texinfo-texindex ()
399 "Run texindex on unsorted index files. 399 "Run texindex on unsorted index files.
400 The index files are made by \\[texinfo-tex-region] or \\[texinfo-tex-buffer]. 400 The index files are made by \\[texinfo-tex-region] or \\[texinfo-tex-buffer].
401 Runs the shell command defined by texinfo-texindex-command." 401 Runs the shell command defined by `texinfo-texindex-command'."
402 (interactive) 402 (interactive)
403 (send-string "tex-shell" 403 (send-string "tex-shell"
404 (concat texinfo-texindex-command 404 (concat texinfo-texindex-command
405 " " tex-zap-file ".??" "\n")) 405 " " tex-zap-file ".??" "\n"))
406 (tex-recenter-output-buffer nil)) 406 (tex-recenter-output-buffer nil))
407 407
408 (defun texinfo-tex-print () 408 (defun texinfo-tex-print ()
409 "Print .dvi file made by \\[texinfo-tex-region] or \\[texinfo-tex-buffer]. 409 "Print .dvi file made by \\[texinfo-tex-region] or \\[texinfo-tex-buffer].
410 Runs the shell command defined by tex-dvi-print-command." 410 Runs the shell command defined by `tex-dvi-print-command'."
411 (interactive) 411 (interactive)
412 (send-string "tex-shell" 412 (send-string "tex-shell"
413 (concat tex-dvi-print-command 413 (concat tex-dvi-print-command
414 " " tex-zap-file ".dvi" "\n")) 414 " " tex-zap-file ".dvi" "\n"))
415 (tex-recenter-output-buffer nil)) 415 (tex-recenter-output-buffer nil))