all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Turn off password prompting on specific buffer
@ 2006-02-24 15:57 gamename
  2006-02-25 10:44 ` Colin S. Miller
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gamename @ 2006-02-24 15:57 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Turn off password prompting on specific buffer
  2006-02-24 15:57 Turn off password prompting on specific buffer gamename
@ 2006-02-25 10:44 ` Colin S. Miller
  2006-02-27 16:36 ` Kevin Rodgers
  2006-03-05 21:30 ` Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Colin S. Miller @ 2006-02-25 10:44 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Turn off password prompting on specific buffer
  2006-02-24 15:57 Turn off password prompting on specific buffer gamename
  2006-02-25 10:44 ` Colin S. Miller
@ 2006-02-27 16:36 ` Kevin Rodgers
  2006-03-05 21:30 ` Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2006-02-27 16:36 UTC (permalink / raw)


gamename wrote:
> 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.

In that buffer, remove comint-watch-for-password-prompt from the buffer
local comint-output-filter-functions abnormal hook:

(remove-hook 'comint-output-filter-functions
              'comint-watch-for-password-prompt
              t) ; this makes the hook buffer-local, and modifies the 
local value

-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Turn off password prompting on specific buffer
  2006-02-24 15:57 Turn off password prompting on specific buffer gamename
  2006-02-25 10:44 ` Colin S. Miller
  2006-02-27 16:36 ` Kevin Rodgers
@ 2006-03-05 21:30 ` Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2006-03-05 21:30 UTC (permalink / raw)


> 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.

You can (set (make-local-variable 'comint-password-prompt-regexp) "\\`a\\`")
But it'd be interesting to see what is the actual string(s) sent by your app
and mistakenly interpreted as a password prompt.  Maybe we make the default
regexp "tighter" so it doesn't get confused?


        Stefan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-03-05 21:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-24 15:57 Turn off password prompting on specific buffer gamename
2006-02-25 10:44 ` Colin S. Miller
2006-02-27 16:36 ` Kevin Rodgers
2006-03-05 21:30 ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.