From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: open files as root Date: Mon, 31 Aug 2009 15:34:43 +0200 Organization: Freie Universitaet Berlin Message-ID: <87tyzods3w.wl%anselm.helbig+news2009@googlemail.com> References: <87my5ihk50.fsf@online.de> <87tyzq4vkn.fsf@lola.goethe.zz> <8763c661jq.fsf@online.de> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1251726037 23372 80.91.229.12 (31 Aug 2009 13:40:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Aug 2009 13:40:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 31 15:40:30 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 1Mi77U-0001jv-HT for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Aug 2009 15:40:28 +0200 Original-Received: from localhost ([127.0.0.1]:52454 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mi77T-00023q-Pk for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Aug 2009 09:40:27 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-X-Trace: news.uni-berlin.de pXEm4Q5jZFna3/v1ZQGFIQg0m1a498zp7uP2gngFYZhDT9pNy877HXjJ7o Cancel-Lock: sha1:zSCcTcisZ7QEukd44oYRkxPL3Lc= In-Reply-To: <8763c661jq.fsf@online.de> Mail-Followup-To: Anselm Helbig Original-Xref: news.stanford.edu gnu.emacs.help:172544 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:67685 Archived-At: 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 -- Anselm Helbig mailto:anselm.helbig+news2009@googlemail.com