newLISP-GS problems and prayers

Started by hsmyers, April 05, 2008, 01:46:54 PM

Previous topic - Next topic

hsmyers

Files->Recent Files seems broken. Regardless of which file or files I edit, the only thing that shows up in the list is newlisp-edit.config.



On to prayers. I'd like to suggest
(gs:set-font 'OutputArea currentFontName currentMonitorFontSize "plain")
Or the even better
(gs:set-font 'OutputArea currentMonitorFontName currentMonitorFontSize "plain")
And as long as we are tinkering, could OutputArea become the active window after a run? Perhaps I don't understand, but I can't figure out why anyone would want to stay in the edit area after a run.



One last request; could the nag popup about leaving the app be restricted to the one that asks about changed files. If I haven't done anything(or have saved my work) why should I have to click twice to leave?



--hsm
\"Censeo Toto nos in Kansa esse decisse.\"—D. Gale \"[size=117]ℑ♥λ[/size]\"—Toto

Lutz

#1
QuoteFiles->Recent Files seems broken. Regardless of which file or files I edit, the only thing that shows up in the list is newlisp-edit.config.


Its fine on Mac OS X and two Windows XP SP2 installations I tested. What OS are you using?



newlisp-edit.lsp uses the following logic to define the "recentFilesPath":


(if (= ostype "Win32")
    (begin
        (set 'userSettingsDir (string
            (or (env "APPDATA") (env "HOME") (env "USERPROFILE") (env "DOCUMENT_ROOT")) "/newLISP"))
        (set 'userSettingsPath (append userSettingsDir "/newlisp-edit.config"))
        (set 'recentFilesPath (append userSettingsDir "/newlisp-edit-recent"))
        (if (not (directory userSettingsDir)) (make-dir userSettingsDir))
    )
    (begin
        (set 'userSettingsPath (append $HOME "/.newlisp-edit.conf"))
        (set 'recentFilesPath (append $HOME "/.newlisp-edit-recent"))
    )
)


Files only get into the list when they have been saved and do not appear until the next start of newlisp-edit. If they still don't appear, check in a command shell if you have any of the required environment variables defined. On Win32 XP any or several of APPDATA, HOME, USERPROFILE and DOCUMENT_ROOT should be defined. newlisp-edit-recent then gets created if it doesn't exist.



The redundant Quit-dialog, when all edit buffers are clean, will be eliminated in the next version.



ps: Please post questions regarding newLISP Guiserver in the appropriate section, not in the News section ;-). Post all other questions in either the Win or *n?x sections.

hsmyers

#2
I'm running w2k on my lisp-dev machine. However your explanation cleared up the problem.
QuoteFiles only get into the list when they have been saved


I had assumed that recent files would include files loaded, instead. Thanks for clearing that up.



Sorry about the miss-post.



Thanks for removing the dialog.



You didn't like the other ideas I take it. Well I have already made changes in my local copy. For me it is a matter of eye-sight. Your decision makes the font too small and too thin for me to be able to read easily (or almost at all). Lucky for me the code is pretty easy to change. I also plan on adding an option to open the app maximized as well. This will be a little trickier(define maximized) but still seems useful. I've given some thought to adding a check to see if the code in the editor has been edited outside of the app. This should result in a opportunity(dialog)  to reload the text in question. I usually use two editors because one has macros etc. I certainly will add code to make the OutputArea active after a run--- the number of times I've started to type in the wrong window approaches unity with the number of times I've made a 'run' ;)



I'm sorry if it seems like all I do is complain, I certainly love the language, your dialect in particular (small clean etc.) Given the admirable goal of cross platform, newLISP-GS is excellent excepting the things that probably only I find difficult.
\"Censeo Toto nos in Kansa esse decisse.\"—D. Gale \"[size=117]ℑ♥λ[/size]\"—Toto

newdep

#3
Hsm,



I like your Postscript music/notes implementation with newlisp ...nice...

I though of doing that once too but never came to work it out..

I think ill "borrow' some code from you, as a reverence ;-)



btw, smashing fractals you got there...;-)
-- (define? (Cornflakes))

hsmyers

#4
Quote from: "newdep"I like your Postscript music/notes implementation with newlisp ...nice...

Don't understand. Where were you looking?


Quote from: "newdep"btw, smashing fractals you got there...;-)

Been doing fractals since the 80's Even got to do graduate work with Peitgen and Saupe who wrote The Science of Fractal Images(and others) Rudy Rucker was a classmate (ah...those were the days!! ;))
\"Censeo Toto nos in Kansa esse decisse.\"—D. Gale \"[size=117]ℑ♥λ[/size]\"—Toto

Lutz

#5
QuoteFor me it is a matter of eye-sight. Your decision makes the font too small and too thin for me to be able to read easily (or almost at all)


Most of these things you can change by editing newlisp-edit.conf from the Tools/Edit Settings menu. No changes to the editor code are required. To open the editor in bigger size, just make it big then do File/Save Settings. Then newlisp-edit reads the size and stores it in newlisp-edit.conf. Of course you can achieve the same editing newlisp-edit.conf using the Tools/Edit Settings menu option.

newdep

#6
hms,



ooo i just ended last week on reactor-core.org via google because i was

searching some "chords" and than i noticed it was newlisp and

you wehere on the forum too...



Aaaa..the 80's, great time indeed!..(art, music and computers)..





PS: . is that you on reactor-core.org mi just wondering now ;-) ?
-- (define? (Cornflakes))

