From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Newsgroups: gmane.emacs.help Subject: Re: Mysterious hidden end of line characters. Date: Thu, 31 Jan 2008 18:54:30 +0100 Message-ID: <20080131175430.GA8312@univ-fcomte.fr> References: <20080131170759.CC0B71BC00C@ufc.univ-fcomte.fr> Reply-To: dpleydel@univ-fcomte.fr NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1201801942 13019 80.91.229.12 (31 Jan 2008 17:52:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jan 2008 17:52:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 31 18:52:42 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 1JKdaF-0000Hj-Hh for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jan 2008 18:52:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKdZo-0007Ph-6J for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jan 2008 12:51:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKdZW-0007OD-42 for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 12:51:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKdZV-0007Nu-EG for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 12:51:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKdZV-0007Np-4b for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 12:51:33 -0500 Original-Received: from ufc.univ-fcomte.fr ([194.57.91.200]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JKdZU-0001yy-Hj for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 12:51:32 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ufc.univ-fcomte.fr (Postfix) with ESMTP id EC87A3BC036 for ; Thu, 31 Jan 2008 18:51:31 +0100 (CET) Original-Received: from ufc.univ-fcomte.fr ([127.0.0.1]) by localhost (ufc.univ-fcomte.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18955-09-2 for ; Thu, 31 Jan 2008 18:51:30 +0100 (CET) Original-Received: from ufc204.univ-fcomte.fr (ufc204.univ-fcomte.fr [194.57.91.204]) by ufc.univ-fcomte.fr (Postfix) with ESMTP id 130E01BC02F for ; Thu, 31 Jan 2008 18:51:30 +0100 (CET) Original-Received: from dell-1 (localhost.localdomain [127.0.0.1]) by ufc204.univ-fcomte.fr (Postfix) with SMTP id 029523C2913 for ; Thu, 31 Jan 2008 18:51:29 +0100 (CET) Original-Received: by dell-1 (sSMTP sendmail emulation); Thu, 31 Jan 2008 18:54:30 +0100 Content-Disposition: inline In-Reply-To: <20080131170759.CC0B71BC00C@ufc.univ-fcomte.fr> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: amavisd-new at univ-fcomte.fr X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:51139 Archived-At: > >> 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. >=20 > I have tested it in ubuntu and here in gentoo > Tramp prompt, sudo are not affected, it work. >=20 > So here to have password hidden with french prompt: >=20 > (setq comint-password-prompt-regexp=20 > "\\(\\(\\(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 *\\'") >=20 > Thank you for your help. =20 Hi Thierry Thaks for going into such depth, you guys are going way deeper than I am able to here. Unfortunately this doesn't work in my *shell*, I still see the characters typed at the password: prompt. But I don't mind. I love the M-x term for running mutt and M-x eshell seems very cool for super user tasks, unlike the terminal emulator you don't loose the emacs functionality. I have one small proble with the eshell, after running su my promt is a bit naff. ~ $ su Password:=20 =1B[1;31mdell-1 /home/dave #=1B[0m=20 What options are there for having a nicer prompt in eshell? It would be nice to show the path in the prompt when the path is short or abreviate the path in the prompt when the path is long. Am I dreaming? cheers Dave