From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Lamb Newsgroups: gmane.emacs.bugs Subject: bug#11397: 24.1.50; permanent-local after-change-functions + read-passwd == unusable minibuffer Date: Wed, 2 May 2012 19:48:04 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1336002518 13598 80.91.229.3 (2 May 2012 23:48:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 May 2012 23:48:38 +0000 (UTC) To: 11397@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 03 01:48:37 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SPjHe-0000JV-D6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 May 2012 01:48:34 +0200 Original-Received: from localhost ([::1]:50167 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPjHd-0008A4-JF for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 May 2012 19:48:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPjHa-00089n-5Y for bug-gnu-emacs@gnu.org; Wed, 02 May 2012 19:48:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPjHY-0003kr-4V for bug-gnu-emacs@gnu.org; Wed, 02 May 2012 19:48:29 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPjHX-0003kh-V0 for bug-gnu-emacs@gnu.org; Wed, 02 May 2012 19:48:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SPjJ4-0003A4-CH for bug-gnu-emacs@gnu.org; Wed, 02 May 2012 19:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mike Lamb Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 May 2012 23:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11397 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11397-submit@debbugs.gnu.org id=B11397.133600258912127 (code B ref 11397); Wed, 02 May 2012 23:50:02 +0000 Original-Received: (at 11397) by debbugs.gnu.org; 2 May 2012 23:49:49 +0000 Original-Received: from localhost ([127.0.0.1]:34176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SPjIq-00039Y-Qm for submit@debbugs.gnu.org; Wed, 02 May 2012 19:49:49 -0400 Original-Received: from mail-bk0-f44.google.com ([209.85.214.44]:54626) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SPjIo-00039L-Fy for 11397@debbugs.gnu.org; Wed, 02 May 2012 19:49:47 -0400 Original-Received: by bkty8 with SMTP id y8so928421bkt.3 for <11397@debbugs.gnu.org>; Wed, 02 May 2012 16:48:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=7PVrtl7i67g2BM+xdsZ2/LpNATRj9Rltq+OCvkszjN0=; b=VPl37yqIKuu1SQLiU3Vk+s51XW5TuVIcAseBQ45vNWb+mUIshGrDVNeymIEsubUNHG 7RoX9jYOSRQdo21U0WD337r3bVxl/2j0K/HqttxN5JamiYCgFDOQt1ksOqEL0Zf4M6EZ pwerfovJPFvhuWyNeMP2evYknnA7Gm99G69Ovj8urEdSHewJNM4JrBCsTH1wOazzxUSM dOJNOs0vXemy0iRCcLIXHxT/5uZGe7IV+TKXp0x2gObkM6wXRNEIB4bK4siOX/cAGIV0 a52U9xnC3GXtfS3ox63DEI8PqPKRmQ19uclPPpzrUrGs1hgrc2bsszm+VOss0XnDc0Ur 4ZbQ== Original-Received: by 10.204.133.212 with SMTP id g20mr19381bkt.71.1336002484729; Wed, 02 May 2012 16:48:04 -0700 (PDT) Original-Received: by 10.204.153.209 with HTTP; Wed, 2 May 2012 16:48:04 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59714 Archived-At: I have the same issue and it looks like like the same as #11392. I can report it the next time it happens to me but is there anything I can do ahead of time to make the report content more helpful? On Wed, May 2, 2012 at 5:21 PM, Steve Yegge wrote: > Place the following code in a file, e.g. /tmp/hork-emacs.el: > > ;; begin code to place in file: > (defun my-after-change-function (&rest ignored) > =A0"Sample no-op after-change function.") > > (put 'my-after-change-function 'permanent-local-hook t) > > (defun hork-my-minibuffer () > =A0(interactive) > =A0(add-hook 'after-change-functions 'my-after-change-function) > =A0(read-passwd "Enter some text: ") > =A0(message "Your minibuffer should now be horked")) > ;; end code to place in file > > Run emacs -q -l /tmp/hork-emacs.el > Execute M-x hork-my-minibuffer RET RET > > Afterwards, all minibuffer input will be rendered as '.' > characters, as if it were still reading a password. > > This does not happen in Emacs 23. > > Also note that the bug does not manifest if you simply > evaluate the code above. =A0It must be loaded from a file, > at least as far as I can tell (though I do not know why.) > > One possible fix might be to have `read-passwd' remove > its lambda from `after-change-functions' in the unwind forms. > > > > In GNU Emacs 24.1.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) > =A0of 2012-04-16 on stevey.kir.corp.google.com > Windowing system distributor `The X.Org Foundation', version 11.0.6090000= 0 > Important settings: > =A0value of $LC_ALL: nil > =A0value of $LC_COLLATE: nil > =A0value of $LC_CTYPE: nil > =A0value of $LC_MESSAGES: nil > =A0value of $LC_MONETARY: nil > =A0value of $LC_NUMERIC: nil > =A0value of $LC_TIME: nil > =A0value of $LANG: en_US.UTF-8 > =A0value of $XMODIFIERS: nil > =A0locale-coding-system: utf-8-unix > =A0default enable-multibyte-characters: t > > Major mode: Fundamental > > Minor modes in effect: > =A0tooltip-mode: t > =A0mouse-wheel-mode: t > =A0tool-bar-mode: t > =A0menu-bar-mode: t > =A0file-name-shadow-mode: t > =A0global-font-lock-mode: t > =A0blink-cursor-mode: t > =A0auto-composition-mode: t > =A0auto-encryption-mode: t > =A0auto-compression-mode: t > =A0line-number-mode: t > =A0transient-mark-mode: t > > Recent input: > > M-x > r e p o r t - e m > > Recent messages: > For information about GNU Emacs and the GNU system, type C-h C-a. > > Load-path shadows: > None found. > > Features: > (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml > easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 > mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums > mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks > lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt > fringe lisp-mode register page menu-bar rfn-eshadow timer select > scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham > georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao > korean japanese hebrew greek romanian slovak czech european ethiopic > indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple > abbrev minibuffer loaddefs button faces cus-face files text-properties > overlay sha1 md5 base64 format env code-pages mule custom widget > hashtable-print-readable backquote make-network-process dbusbind > dynamic-setting font-render-setting move-toolbar gtk x-toolkit x > multi-tty emacs) > > >