all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Diego Fernandez <difernan@redhat.com>
Cc: 27154@debbugs.gnu.org
Subject: bug#27154: 25.2; python.el shell does not respect getpass.getpass prompt
Date: Wed, 31 May 2017 14:35:20 -0400	[thread overview]
Message-ID: <cawp8wj2mv.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <CAEdj1Jo5tpumf0h_YJO1Gg-jcTP+G7NGtLBs4SkjLVyPwg8Yyg@mail.gmail.com> (Diego Fernandez's message of "Tue, 30 May 2017 16:50:35 -0400")

Diego Fernandez wrote:

> 1. Start emacs
> 2. M-x run-python
> 3. from getpass import getpass; getpass()
> 4. Type in anything
>
> This displays what the user is typing in the shell, but the expected
> behavior is that the text should not be echoed.

Try:
emacs -Q --eval "(add-hook 'inferior-python-mode-hook (lambda () (push
'comint-watch-for-password-prompt comint-output-filter-functions)))" -f run-python

I have no idea whether your usage is common enough that this should be the
default.





  reply	other threads:[~2017-05-31 18:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-30 20:50 bug#27154: 25.2; python.el shell does not respect getpass.getpass prompt Diego Fernandez
2017-05-31 18:35 ` Glenn Morris [this message]
2017-05-31 18:46   ` Glenn Morris
2017-05-31 19:08     ` Diego Fernandez
2017-05-31 19:54       ` Andreas Röhler
2017-05-31 23:48     ` npostavs
2017-06-03  0:07       ` Glenn Morris

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cawp8wj2mv.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=27154@debbugs.gnu.org \
    --cc=difernan@redhat.com \
    /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 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.