git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Troubles with picking an editor during Git update

From
BKBartosz Konikiewicz <izdwuut@gmail.com>
Date
May 18, 2018, 15:58 UTC
Message-ID
<CAAdU=LuzJmR-zXmDB-HvHCiA-S1_HLEWueVAOOLDOCdqLtZbBg@mail.gmail.com>
In-Reply-To
<nycvar.QRO.7.76.6.1805180016210.77@tvgsbejvaqbjf.bet>

Git guidelines states that I should leave cc intact. I have altered it, as I wanted to reply to both of you. I hope that my approach can be considered acceptable.

Johannes, I see the following line in the piece of code you quoted:
  EditorAvailable[GE_NotepadPlusPlus]:=RegQueryStringValue(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\App
Paths\notepad++.exe','',NotepadPlusPlusPath);
It mentions the following registry key, which was missing from my registry:
  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App
Paths\notepad++.exe

I reinstalled Notepad++ 6.6.9, which added the key and made the installer acknowledge that Notepad++ is installed on my system.

Thanks for encouraging me to further investigate the issue. I have dig
deeper into the file that you linked for me. As far as my
comprehension goes, an EditorSelectionChanged procedure (line 1084) is
responsible for toggling the "next" button. I noticed that it gets
invoked in at least 2 situations:
  - when an user picks a text editor (an OnChange event, line 1119)
  - once the custom page for configuring the default Git editor is
initialized (the InitializeWizard procedure, line 1199)
My reasoning tells me that it would be applicable in the
NextButtonClick procedure as well. I'd add the following piece of code
to it:
  if (EditorPage<>NIL) and (CurPageID=EditorPage.ID) then begin
      EditorSelectionChanged(NIL);
  end;

I'd also remove the line 1199, as I think the change that I proposed would render it redundant.

Philip, I feel that composing a pull request is beyond me. I came to a conclusion that it would drain me of too much resources. Thanks for the suggestion, as it would be my first pull request ever. I didn't manage to achieve it, although I believe that I would be capable of doing this, which already fills me with utter joy. I am willing to post my report to Git for Windows issue tracker. Thanks for the suggestion!

Previous: Johannes Schindelin
Message 4 of 4 in “Troubles with picking an editor during Git update”
  1. Bartosz KonikiewiczMay 17, 2018
  2. Philip Oakley, CEng MIETMay 17, 2018
  3. Johannes SchindelinMay 17, 2018
  4. Bartosz KonikiewiczMay 18, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.