Thanks to all for the help on the previous problem. I downloaded TCL/TK and renamed it to wish.exe, then I moved it to my windows\system32 path, started up EMACS and was able to run lkttest.
Now for my second question, when I make a change to an existing LTK program and compile it C-c C-c, then run it, the changes do not appear. Only when I close and restart Emacs does the changes show up. Shouldn't just compiling work?
Hi,
On Jan 23, 2008 8:40 PM, Valone, Toren W. TValone@dmv.ca.gov wrote:
Thanks to all for the help on the previous problem. I downloaded TCL/TK and renamed it to wish.exe, then I moved it to my windows\system32 path, started up EMACS and was able to run lkttest.
Great to hear :)
Now for my second question, when I make a change to an existing LTK program and compile it C-c C-c, then run it, the changes do not appear. Only when I close and restart Emacs does the changes show up. Shouldn't just compiling work?
Yes it should... but it is difficult to provide more help without more information about what you did.
Peter
On a Windows XP system, I start Emacs/Slime, then I (compile-file "ltk") then (load "ltk"), then (in-package :ltk). I open a file I am working on, in this case fgs.lisp, make a change to it, such as changing the text in the button to something else, run C-c C-c, it compiles, then I switch to Slime and try running the new version and it runs the old version.
(defun fgs() (with-ltk () (let* ((f (make-instance 'frame)) (b1 (make-instance 'button :master f :text "Vehicle Transactions" :command (lambda () (format t "Button1~&")))) (b2 (make-instance 'button :master f :text "Drivers Transactions" :command (lambda () (format t "Button2~&"))))) (pack f) (pack b1 :side :left) (pack b2 :side :left) (configure f :borderwidth 3) (configure f :relief :sunken) (configure f :width 20) )))
-----Original Message----- From: ltk-user-bounces@common-lisp.net [mailto:ltk-user-bounces@common-lisp.net] On Behalf Of Peter Herth Sent: Wednesday, January 23, 2008 11:48 AM To: Talk about Ltk the Lisp Toolkit Subject: Re: [ltk-user] Got LTK to work - second question
Hi,
On Jan 23, 2008 8:40 PM, Valone, Toren W. TValone@dmv.ca.gov wrote:
Thanks to all for the help on the previous problem. I downloaded
TCL/TK and
renamed it to wish.exe, then I moved it to my windows\system32 path,
started
up EMACS and was able to run lkttest.
Great to hear :)
Now for my second question, when I make a change to an existing LTK
program
and compile it C-c C-c, then run it, the changes do not appear. Only
when I
close and restart Emacs does the changes show up. Shouldn't just
compiling
work?
Yes it should... but it is difficult to provide more help without more information about what you did.
Peter _______________________________________________ ltk-user site list ltk-user@common-lisp.net http://common-lisp.net/mailman/listinfo/ltk-user
Everything sounds right - no idea what is going wrong. Are you sure you started only one slime session and are compiling the function in the same lisp where you try to run it?
Peter
I should add, that when I close Emacs, restart it, get into the LTK environment and load fgs, then the changes show up.
-----Original Message----- From: ltk-user-bounces@common-lisp.net [mailto:ltk-user-bounces@common-lisp.net] On Behalf Of Valone, Toren W. Sent: Wednesday, January 23, 2008 12:05 PM To: Talk about Ltk the Lisp Toolkit Subject: RE: [ltk-user] Got LTK to work - second question
On a Windows XP system, I start Emacs/Slime, then I (compile-file "ltk") then (load "ltk"), then (in-package :ltk). I open a file I am working on, in this case fgs.lisp, make a change to it, such as changing the text in the button to something else, run C-c C-c, it compiles, then I switch to Slime and try running the new version and it runs the old version.
(defun fgs() (with-ltk () (let* ((f (make-instance 'frame)) (b1 (make-instance 'button :master f :text "Vehicle Transactions" :command (lambda () (format t "Button1~&")))) (b2 (make-instance 'button :master f :text "Drivers Transactions" :command (lambda () (format t "Button2~&"))))) (pack f) (pack b1 :side :left) (pack b2 :side :left) (configure f :borderwidth 3) (configure f :relief :sunken) (configure f :width 20) )))
-----Original Message----- From: ltk-user-bounces@common-lisp.net [mailto:ltk-user-bounces@common-lisp.net] On Behalf Of Peter Herth Sent: Wednesday, January 23, 2008 11:48 AM To: Talk about Ltk the Lisp Toolkit Subject: Re: [ltk-user] Got LTK to work - second question
Hi,
On Jan 23, 2008 8:40 PM, Valone, Toren W. TValone@dmv.ca.gov wrote:
Thanks to all for the help on the previous problem. I downloaded
TCL/TK and
renamed it to wish.exe, then I moved it to my windows\system32 path,
started
up EMACS and was able to run lkttest.
Great to hear :)
Now for my second question, when I make a change to an existing LTK
program
and compile it C-c C-c, then run it, the changes do not appear. Only
when I
close and restart Emacs does the changes show up. Shouldn't just
compiling
work?
Yes it should... but it is difficult to provide more help without more information about what you did.
Peter _______________________________________________ ltk-user site list ltk-user@common-lisp.net http://common-lisp.net/mailman/listinfo/ltk-user _______________________________________________ ltk-user site list ltk-user@common-lisp.net http://common-lisp.net/mailman/listinfo/ltk-user
Hello:
I believe that you should use C-c C-k . This will compile and load a lisp file on my pc (I'm not sure if you use the same slime version). In my pc, C-c C-c only compiles the file, but doesn't load It.
I should add, that when I close Emacs, restart it, get into the LTK environment and load fgs, then the changes show up.
Well, surely, if you do (load "fgs" ), lisp searches the compiled file and loads that. Then the changes show up.
I hope to be helpful
yep you need to use C-c C-k instead
On Jan 24, 2008 11:15 AM, Felip Alàez Nadal uu.nix.uu@gmail.com wrote:
Hello:
I believe that you should use C-c C-k . This will compile and load a lisp file on my pc (I'm not sure if you use the same slime version). In my pc, C-c C-c only compiles the file, but doesn't load It.
I should add, that when I close Emacs, restart it, get into the LTK environment and load fgs, then the changes show up.
Well, surely, if you do (load "fgs" ), lisp searches the compiled file and loads that. Then the changes show up.
I hope to be helpful
Felip Alàez Nadal
ltk-user site list ltk-user@common-lisp.net http://common-lisp.net/mailman/listinfo/ltk-user
Thanks, please bear with me, I am a long time Mainframe Rexx hack delving into the wild world of LISP and LTK. I have one simple request. Can someone post to the list an example of a working LTK application with menus and buttons and text boxes? I tried to find LTKTEST on my machine and while I am able to execute it in Emas/Slime I cannot find the source file, so please forgive me my ignorance! I want everything to be almost perfect as I am of half german decent!
________________________________
From: ltk-user-bounces@common-lisp.net [mailto:ltk-user-bounces@common-lisp.net] On Behalf Of Vytautas Jancauskas Sent: Thursday, January 24, 2008 4:14 AM To: Talk about Ltk the Lisp Toolkit Subject: Re: [ltk-user] Got LTK to work - second question
yep you need to use C-c C-k instead
On Jan 24, 2008 11:15 AM, Felip Alàez Nadal uu.nix.uu@gmail.com wrote:
Hello:
I believe that you should use C-c C-k . This will compile and load a lisp file on my pc (I'm not sure if you use the same slime version). In my pc, C-c C-c only compiles the file, but doesn't load It.
I should add, that when I close Emacs, restart it, get into the LTK environment and load fgs, then the changes show up.
Well, surely, if you do (load "fgs" ), lisp searches the compiled file and loads that. Then the changes show up.
I hope to be helpful
Some time ago, I sent to this mailing list some examples. One of them uses text boxes and so. You can also take a look at cl-cbr. I'm the mantainer of It, but maybe that won't work due to problems with Unicode. I'm not using lisp at the moment. Take a look at http://common-lisp.net/project/nixies/.
Bye!