From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: henry atting Newsgroups: gmane.emacs.help Subject: Re: open files as root Date: Tue, 01 Sep 2009 08:05:41 +0200 Organization: literaturlatenight Message-ID: <87k50jryh6.fsf@online.de> References: <87my5ihk50.fsf@online.de> <87tyzq4vkn.fsf@lola.goethe.zz> <8763c661jq.fsf@online.de> <87tyzods3w.wl%anselm.helbig+news2009@googlemail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1251787251 27884 80.91.229.12 (1 Sep 2009 06:40:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Sep 2009 06:40:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 01 08:40:45 2009 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 1MiN2q-0003EP-Gb for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Sep 2009 08:40:44 +0200 Original-Received: from localhost ([127.0.0.1]:35522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiN2p-0006uU-O3 for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Sep 2009 02:40:43 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!news.mixmin.net!feeder.eternal-september.org!eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-X-Trace: news.eternal-september.org U2FsdGVkX191aEEwp/WzQEjkXYu28xfJHYUu63i5WjerIsQn/LoElvjHyBhhtX0DGr7sAOON9pGrjLofR3NVz/TFW5kHO31p0lWLmpxeCUSrW2+UsBs1MTyDzJqK0dQqaAHdDqxXXXSCo5s7nNKtWw== Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Tue, 1 Sep 2009 06:05:42 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+zrnC7zRNMN31hb2CnoCizVGHgtHqWsZ0= Cancel-Lock: sha1:N4Bo+89HFtBBtzk+v14/YsA2BTg= sha1:5H29KwIyaPjgZft386AjpKp5GbQ= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:172558 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:67697 Archived-At: On Mo, Aug 31 2009, Anselm Helbig wrote: > Hi! > > At Sat, 29 Aug 2009 18:13:29 +0200, > henry atting wrote: >> >> On Sa, Aug 29 2009, David Kastrup wrote: >> >> > henry atting writes: >> > >> >> Is there another way as with tramp to open files as root within emacs? >> > >> > No. >> > >> >> (Since I am sure that tramp and I never will be friends in this life) >> > >> > Partners is all you need. >> >> Okay, tramp won, I switched from zsh (which impressing functionality I >> don't use anyway) back to bash. >> >> (I now the appropriate lines which are to add to .zshrc, but this time >> they don't work – another time they did.) > > No need to drop zsh, just set a proper regex for > tramp-shell-prompt-pattern. This is what works for me: > > (setq tramp-shell-prompt-pattern "^[^$>\n]*[#$%>] *\\(\[[0-9;]*[a-zA-Z] *\\)*") > > HTH, > > Anselm Thanks Anselm, yes that helps. Such a thrill: tramp and me are real partners now. henry -- http://literaturlatenight.de