<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 4, 2019 at 6:10 AM David Reitter <<a href="mailto:david.reitter@gmail.com">david.reitter@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mar 3, 2019, at 7:34 PM, David Romano <<a href="mailto:dromano@stanford.edu" target="_blank">dromano@stanford.edu</a>> wrote:<br>
> <br>
> Thanks David (and Peter),<br>
> <br>
> I'm not familiar with emacsclient, so I may to look into Peter's suggestion, but I'm not sure I understand when you say <br>
> If you run Aquamacs with the GUI, the command returns immediately.  <br>
> <br>
> I thought that's what I was doing:  Having run `git config --global  core.editor aquamacs`, the Aquamacs GUI popped up when I ran `git commit`, but after I saved the buffer or quit the GUI, `git log' showed there was no effect.  Or am I misunderstanding you?<br>
<br>
Check the terminal window while you’re still editing the file.  I bet the message is there already before you save / quit Aquamacs.<br></blockquote><div><br></div><div>Here's a quick experiment at the terminal in an empty directory called 'aqua' that shows what I mean:</div><div>$ git config --global  core.editor aquamacs</div><div>$ git init</div><div>$ echo "a" > a<br></div><div>$ git add .</div><div>$ git commit</div><div>Aborting commit due to empty commit message.</div><div>$</div><div><br></div><div>Here `git commit` triggered an COMMIT_EDITMSG file to be opened, but completed at the same time, preventing me from being able to write anything. This is definitely odd behavior.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
If you do M-x server-start in Aquamacs, and then use EDITOR=emacsclient, it should work — because if you call emacsclient from the command line, it will wait until you’re done editing the file.  You don’t need to quit Aquamacs.<br></blockquote><div><br></div><div>I tried this and it works exactly as expected -- so thank you -- but I'm still curious what might be going wrong in the previous case.</div><div><br></div><div>Thanks again,</div><div>David</div></div></div>