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:12:45 +0100 Message-ID: <87hcgu2cua.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 1201795875 20418 80.91.229.12 (31 Jan 2008 16:11:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jan 2008 16:11:15 +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:11:36 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 1JKc0c-0004nu-Oz for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jan 2008 17:11:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKc0B-0005lg-C2 for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jan 2008 11:10:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKbtJ-0002Jg-Ku for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 11:03:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKbtH-0002IL-5V for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 11:03:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKbtG-0002ID-QN for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 11:03:50 -0500 Original-Received: from fk-out-0910.google.com ([209.85.128.185]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JKbtG-00038z-DN for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 11:03:50 -0500 Original-Received: by fk-out-0910.google.com with SMTP id 26so643655fkx.10 for ; Thu, 31 Jan 2008 08:03:49 -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=TW+XceaD0cGK4xFlwoL3UyxV7arGKtbcSxC5f4s0G8Q=; b=svVZDOe5rSfG/TSsJ9rDi9rVNx6JJrY/nwR2EU+TNQpdZjxXos/t0e7CTl+LdAFVH4MQB9qQ7HhYLx+JvCwR3ibCnOmS8dJieLq5Ca2icYP5NB/ggBKOMF3ueVuT5dixHEqvtej2hI2xRVxU3E4ncKYveFuOmQkccR5x+LQ0+lE= 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=s0poX02x3iKA292PSQPm/qB36VHQIJ+cmbG22+7oVdl+G6Zjrtsllyac0JnEPn23tiZ6kjs7sPHbNkVqef2EX8dZW4KTGfDKRWKRJ7rmeXLFr7QnRlD9M4kUsK0CvC+J0Cz/QIkCLXZLXMwmPvDuBVFVxn1mUUF2T0bx3v5PEdE= Original-Received: by 10.82.172.10 with SMTP id u10mr4070288bue.14.1201795428855; Thu, 31 Jan 2008 08:03:48 -0800 (PST) Original-Received: from thievol.homelinux.org ( [78.114.26.41]) by mx.google.com with ESMTPS id k29sm4824536fkk.5.2008.01.31.08.03.46 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 31 Jan 2008 08:03:47 -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:51129 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. Sorry, your first one seem good: (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 *\\'") I keep trying but it seem working. -- A + Thierry Pub key: http://pgp.mit.edu