From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: [patch] Prompt problems in tcl-mode
Date: Tue, 18 Apr 2006 17:16:58 -0400 [thread overview]
Message-ID: <87wtdmk2ny.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <877j5mwr28.fsf@Jesper-Harders-Computer.local> (Jesper Harder's message of "Tue, 18 Apr 2006 22:45:51 +0200")
> The following patch adresses two problems in Tcl mode:
Thanks. I've installed a similar patch.
> * On ms-windows /no/ prompt is displayed. The reason is explained on
> <http://wiki.tcl.tk/3005>:
> [..] on Windows, Emacs is unable to make the Tcl interpreter
> start in the "interactive" mode. The problem is that Tcl calls
> istty() to determine whether tcl_interactive should be set and
> whether prompts should be displayed. But the Windows version of
> Emacs can not make istty() return the right value so this
> doesn't happen and tclsh thinks it's running non-interactive.
> My change makes it work out-of-the-box if you're using tclsh. It
> doesn't fix it if you're using wish, though (which is the default in
> Emacs).
I've used a slightly different check (check process-tty-name instead of
system-type=windows-nt, see below), hoping to make it more specific (and
more general at the same time). Can you confirm that it works as well for
you,
Stefan
@@ -1149,7 +1153,12 @@
(unless (comint-check-proc "*inferior-tcl*")
(set-buffer (apply (function make-comint) "inferior-tcl" cmd nil
tcl-command-switches))
- (inferior-tcl-mode))
+ (inferior-tcl-mode)
+ ;; Make tclsh display a prompt on ms-windows (or under Unix, when a tty
+ ;; wasn't used). Doesn't affect wish, unfortunately.
+ (unless (process-tty-name (inferior-tcl-proc))
+ (tcl-send-string (inferior-tcl-proc)
+ "set ::tcl_interactive 1; concat\n")))
(set (make-local-variable 'tcl-application) cmd)
(setq inferior-tcl-buffer "*inferior-tcl*")
(pop-to-buffer "*inferior-tcl*"))
next prev parent reply other threads:[~2006-04-18 21:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-18 20:45 [patch] Prompt problems in tcl-mode Jesper Harder
2006-04-18 21:16 ` Stefan Monnier [this message]
2006-04-18 21:38 ` Jesper Harder
2006-04-19 7:43 ` Eli Zaretskii
2006-04-19 12:04 ` Stefan Monnier
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=87wtdmk2ny.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
/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).