[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sudo emacsclient
From: |
Andreas Politz |
Subject: |
Re: sudo emacsclient |
Date: |
Mon, 26 Oct 2009 22:45:08 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Richard Riley <rileyrgdev@gmail.com> writes:
> Andreas Politz <politza@fh-trier.de> writes:
>
>> Richard Riley <rileyrgdev@gmail.com> writes:
>>
>>> Teemu Likonen <tlikonen@iki.fi> writes:
>>>
>>>> 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 "$@"
>>>>
>>>
>>> Makes sense. Thanks.
>>
>> What is the *magic* export good for ?
>>
>> -ap
>
> Emacs 23 issues with gtk. Certain menus not appearing. This fixes it for
> me. It's logged as a debian/ubuntu bug.
Yes,I just noticed this recently (the disappearance of menus).
-ap