unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: help-gnu-emacs@gnu.org
Subject: Re: sudo emacsclient
Date: Mon, 26 Oct 2009 21:03:06 +0200	[thread overview]
Message-ID: <87ljiy566t.fsf@iki.fi> (raw)
In-Reply-To: mailman.9516.1256581844.2239.help-gnu-emacs@gnu.org

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 "$@"


  parent reply	other threads:[~2009-10-26 19:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-26 17:03 sudo emacsclient Harry Putnam
2009-10-26 17:35 ` Thierry Volpiatto
2009-10-26 18:30 ` Richard Riley
     [not found] ` <mailman.9516.1256581844.2239.help-gnu-emacs@gnu.org>
2009-10-26 19:03   ` Teemu Likonen [this message]
2009-10-26 20:21     ` Richard Riley
2009-10-26 20:55       ` Andreas Politz
2009-10-26 21:22         ` Richard Riley
2009-10-26 21:45           ` Andreas Politz
     [not found]       ` <mailman.9527.1256590642.2239.help-gnu-emacs@gnu.org>
2009-10-26 22:21         ` Colin S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ljiy566t.fsf@iki.fi \
    --to=tlikonen@iki.fi \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).