unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Colin S. Miller" <no-spam-thank-you@csmiller.demon.co.uk>
Subject: Re: Turn off password prompting on specific buffer
Date: Sat, 25 Feb 2006 10:44:02 +0000	[thread overview]
Message-ID: <440034be$0$15789$14726298@news.sunsite.dk> (raw)
In-Reply-To: <1140796627.882817.79080@t39g2000cwt.googlegroups.com>

gamename wrote:
> Hi,
> 
> How do I turn off "comint-watch-for-password-prompt" on a particular
> buffer?  I'm testing apps in a shell buffer which uses the "password:"
> string.  This confuses comint.
> 
> TIA,
> -T
> 

Gamename,

Try
(make-local-variable 'comint-password-prompt-regexp)
(setq comint-password-prompt-regexp [?^ 0 ?$])

This makes the password-prompt string local to the current buffer
(the shell), and then sets it to a single Ctrl-@ (ASCII 0) on a line,
hopefully that sequence will never appear.

HTH,
Colin S. Miller

-- 
Replace the obvious in my email address with the first three letters of the hostname to reply.

  reply	other threads:[~2006-02-25 10:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-24 15:57 Turn off password prompting on specific buffer gamename
2006-02-25 10:44 ` Colin S. Miller [this message]
2006-02-27 16:36 ` Kevin Rodgers
2006-03-05 21:30 ` 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='440034be$0$15789$14726298@news.sunsite.dk' \
    --to=no-spam-thank-you@csmiller.demon.co.uk \
    /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.
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).