Is anyone using git with p9p acme set as the editor?
Most things here work fine (as long as the pager is set to cat or
something like that), but I've been having problems with 'git commit
--amend'. If I use B as the $EDITOR, git considers the log file edited
as soon as it is opened in acme (and does not wait for a Put), and if
I use E instead (which I thought was meant for that), git does not
"notice" when I Put the file, so it just hangs there.
Am I missing something? is there a simple solution to that?
Cheers,
Mathieu
I never tried using EDITOR=E, instead wrote my own little script. I'm
a little compulsive when it comes to hitting Put, so my script
actually waits until you delete the acme window. Also you can hit
"Cancel" to have the script exit non-zero. Anyway this is what I use
for $EDITOR/$VISUAL:
http://sqweek.net/plan9/acmeedit
Also, sup! It's been awhile. You still rock climbing? :)
-sqweek
On Fri, Apr 20, 2012 at 6:04 PM, sqweek <sqw...@gmail.com> wrote:
> On 19 April 2012 19:51, Mathieu Lonjaret <mathieu....@gmail.com> wrote:
>> Is anyone using git with p9p acme set as the editor?
> <snip>
>> I use E instead (which I thought was meant for that), git does not
>> "notice" when I Put the file, so it just hangs there.
>
> I never tried using EDITOR=E, instead wrote my own little script. I'm
> a little compulsive when it comes to hitting Put, so my script
> actually waits until you delete the acme window. Also you can hit
> "Cancel" to have the script exit non-zero. Anyway this is what I use
> for $EDITOR/$VISUAL:
>
> http://sqweek.net/plan9/acmeedit
Nice, it almost works out of the box.
I got a 9p error message when using it:
9p: write error: ill-formed control message
but it actually does the job anyway.
Thanks!
I'll investigate later on to see which part fails exactly.
>> http://sqweek.net/plan9/acmeedit
>
> Nice, it almost works out of the box.
> I got a 9p error message when using it:
> 9p: write error: ill-formed control message
In /lib/acme.rc, there is
fn newwindow {
winctl=`{9p read acme/new/ctl}
winid=$winctl(1)
winctl noscroll
}
I think the noscroll no longer functions; I commented it out, and then
acmeedit no longer produces the error message.
Best wishes,
Mark.
--
Directeur de recherches, CNRS
IHPST, 13 rue du Four, 75006 Paris, France
tel ++ 33 (0)1 43 54 60 36, fax ++ 33 (0)1 43 25 29 48
http://www-ihpst.univ-paris1.fr/en/6,mark_van_atten.html
--
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.