From: Chip Coldwell <coldwell@frank.harvard.edu>
Subject: Emacs 21.3.50.1 (CVS sources) tex-mode bug
Date: Sun, 16 Jan 2005 13:44:59 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.58.0501161332240.913@physics.harvard.edu> (raw)
I realize that I should expect problems if I choose to live on the
bleeding edge, but I figure I might as well report this problem just
in case the developers aren't already aware of it.
The problem is with Emacs 21.3.50.1 that I checked out from CVS
sources and compiled using the emacs/mac/make-package shell script on
the Macintosh OS X (10.3.7). If I am editing in tex-mode and I run
the function 'tex-file' (by default bound to C-c C-f) emacs goes into
an infinite loop. The loop is in the function tex-mode.el:tex-start-shell
(defun tex-start-shell ()
(with-current-buffer
(make-comint
"tex-shell"
(or tex-shell-file-name (getenv "ESHELL") shell-file-name)
nil)
(let ((proc (get-process "tex-shell")))
(set-process-sentinel proc 'tex-shell-sentinel)
(set-process-query-on-exit-flag proc nil)
(tex-shell)
(while (zerop (buffer-size))
(sleep-for 1)))))
The function creates a shell using "make-comint", then waits for the
shell to start in the loop at the bottom. Presumably, when the shell
has started, it will issue a prompt and the (buffer-size) procedure
will return non-zero and break out of the loop. The problem is that
it never does.
I tried the following trivial program
(setq subshell (make-comint "subshell" "/bin/bash"))
(switch-to-buffer subshell)
And it does indeed create a subshell in a buffer, but the shell never
issues a prompt string. Setting the PS1 environment variable has no
effect in this buffer, for reasons I haven't figured out yet.
Chip
--
Charles M. "Chip" Coldwell
"Turn on, log in, tune out"
next reply other threads:[~2005-01-16 18:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-16 18:44 Chip Coldwell [this message]
2005-01-16 19:51 ` Emacs 21.3.50.1 (CVS sources) tex-mode bug Chip Coldwell
2005-01-16 20:37 ` Andreas Schwab
2005-01-17 23:42 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.58.0501161332240.913@physics.harvard.edu \
--to=coldwell@frank.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).