From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: Mysterious hidden end of line characters. Date: Thu, 31 Jan 2008 17:40:21 +0100 Message-ID: <87hcgurlsa.fsf@thievol.homelinux.org> References: <20080126171451.GB20762@univ-fcomte.fr> <6437D39B-1CA5-4BEA-9A6B-09A208114800@Web.DE> <871w7yms5p.fsf@lion.rapttech.com.au> <87bq72b8ko.fsf@thievol.homelinux.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201797162 25697 80.91.229.12 (31 Jan 2008 16:32:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jan 2008 16:32:42 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 31 17:33:02 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JKcLO-0005cV-VW for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jan 2008 17:32:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKcKv-0001fW-DK for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jan 2008 11:32:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKcK0-0000ti-0y for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 11:31:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKcJx-0000qq-UI for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 11:31:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKcJx-0000qT-L2 for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 11:31:25 -0500 Original-Received: from fk-out-0910.google.com ([209.85.128.189]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JKcJx-0001mW-BR for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 11:31:25 -0500 Original-Received: by fk-out-0910.google.com with SMTP id 26so654424fkx.10 for ; Thu, 31 Jan 2008 08:31:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=vTy980TiMwF9K3cjYX/71k0nZS8wTv9L+JtEs90S4Bk=; b=ihWHxnXs127lg1YA0RyASPN1QRCtCg3PH2DgEQgfPX7YrhNMNDc8h65y+iDBEhSdjakIlDBEEN0NaW6W/8vHrsRDC1jbGUnJPLvcOHIjjRIKp2tFZaCCssmtVmFYA0C2MkOiHRXuLr/KZQZ/V8W3qhRnsbxCtjQwgmZvCB6gqL4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=Wk6rcJopbyky4o6XZU0o0sZd77xmbfFCWWOw55MNOOfRYTwwCW9BqBdHUjOWYj0gm+PFDUpr2QqDA5TDTl9it6IcNJJb+aSCCNgQ3XdnxkkBDQmMjJ+Vw9/LoAt2sHxLiusRzx/lxoTlpUzUYVgSt+kFjSXO+lkfGzsnx1bKzbw= Original-Received: by 10.82.116.15 with SMTP id o15mr4153008buc.3.1201797084027; Thu, 31 Jan 2008 08:31:24 -0800 (PST) Original-Received: from thievol.homelinux.org ( [78.114.26.41]) by mx.google.com with ESMTPS id f31sm4880846fkf.15.2008.01.31.08.31.22 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 31 Jan 2008 08:31:23 -0800 (PST) In-Reply-To: (Peter Dyballa's message of "Thu, 31 Jan 2008 12:17:59 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51135 Archived-At: Peter Dyballa writes: > Am 31.01.2008 um 11:20 schrieb Thierry Volpiatto: > >> The problem is when locale is french or else maybe, the regex that >> match "Mot de passe :" don't exist. > > Could be this works: > > "\\(\\(\\(Enter \\|[Oo]ld \\|[Nn]ew \\|'s \\|login \\|Kerberos > \\| > CVS \\|UNIX \\| SMB \\|LDAP \\|\\[sudo] \\|^\\)[Pp]assword\\( (again)\ > \)?\\|pass phrase\\|\\(Enter \\|Repeat \\|Bad \\)?[Pp]assphrase\\)\\ > (?:, try again\\)\\|Mot de passe \\)?\\(?: for [^:]+\\)?:\\s *\\'" > > > It's a very complicated structure that takes into account that you > might fail to enter correctly a Kerberos, or CVS, or SMB, or LDAP > password, some pass phrase, and I don't know what else. > > Forgetting all this troublesome stuff, just describe another option > > \\|Mot de passe > > with a final SPC that is then followed by > > ?\\(?: for [^:]+\\) > > so you have to put everything before this expression into a froup with > \\(...\\). Or this is more correct? > > "\\(\\(\\(Enter \\|[Oo]ld \\|[Nn]ew \\|'s \\|login \\|Kerberos > \\| > CVS \\|UNIX \\| SMB \\|LDAP \\|\\[sudo] \\|^\\)[Pp]assword\\( (again)\ > \)?\\|pass phrase\\|\\(Enter \\|Repeat \\|Bad \\)?[Pp]assphrase\\)\\ > (?:, try again\\)?\\(?: for [^:]+\\)\\|Mot de passe \\)?:\\s *\\'" > > Mostly guessing, not completely understanding. I have tested it in ubuntu and here in gentoo Tramp prompt, sudo are not affected, it work. So here to have password hidden with french prompt: (setq comint-password-prompt-regexp "\\(\\(\\(Enter \\|[Oo]ld \\|[Nn]ew \\|'s \\|login \\|Kerberos \\| CVS \\|UNIX \\| SMB \\|LDAP \\|\\[sudo] \\|^\\)[Pp]assword\\( (again)\ \)?\\|pass phrase\\|\\(Enter \\|Repeat \\|Bad \\)?[Pp]assphrase\\)\\ (?:, try again\\)\\|Mot de passe \\)?\\(?: for [^:]+\\)?:\\s *\\'") Thank you for your help. -- A + Thierry Pub key: http://pgp.mit.edu