[ltk-user] Got LTK to work - second question

Valone, Toren W. TValone at DMV.CA.gov
Wed Jan 23 20:05:07 UTC 2008


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 at common-lisp.net
[mailto:ltk-user-bounces at 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 at 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 at common-lisp.net
http://common-lisp.net/mailman/listinfo/ltk-user



More information about the ltk-user mailing list