From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: pasting a password Date: Sun, 16 Nov 2008 09:38:08 +0100 Message-ID: References: <87skpsw6oe.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1226824709 12045 80.91.229.12 (16 Nov 2008 08:38:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Nov 2008 08:38:29 +0000 (UTC) Cc: 1104@emacsbugs.donarmstrong.com, jidanni@jidanni.org, emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 16 09:39:32 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 1L1dAJ-0003fb-Vj for ged-emacs-devel@m.gmane.org; Sun, 16 Nov 2008 09:39:32 +0100 Original-Received: from localhost ([127.0.0.1]:38822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1d9B-00010A-KJ for ged-emacs-devel@m.gmane.org; Sun, 16 Nov 2008 03:38:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L1d97-000105-Bm for emacs-devel@gnu.org; Sun, 16 Nov 2008 03:38:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L1d95-0000zt-0y for emacs-devel@gnu.org; Sun, 16 Nov 2008 03:38:16 -0500 Original-Received: from [199.232.76.173] (port=40525 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1d94-0000zq-R8 for emacs-devel@gnu.org; Sun, 16 Nov 2008 03:38:14 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:32440) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L1d94-0001Xx-Fn for emacs-devel@gnu.org; Sun, 16 Nov 2008 03:38:14 -0500 Original-Received: from ns.suse.de ([195.135.220.2] helo=mx1.suse.de) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L1d93-000378-95 for emacs-devel@gnu.org; Sun, 16 Nov 2008 03:38:13 -0500 Original-Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id ECECE429DB; Sun, 16 Nov 2008 09:38:09 +0100 (CET) X-Yow: Hello. I know the divorce rate among unmarried Catholic Alaskan females!! In-Reply-To: <87skpsw6oe.fsf@cyd.mit.edu> (Chong Yidong's message of "Sun, 16 Nov 2008 01:01:21 -0500") User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.3 (gnu/linux) X-detected-kernel: by mx20.gnu.org: Linux 2.4-2.6 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:105712 Archived-At: Chong Yidong writes: > --- 1818,1845 ---- > (setq c (read-char-exclusive nil t)) > (and (/=3D c ?\r) (/=3D c ?\n) (/=3D c ?\e))) > (clear-this-command-keys) > ! (cond ((=3D c ?\C-u) > ! (and (arrayp pass) (clear-string pass)) > ! (setq pass "")) > ! ((memq (key-binding (vector c)) > ! '(yank yank-pop)) That does not work for yank-pop since the default binding is not a single character one. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different."