[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-devel
Subject:    Re: git-cl and pop-up window with text editor - what is it for?
From:       Frédéric_Bron <frederic.bron () m4x ! org>
Date:       2013-08-27 4:51:37
Message-ID: CAPw2spiAPz-zEtSr=zKek8jiHkuCqejGmECCyRbUyi-YbQvMjQ () mail ! gmail ! com
[Download RAW message or body]

> I think there is some nominal difference between configuring the
> variables VISUAL or EDITOR for your default editor.

I found what's the issue looking at git-cl code:

def UserEditedLog(starting_text):
  editor = os.getenv('EDITOR', 'vi')
  (file_handle, filename) = tempfile.mkstemp()
  file = os.fdopen(file_handle, 'w')
  file.write(starting_text)
  file.close()
  ret = subprocess.call(editor + ' ' + filename, shell=True)

git-cl reads the EDITOR environment variable which is 'gvim' for me.
Then it opens a temp file with this editor but gvim by default runs in
background so git-cl continue immediately! I will replace gvim by vim
and that will do. I could also use gvim -f (foreground).
Thanks,
Frédéric


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic