ArnoldTheresius wrote
>
> Eluze wrote
>> ...
>> the question is
>>
>> how do we get the default .ly editor from the registry and if there is
>> one how do we get its (the editors) specification for line- and
>> column-number specification - probably this has to go through a table
>> (created and maintained by LilyPond) with the fields
>>
>> ...
>>
>> Eluze
> Usually in the registry:
>
> Computer\HKEY_CLASSES_ROOT\
*
> .ly
*
> : (Standard) [REG_SZ] = "
*
> ly_auto_file
*
> "
> ... then look at ...
> Computer\HKEY_CLASSES_ROOT\
*
> ly_auto_file
*
> \shell\edit\command ...
thanks for this hint - so with this little .bat file we could find the
default editor for .ly files
@echo off
SETLOCAL enableExtensions enableDelayedExpansion
FOR /f "tokens=1*" %%a in ('REG QUERY HKCR\ly_auto_file\shell\open\command
') do (
CALL :xx editor %%b
IF NOT [!editor!]==[] SET editor=!editor!
)
ECHO(&ECHO the LilyPond editor is: %editor%
GOTO :eof
:xx
IF NOT [%3]==[] SET %~1=%3
GOTO :eof
next step would be matching this information with a table of editors and
their parameters …
Eluze
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/point-and-click-implementation-tp144248p144302.html
Sent from the Bugs mailing list archive at Nabble.com.
_______________________________________________
bug-lilypond mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-lilypond