{"thread":{"id":"33613","subject":"Zile as git core editor?","startedAt":"2013-04-26T07:39:22Z","lastAt":"2013-04-26T18:33:25Z","messageCount":7,"participants":["Thorsten Jolitz","Tay Ray Chuan","Matthieu Moy","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"215566","messageId":"877gjp91w5.fsf@gmail.com","threadId":"33613","inReplyTo":null,"subject":"Zile as git core editor?","fromName":"Thorsten Jolitz","fromEmail":"tjolitz@gmail.com","sentAt":"2013-04-26T07:39:22Z","receivedAt":"2013-04-26T07:39:22Z","isPatch":false,"sender":{"key":"tjolitz@gmail.com","avatar":null},"body":"\nHi List, \n\nafter experiencing one crash to many, I'm back to Standard Emacs\n(instead of Emacsserver/Emacsclient), thus using 'emacs' (instead of\nemacsclient) as git core editor triggers reading my huge init file and\nis way to slow.\n\nI would like to use Zile (a small Emacs clone) instead, and although\notherwise it works alright on my system, it does not seem to work as git\ncore editor. \n\nIs it possible to use 'git config --global core.editor zile'?\n\n-- \ncheers,\nThorsten\n"},{"id":"215570","messageId":"CALUzUxpZ9=8aVEMBfFUH2hN5ZkwzKVX31J79MVzkCEGRX++LPw@mail.gmail.com","threadId":"33613","inReplyTo":"877gjp91w5.fsf@gmail.com","subject":"Re: Zile as git core editor?","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2013-04-26T08:28:25Z","receivedAt":"2013-04-26T08:28:25Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"Hi,\n\nIs the GIT_EDITOR or EDITOR environment variable set? They may be\noverriding the core.editor setting.\n\n--\nCheers,\nRay Chuan\n\nOn Fri, Apr 26, 2013 at 3:39 PM, Thorsten Jolitz <tjolitz@gmail.com> wrote:\n>\n> Hi List,\n>\n> after experiencing one crash to many, I'm back to Standard Emacs\n> (instead of Emacsserver/Emacsclient), thus using 'emacs' (instead of\n> emacsclient) as git core editor triggers reading my huge init file and\n> is way to slow.\n>\n> I would like to use Zile (a small Emacs clone) instead, and although\n> otherwise it works alright on my system, it does not seem to work as git\n> core editor.\n>\n> Is it possible to use 'git config --global core.editor zile'?\n>\n> --\n> cheers,\n> Thorsten\n>\n>\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"215571","messageId":"87txmt7km9.fsf@gmail.com","threadId":"33613","inReplyTo":"CALUzUxpZ9=8aVEMBfFUH2hN5ZkwzKVX31J79MVzkCEGRX++LPw@mail.gmail.com","subject":"Re: Zile as git core editor?","fromName":"Thorsten Jolitz","fromEmail":"tjolitz@gmail.com","sentAt":"2013-04-26T08:37:50Z","receivedAt":"2013-04-26T08:37:50Z","isPatch":false,"sender":{"key":"tjolitz@gmail.com","avatar":null},"body":"Tay Ray Chuan <rctay89@gmail.com> writes:\n\nHi,\n\n> Is the GIT_EDITOR or EDITOR environment variable set? They may be\n> overriding the core.editor setting.\n\nActually, EDITOR is set to Zile, so that should not be the problem:\n\n[tj@hostname ~]$ echo $EDITOR\n/usr/bin/zile\n[tj@hostname ~]$ echo $GIT_EDITOR\n\n[tj@hostname ~]$ \n\nBTW - would 'git config --global core.editor zile' or 'git config\n--global core.editor /usr/bin/zile' the right way to set it (both did\nnot work)? I can start Zile simply with 'zile' on the command line. \n\n> --\n> Cheers,\n> Ray Chuan\n>\n> On Fri, Apr 26, 2013 at 3:39 PM, Thorsten Jolitz <tjolitz@gmail.com> wrote:\n>>\n>> Hi List,\n>>\n>> after experiencing one crash to many, I'm back to Standard Emacs\n>> (instead of Emacsserver/Emacsclient), thus using 'emacs' (instead of\n>> emacsclient) as git core editor triggers reading my huge init file and\n>> is way to slow.\n>>\n>> I would like to use Zile (a small Emacs clone) instead, and although\n>> otherwise it works alright on my system, it does not seem to work as git\n>> core editor.\n>>\n>> Is it possible to use 'git config --global core.editor zile'?\n>>\n>> --\n>> cheers,\n>> Thorsten\n>>\n>>\n>> --\n>> To unsubscribe from this list: send the line \"unsubscribe git\" in\n>> the body of a message to majordomo@vger.kernel.org\n>> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n\n-- \ncheers,\nThorsten\n"},{"id":"215576","messageId":"vpqppxhfz3i.fsf@grenoble-inp.fr","threadId":"33613","inReplyTo":"87txmt7km9.fsf@gmail.com","subject":"Re: Zile as git core editor?","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2013-04-26T08:57:53Z","receivedAt":"2013-04-26T08:57:53Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Thorsten Jolitz <tjolitz@gmail.com> writes:\n\n> BTW - would 'git config --global core.editor zile' or 'git config\n> --global core.editor /usr/bin/zile' the right way to set it (both did\n> not work)? I can start Zile simply with 'zile' on the command line. \n\nWhat do you mean by \"did not work\"? Does the launching fail? Or is\nanother editor launched?\n\nTry:\n\nGIT_TRACE=true git commit -a\n\nto see what's going on.\n\nBTW, you may also try \"emacs -nw -Q\" instead of zile.\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"215595","messageId":"87ppxh6zru.fsf@gmail.com","threadId":"33613","inReplyTo":"vpqppxhfz3i.fsf@grenoble-inp.fr","subject":"Re: Zile as git core editor?","fromName":"Thorsten Jolitz","fromEmail":"tjolitz@gmail.com","sentAt":"2013-04-26T16:08:05Z","receivedAt":"2013-04-26T16:08:05Z","isPatch":false,"sender":{"key":"tjolitz@gmail.com","avatar":null},"body":"Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:\n\n> Thorsten Jolitz <tjolitz@gmail.com> writes:\n>\n>> BTW - would 'git config --global core.editor zile' or 'git config\n>> --global core.editor /usr/bin/zile' the right way to set it (both did\n>> not work)? I can start Zile simply with 'zile' on the command line. \n>\n> What do you mean by \"did not work\"? Does the launching fail? Or is\n> another editor launched?\n>\n> Try:\n>\n> GIT_TRACE=true git commit -a\n>\n> to see what's going on.\n>\n> BTW, you may also try \"emacs -nw -Q\" instead of zile.\n\n\nThanks for the tip, I found out that:\n\n1. on the command-line, zile actually works as core editor, but\n2. not from within Emacs (Magit) where I tried it\n\n \"emacs -nw -Q\" is a nice tip, but I think what I really would like to\n have it that, when I use GNU Emacs Magit and enter a git command \n\n,-----------------------------\n| Run git like this: <command>\n`-----------------------------\n\nthat calls an editor (e.g. commit --amend), the running Emacs instance\nis (re)used and a new buffer is opened for editing (instead of starting\nanother Emacs instance).\n\n-- \ncheers,\nThorsten\n"},{"id":"215600","messageId":"7vtxmtxm4j.fsf@alter.siamese.dyndns.org","threadId":"33613","inReplyTo":"87ppxh6zru.fsf@gmail.com","subject":"Re: Zile as git core editor?","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2013-04-26T17:00:44Z","receivedAt":"2013-04-26T17:00:44Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thorsten Jolitz <tjolitz@gmail.com> writes:\n\n>  ... I think what I really would like to\n>  have it that, when I use GNU Emacs Magit and enter a git command \n>\n> ,-----------------------------\n> | Run git like this: <command>\n> `-----------------------------\n>\n> that calls an editor (e.g. commit --amend), the running Emacs instance\n> is (re)used and a new buffer is opened for editing (instead of starting\n> another Emacs instance).\n\nHmph, isn't that what \"emacsclient\" is for?  I have these\n\n\t(setenv \"PAGER\" \"cat\")\n\t(setenv \"EDITOR\" \"emacsclient\")\n\t(server-start)\n\nsomewhere in my ~/.emacs to make commands in \"M-x compile\" behave.\n"},{"id":"215606","messageId":"87ip396t1m.fsf@gmail.com","threadId":"33613","inReplyTo":"7vtxmtxm4j.fsf@alter.siamese.dyndns.org","subject":"Re: Zile as git core editor?","fromName":"Thorsten Jolitz","fromEmail":"tjolitz@gmail.com","sentAt":"2013-04-26T18:33:25Z","receivedAt":"2013-04-26T18:33:25Z","isPatch":false,"sender":{"key":"tjolitz@gmail.com","avatar":null},"body":"Junio C Hamano <gitster@pobox.com> writes:\n\n> Thorsten Jolitz <tjolitz@gmail.com> writes:\n>\n>>  ... I think what I really would like to\n>>  have it that, when I use GNU Emacs Magit and enter a git command \n>>\n>> ,-----------------------------\n>> | Run git like this: <command>\n>> `-----------------------------\n>>\n>> that calls an editor (e.g. commit --amend), the running Emacs instance\n>> is (re)used and a new buffer is opened for editing (instead of starting\n>> another Emacs instance).\n>\n> Hmph, isn't that what \"emacsclient\" is for?  I have these\n>\n> \t(setenv \"PAGER\" \"cat\")\n> \t(setenv \"EDITOR\" \"emacsclient\")\n> \t(server-start)\n>\n> somewhere in my ~/.emacs to make commands in \"M-x compile\" behave.\n\nI was a big fan of emacsclient and used it quite some time - but finally\nthose frequent Emacs crashes caused by it were just unbearable, so I\nwent back to 'normal' use of Emacs.\n\nBut maybe you are right - I should run a second Emacs instance as server\nonly used to popup emacsclient buffers on demand, while doing all the\nserious stuff in a non-server instance of Emacs. \n\n-- \ncheers,\nThorsten\n"}]}