From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: Turn off password prompting on specific buffer Date: Sat, 25 Feb 2006 10:44:02 +0000 Organization: SunSITE.dk - Supporting Open source Message-ID: <440034be$0$15789$14726298@news.sunsite.dk> References: <1140796627.882817.79080@t39g2000cwt.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1141187993 15007 80.91.229.2 (1 Mar 2006 04:39:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Mar 2006 04:39:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 01 05:39:51 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FEJ7u-0001S9-SN for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Mar 2006 05:39:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FEJ7u-0006Ia-Ae for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Feb 2006 23:39:50 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!news.glorb.com!dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Debian Thunderbird 1.0.2 (X11/20051002) X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: <1140796627.882817.79080@t39g2000cwt.googlegroups.com> Original-Lines: 26 Original-NNTP-Posting-Host: 62.56.37.31 Original-X-Trace: news.sunsite.dk DXC=V4dk_X; C1CX5LoVIWDNeH\YSB=nbEKnk[ie8LN_Q]1UTG1[Bg<0aH5P\VT\m5_SIbVU_42Df:PaKXTcL2h5ahoT_kF_>m>CYcV_[a\`18CK[_VooY][oN List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33426 Archived-At: 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.