From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: pasting a password Date: Sun, 16 Nov 2008 18:10:59 -0500 Message-ID: References: <87ljvj75lt.fsf@jidanni.org> <877i737529.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226877048 28111 80.91.229.12 (16 Nov 2008 23:10:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Nov 2008 23:10:48 +0000 (UTC) Cc: schwab@suse.de, emacs-devel@gnu.org, 1104-done@emacsbugs.donarmstrong.com, jidanni@jidanni.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 17 00:11:48 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L1qmS-0003DG-Hj for ged-emacs-devel@m.gmane.org; Mon, 17 Nov 2008 00:11:48 +0100 Original-Received: from localhost ([127.0.0.1]:58630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1qlK-0005Ny-3W for ged-emacs-devel@m.gmane.org; Sun, 16 Nov 2008 18:10:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L1qlF-0005Nt-QB for emacs-devel@gnu.org; Sun, 16 Nov 2008 18:10:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L1qlE-0005Nh-Af for emacs-devel@gnu.org; Sun, 16 Nov 2008 18:10:33 -0500 Original-Received: from [199.232.76.173] (port=51652 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1qlE-0005Ne-3d for emacs-devel@gnu.org; Sun, 16 Nov 2008 18:10:32 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:47346) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L1qlD-0003c0-RI for emacs-devel@gnu.org; Sun, 16 Nov 2008 18:10:31 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhIFABc3IElMCrcy/2dsb2JhbACBbMI2iG2CAHmBFA X-IronPort-AV: E=Sophos;i="4.33,615,1220241600"; d="scan'208";a="29941906" Original-Received: from 76-10-183-50.dsl.teksavvy.com (HELO pastel.home) ([76.10.183.50]) by ironport2-out.teksavvy.com with ESMTP; 16 Nov 2008 18:10:31 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 5E6E084E1; Sun, 16 Nov 2008 18:10:59 -0500 (EST) In-Reply-To: <877i737529.fsf@cyd.mit.edu> (Chong Yidong's message of "Sun, 16 Nov 2008 16:07:42 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:105731 Archived-At: > I added a C-y binding to read-passwd. More complicated stuff, such as > allowing mouse pastes, will have to wait for a isearch-like rewrite of > read-passwd, as Stefan said. How 'bout using a completely different approach: setup a display-table so that all chars get displayed as *, or else (so that the prompt can be displayed properly) use an after-change-function to add a `display' (or composition) property. I.e. use normal editing, and only cause the display to use *. Stefan