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 19:28:49 +0100 Message-ID: <87hcgtetni.fsf@thievol.homelinux.org> References: <20080131170759.CC0B71BC00C@ufc.univ-fcomte.fr> <20080131175430.GA8312@univ-fcomte.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201803637 20111 80.91.229.12 (31 Jan 2008 18:20:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jan 2008 18:20:37 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: dpleydel@univ-fcomte.fr Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 31 19:20:57 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 1JKe1g-000528-2K for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jan 2008 19:20:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKe1E-0008TD-Me for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jan 2008 13:20:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKe0y-0008Re-Ik for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 13:19:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKe0x-0008Pc-8V for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 13:19:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKe0x-0008PH-0J for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 13:19:55 -0500 Original-Received: from ug-out-1314.google.com ([66.249.92.171]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JKe0w-0008VQ-Lg for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 13:19:54 -0500 Original-Received: by ug-out-1314.google.com with SMTP id a2so867064ugf.48 for ; Thu, 31 Jan 2008 10:19:53 -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=hB0O7Hv8i5gxezudFZRK3S9nc3ZS8UCq20vsGRIB6qY=; b=aBOSXK9JMH/m6KSj5Ec2R1OqmE6GNZuPSLt1igtY4XeV/oHdsaAWCxUy7tFx3PPQI4D6d9eBkE4CgFZAxTBBX0bJaCykCUPyNZ3MUejHG3/jXevqQjQsiEzT9nb4Tx4agIngVJ7RTcdSiHN1gjdCF0rMV6Ps7CD8hFBGRTCQCEc= 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=IRc1u9RS9qA8xMj7wmiS0rLgiPOML+FoKK2D6DCXoO/bylISg1lfpvHUy3IE11tr1godobp7OGkRzaqNIBGCl+qgsBuxzC9lbJZg3Rr4OOgBYYC8bHgx54ixh2RyyL5+MzEFaZE2kM/NaJhkvE4Vf1fz198Jq2/rzvKJO5vzC/w= Original-Received: by 10.67.196.2 with SMTP id y2mr4390608ugp.60.1201803592752; Thu, 31 Jan 2008 10:19:52 -0800 (PST) Original-Received: from thievol.homelinux.org ( [78.114.26.41]) by mx.google.com with ESMTPS id k29sm5249509fkk.5.2008.01.31.10.19.50 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 31 Jan 2008 10:19:51 -0800 (PST) In-Reply-To: <20080131175430.GA8312@univ-fcomte.fr> (David's message of "Thu, 31 Jan 2008 18:54:30 +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:51140 Archived-At: David writes: >> >> 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. > > 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: > dell-1 /home/dave # > > 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? Is it what you need ? (setq eshell-output-filter-functions (list 'eshell-handle-ansi-color 'eshell-handle-control-codes 'eshell-watch-for-password-prompt)) -- A + Thierry Pub key: http://pgp.mit.edu