newdep

#7
aaaaaaaaaa thats Ted Walther's page... Sorry ;-)

I mixed up your forum alias with his subdomain name..
-- (define? (Cornflakes))

hsmyers

#8
Quote from: "Lutz"Most of these things you can change by editing newlisp-edit.conf from the Tools/Edit Settings menu. No changes to the editor code are required. To open the editor in bigger size, just make it big then do File/Save Settings. Then newlisp-edit reads the size and stores it in newlisp-edit.conf. Of course you can achieve the same editing newlisp-edit.conf using the Tools/Edit Settings menu option.


And this allows me to change the font for the REPL window how? Because you see this is the problem I was speaking of.



Not that your point about saving settings etc. is ignored--- I just noticed that, that will indeed allow me to open maximized. Thanks.



BTW I discovered that doing a Control W with the config file in the active window kicks me out of the app. Was that intended?



Have you thought about the implications of a single call to gs:set-caret-color if you allow the user to change the foreground and background color for the REPL window? No doubt I don't understand but it makes for an invisible caret unless the user is careful. Green characters on a black background(nostalgia for the old CRT days) for example.



--hsm

p.s. if Clausewitz had been writing about software he would have said that no piece of software survives its first encounter with the user!
\"Censeo Toto nos in Kansa esse decisse.\"—D. Gale \"[size=117]ℑ♥λ[/size]\"—Toto

newdep

#9
Aaa now i see... yes i realy mixed up the websites...

Your Chess site caught my attention yesterday + the fractals ;-)
-- (define? (Cornflakes))

hsmyers

#10
Quote from: "newdep"aaaaaaaaaa thats Ted Walther's page... Sorry ;-)

I mixed up your forum alias with his subdomain name..


I'd like to say that it happens all of the time--- don't worry; but I can't, this is a first!! ;) Usually people give me extra 'e''s when spelling my user name, but that's different...;)



--hsm
\"Censeo Toto nos in Kansa esse decisse.\"—D. Gale \"[size=117]ℑ♥λ[/size]\"—Toto

newdep

#11
hahaha that Quotations site of yours is Fun!





i.e.





Someone's Signature:

^X^C

q

quit

:q

^C

end

x

exit

.

ZZ

^D

?

help
-- (define? (Cornflakes))

hsmyers

#12
newdep One of my problems with editors new-to-me is that while it is easy to get in, it is no where near as easy to get out!! I feel his pain...



--hsm
\"Censeo Toto nos in Kansa esse decisse.\"—D. Gale \"[size=117]ℑ♥λ[/size]\"—Toto

Lutz

#13
Quote from: "hsmyers"And this allows me to change the font for the REPL window how?


change currentMonitorBackground, currentMonitorFontSize and currentMonitorForeground using the Tools/Edit Settings menu option.



The changes take effect when you restart the editor.



ps: The Ctrl-W bug is fixed. All action putting you into the unused first "untitled.lsp" window will cause this problem. There is a fixed version here:



http://newlisp.org/downloads/development/newlisp-edit.lsp">http://newlisp.org/downloads/developmen ... p-edit.lsp">http://newlisp.org/downloads/development/newlisp-edit.lsp

hsmyers

#14
Thanks for the Control W fix.



I said
QuoteAnd this allows me to change the font for the REPL window how?

Changing the others is good, but it is the font itself that makes for reading difficulty.



--hsm
\"Censeo Toto nos in Kansa esse decisse.\"—D. Gale \"[size=117]ℑ♥λ[/size]\"—Toto