[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Point and Click does not work on Windows
From: |
Eluze |
Subject: |
Re: Point and Click does not work on Windows |
Date: |
Thu, 18 Apr 2013 06:24:46 -0700 (PDT) |
ArnoldTheresius wrote
>
> Eluze wrote
>> ...
>> if this is possible we could abandon the entry LYEDITOR?! (at least for
>> windows)
> Well,
> I would keep the environment variable(s) as a last, top priotiry choice to
> select which editor one is using.
why not - I just mean don't use it if you don't have to!
> From scm/editor.scm:
/
> (define (get-editor)
> (or (getenv "LYEDITOR")
> (getenv "XEDITOR")
> (getenv "EDITOR")
>
> ;; FIXME: how are default/preferred editors specified on
> ;; different platforms?
> (case PLATFORM
> ((windows) "lilypad")
/
>
*
> ;;; my TODO suggestion: implement querying of windows registry to select
> the users choice
*
>
/
> (else
> "emacs"))))
/
>
> Until now I did not find a function in guile to read registry values.
> There is the command line program »REG QUERY ... « to get the information.
> It's standard output needs to be parsed, and the call needs to be fail
> save (dont throw an exception if it fails).
> I tried
/
> open-input-pipe
/
> , but go the error message it cannot fork.
>
> That looks like we need to execute a
/
> system
/
> call and redirect the output into a temporary file, then parse the file.
> Possibly we do this on several pathes in the windows registry until we get
> an string. Then we need to scan for specific keywords in this string to
> select one on the known editors.
the reg query … returns only one value in the form of
Applications\ConTEXT.exe
where you can strip the first part by
FOR /f "tokens=3*" %%a IN (
'REG QUERY
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ly\userchoice'
) DO IF NOT [%%a]==[] FOR /f "tokens=2* delims=\" %%a IN ("%%a") DO (SET
editor=%%a)
then it is a temporary environment variable which you can get via (getenv
"EDITOR")
Eluze
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/Point-and-Click-does-not-work-on-Windows-tp115986p144667.html
Sent from the Dev mailing list archive at Nabble.com.
- Re: Point and Click does not work on Windows, ArnoldTheresius, 2013/04/16
- Re: Point and Click does not work on Windows, Eluze, 2013/04/17
- Re: Point and Click does not work on Windows, ArnoldTheresius, 2013/04/17
- Re: Point and Click does not work on Windows, Eluze, 2013/04/17
- Re: Point and Click does not work on Windows, ArnoldTheresius, 2013/04/18
- Re: Point and Click does not work on Windows,
Eluze <=
- Re: Point and Click does not work on Windows, Eluze, 2013/04/21
- Re: Point and Click does not work on Windows, James, 2013/04/21
- Re: Point and Click does not work on Windows, Eluze, 2013/04/21
- Re: Point and Click does not work on Windows, James, 2013/04/21
- Re: Point and Click does not work on Windows, Eluze, 2013/04/21
- Re: Point and Click does not work on Windows, James, 2013/04/21
- Re: Point and Click does not work on Windows, Eluze, 2013/04/21
- Re: Point and Click does not work on Windows, ArnoldTheresius, 2013/04/22
- Re: Point and Click does not work on Windows, Eluze, 2013/04/22
- Re: Point and Click does not work on Windows, ArnoldTheresius, 2013/04/23