[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

*tex-shell* is read only

From: Joe Corneli
Subject: *tex-shell* is read only
Date: Mon, 18 Oct 2004 23:53:01 -0500

In the latest version of CVS emacs, one can't process tex files with
the command `tex-buffer' by default, since the buffer *tex-shell* is
read only.

With -q --no-site-file command line options, issuing C-c C-b in a
sample TeX file gave these messages, but didn't do anything else:

Parsing error messages...
Wrote /home/jcorneli/Classes/statistics/_TZ_27546-lab57-ma-utexas-edu.tex
Added to /home/jcorneli/Classes/statistics/_TZ_27546-lab57-ma-utexas-edu.tex
tex-send-tex-command: Buffer is read-only: #<buffer *tex-shell*>

Here is a diff that provides a quick fix.

diff -c /home/jcorneli/emacs/lisp/textmodes/tex-mode.el 
*** /home/jcorneli/emacs/lisp/textmodes/tex-mode.el     Sat Oct  9 20:51:34 2004
--- /home/jcorneli/site-lisp/tex-mode.el        Mon Oct 18 23:45:38 2004
*** 1479,1485 ****
  (define-derived-mode tex-shell shell-mode "TeX-Shell"
    (set (make-local-variable 'compilation-parse-errors-function)
!   (compilation-shell-minor-mode t))
  (defun tex-start-shell ()
--- 1479,1486 ----
  (define-derived-mode tex-shell shell-mode "TeX-Shell"
    (set (make-local-variable 'compilation-parse-errors-function)
!   (compilation-shell-minor-mode t)
!   (toggle-read-only -1))
  (defun tex-start-shell ()

In GNU Emacs (i686-pc-linux-gnu, X toolkit)
 of 2004-10-18 on lab57
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: nil

Major mode: Emacs-Lisp

Minor modes in effect:
  auto-image-file-mode: t
  show-paren-mode: t
  display-time-mode: t
  mouse-wheel-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
k <return> M-s y y C-x o C-x b h o <tab> <return> C-c 
C-b C-x o C-x b t e <tab> <return> M-x d i f f <tab> 
<return> <return> <M-backspace> <M-backspace> e m a 
c s <tab> / <backspace> l i <tab> s <tab> <tab> / t 
e x <tab> <tab> <tab> t e x <tab> - <tab> <return> 
C-x o <down> <up> C-SPC <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
C-e M-w C-x o M-x r e p l <backspace> o r <tab> <r

Recent messages:
Added to /home/jcorneli/Classes/statistics/_TZ_27482-lab57-ma-utexas-edu.tex
Parsing error messages...done
Loading diff...done
Making completion list... [3 times]
Loading diff-mode...
Loading easy-mmode...done
Loading easymenu...done
Loading diff-mode...done
Mark set
Loading emacsbug...done

reply via email to

[Prev in Thread] Current Thread [Next in Thread]