;; This buffer is for notes you don't want to save, and for Lisp evaluation. ;; If you want to create a file, visit that file with C-x C-f, ;; then enter the text in that file's own buffer. (setq debug-on-error t) (defvar threads-test-binding nil) (defun threads-test-thread2 () (let ((threads-test-binding 23)) (thread-yield)) (setq threads-test-global 23)) (progn (setq threads-test-global nil) (make-thread #'threads-test-thread2) (while (not threads-test-global) (thread-yield)) (and (not threads-test-binding) threads-test-global))