From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: sudo emacsclient Date: Mon, 26 Oct 2009 21:03:06 +0200 Organization: A noiseless patient Spider Message-ID: <87ljiy566t.fsf@iki.fi> References: <87r5sqnl4k.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1256586054 18690 80.91.229.12 (26 Oct 2009 19:40:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Oct 2009 19:40:54 +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 Oct 26 20:40:47 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 1N2VQm-00068v-9I for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Oct 2009 20:40:40 +0100 Original-Received: from localhost ([127.0.0.1]:45510 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2VQl-0002bs-TC for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Oct 2009 15:40:39 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-2.dfn.de!news.dfn.de!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-X-Trace: news.eternal-september.org U2FsdGVkX1+73LaCDohYMlbYpb3sGxhCAq59uN1DIV6xbZhhlO5Q20aZyoeXXL4zNiSgx8QqTrFjf1cTchtqFtIMlw39FDC1m1nU2QYR7grcvquvkygQW+oEyaZU2rhQ+7bisou/LGf+FaHFbAYYyn6L6KWAUytl Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Mon, 26 Oct 2009 19:03:07 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+UHFheXfo2tRIdm7D+lv8Z0jDyooDKGGPhyK5VdzOlfA== Cancel-Lock: sha1:w2rxjxZw26uSe/2nijbm7NurHwk= sha1:9Ya+h9HOhs32DhWVKNuUY2ahqvQ= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:174168 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:69252 Archived-At: On 2009-10-26 19:30 (+0100), Richard Riley wrote: > I use this small script to start emacs :- > > ,---- > | #!/bin/bash > | # edit > | export GDK_NATIVE_WINDOWS=1 > | emacsclient --alternate-editor="" -c $@ > `---- You probably won't need that Bash lying in the background so I would suggest using "exec" there to replace the script shell. Also, quoting "$@" is a good idea so it will quote each expanded positional argument. Like this: exec emacsclient --alternate-editor="" -c "$@"