[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
patch to textmodes/tex-mode.el for tex-view
From: |
David Casperson |
Subject: |
patch to textmodes/tex-mode.el for tex-view |
Date: |
Tue, 15 Mar 2005 08:00:39 -0800 (PST) |
> ...Please describe exactly what actions triggered the bug
> and the precise symptoms of the bug:
(Note: this bug is independent of most of the following attached
information. It dates back several versions of emacs.)
The symptoms are. M-x tex-view fails if the *tex-shell*
process is not alive (perhaps because the user killed the *tex-shell*
buffer, perhaps because the user is trying to run tex-view after
restarting emacs itself before running tex-file).
The following patch to lisp/textmodes/tex-mode.el (pardon the
re-naming in the diff) cures this.
*** tex-view-old.el Tue Mar 15 10:32:17 2005
--- tex-fix-view.el Tue Mar 15 10:33:30 2005
***************
*** 1,12 ****
--- 1,15 ----
(defun tex-view ()
"Preview the last `.dvi' file made by running TeX under Emacs.
This means, made using \\[tex-region], \\[tex-buffer] or \\[tex-file].
The variable `tex-dvi-view-command' specifies the shell command for preview.
You must set that variable yourself before using this command,
because there is no standard value that would generally work."
(interactive)
(or tex-dvi-view-command
(error "You must set `tex-dvi-view-command'"))
+ ;; Restart the TeX shell if necessary.
+ (or (tex-shell-running)
+ (tex-start-shell))
(let ((tex-dvi-print-command (eval tex-dvi-view-command)))
(tex-print)))
--David
What follows is likely irrelevant.
In GNU Emacs 21.3.50.2 (powerpc-apple-darwin7.0.0)
of 2003-11-14 on marx.local
configured using `configure '--enable-carbon-app=/Applications' '--without-x'
'--prefix=/Applications/Emacs.app/Contents/Resources''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
locale-coding-system: nil
default-enable-multibyte-characters: t
Major mode: Emacs-Lisp
Minor modes in effect:
encoded-kbd-mode: t
msb-mode: t
mouse-wheel-mode: t
eldoc-mode: t
menu-bar-mode: t
global-font-lock-mode: t
font-lock-mode: t
unify-8859-on-encoding-mode: t
column-number-mode: t
line-number-mode: t
Recent input:
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-v C-v C-v q C-x
k <return> y e s <return> C-x k <return> C-o M-x d
e b <tab> - o n <tab> <return> m a i l <return> q <menu-bar>
<help-menu> <report-emacs-bug> M-p M-p <return> d d
C-n <tab> q M-x f i n d - f <tab> u <tab> <return>
m a i l <return> C-M-x C-x k <return> <menu-bar> <help-menu>
<report-emacs-bug>
Recent messages:
mouse-2, RET: find function's definition
Back to top level.
Making completion list...
Matches initialized)) [1582]
mail
Entering debugger...
mouse-2, RET: find function's definition
Matches page-delimiter))) [531]
Loading derived...done
Back to top level.
w
--
Dr. David Casperson | address@hidden
Computer Science | x6672 Fax.5544
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- patch to textmodes/tex-mode.el for tex-view,
David Casperson <=