Changeset 13073
- Timestamp:
- Oct 21, 2009, 5:55:33 PM (15 years ago)
- Location:
- release/1.4/source
- Files:
-
- 5 edited
- 1 copied
-
contrib/foy/list-definitions-cm/history-lists.lisp (modified) (1 diff)
-
contrib/foy/list-definitions/history-lists.lisp (modified) (1 diff)
-
contrib/foy/syntax-styling (copied) (copied from trunk/source/contrib/foy/syntax-styling )
-
contrib/foy/window-parking-cm/window-parking.lisp (modified) (4 diffs)
-
lisp-kernel/darwinx8632/Makefile (modified) (2 diffs)
-
lisp-kernel/darwinx8664/Makefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
release/1.4/source/contrib/foy/list-definitions-cm/history-lists.lisp
r12785 r13073 471 471 ;;; ---------------------------------------------------------------------------- 472 472 ;;; File History Interface: 473 ;;; 474 (objc:defmethod (#/becomeKeyWindow :void) ((w gui::hemlock-frame)) 473 ;;; 474 ;;; *** Instead of doing all this stuff need the equivalent of: 475 ;;; *** (setf ccl::*default-editor-class* 'derived-hemlock-frame-class) 476 #-syntax-styling 477 (objc:defMethod (#/becomeKeyWindow :void) ((w gui::hemlock-frame)) 475 478 (let* ((path (cmenu:window-path w)) 476 479 (name (when (and path (string-equal (pathname-type path) "lisp")) 477 480 (concatenate 'string (pathname-name path) ".lisp")))) 478 481 (when (and name path) 479 (maybe-add-history-entry *file-history-list* name path)) 480 (call-next-method))) 482 (maybe-add-history-entry *file-history-list* name path))) 483 (let ((become-key-function (find-symbol "BECOME-KEY-WINDOW" (find-package :sax)))) 484 (when become-key-function (funcall become-key-function w))) 485 (call-next-method)) 486 487 #+syntax-styling 488 (defMethod become-key-window ((w gui::hemlock-frame)) 489 (let* ((path (cmenu:window-path w)) 490 (name (when (and path (string-equal (pathname-type path) "lisp")) 491 (concatenate 'string (pathname-name path) ".lisp")))) 492 (when (and name path) 493 (maybe-add-history-entry *file-history-list* name path)))) 481 494 482 495 ;;; ---------------------------------------------------------------------------- -
release/1.4/source/contrib/foy/list-definitions/history-lists.lisp
r12746 r13073 476 476 ;;; ---------------------------------------------------------------------------- 477 477 ;;; File History Interface: 478 ;;; 479 (objc:defmethod (#/becomeKeyWindow :void) ((w gui::hemlock-frame)) 480 (let* ((path (window-path w)) 478 ;;; 479 ;;; *** Instead of doing all this stuff need the equivalent of: 480 ;;; *** (setf ccl::*default-editor-class* 'derived-hemlock-frame-class) 481 #-syntax-styling 482 (objc:defMethod (#/becomeKeyWindow :void) ((w gui::hemlock-frame)) 483 (let* ((path (cmenu:window-path w)) 481 484 (name (when (and path (string-equal (pathname-type path) "lisp")) 482 485 (concatenate 'string (pathname-name path) ".lisp")))) 483 486 (when (and name path) 484 (maybe-add-history-entry *file-history-list* name path)) 485 (call-next-method))) 487 (maybe-add-history-entry *file-history-list* name path))) 488 (let ((become-key-function (find-symbol "BECOME-KEY-WINDOW" (find-package :sax)))) 489 (when become-key-function (funcall become-key-function w))) 490 (call-next-method)) 491 492 #+syntax-styling 493 (defMethod become-key-window ((w gui::hemlock-frame)) 494 (let* ((path (cmenu:window-path w)) 495 (name (when (and path (string-equal (pathname-type path) "lisp")) 496 (concatenate 'string (pathname-name path) ".lisp")))) 497 (when (and name path) 498 (maybe-add-history-entry *file-history-list* name path)))) 486 499 487 500 ;;; ---------------------------------------------------------------------------- -
release/1.4/source/contrib/foy/window-parking-cm/window-parking.lisp
r12849 r13073 29 29 (defparameter *window-parker* nil "The window-parker instance.") 30 30 (defparameter *window-parking-menu* nil "The window-parking-menu instance.") 31 (defParameter *park-p* t "To park or not to park.") 31 32 32 33 ;;; ---------------------------------------------------------------------------- … … 246 247 (ns:with-ns-rect (r (ps-h-position ps) (ps-v-position ps) (ps-h-dimension ps) (ps-v-dimension ps)) 247 248 (#/setFrame:display: window r t)) 248 (#/makeKeyAndOrderFront: window nil))) 249 (#/makeKeyAndOrderFront: window nil)) 250 (let ((style-screen-function (find-symbol "STYLE-SCREEN" (find-package :sax)))) 251 (when style-screen-function 252 (let* ((hemlock-view (gui::hemlock-view window)) 253 (text-view (gui::text-pane-text-view (hi::hemlock-view-pane hemlock-view)))) 254 (when text-view 255 (funcall style-screen-function text-view)))))) 249 256 250 257 ;;; ---------------------------------------------------------------------------- … … 260 267 261 268 (defMethod park ((wp window-parker) (window parkable-hemlock-frame)) 262 (when ( wp-parking-spots wp)269 (when (and (wp-parking-spots wp) *park-p*) 263 270 ;; Already parked? 264 271 (let* ((position (position window (wp-parking-spots wp) :key #'ps-tenant)) … … 372 379 ;;; unless the parking-spot is not on screen or the window is already in that location. 373 380 (defMethod move-window-to-position ((wp window-parker) window function-key) 374 (let* ((parking-spot (find function-key (wp-parking-spots wp) :key #'ps-function-key)) 375 (tenant (when parking-spot (ps-tenant parking-spot)))) 376 (cond ((and parking-spot (parking-spot-on-screen-p parking-spot window)) 377 (cond (tenant 378 (cond ((eql window tenant) 379 (cmenu:echo-msg "Already in parking-spot ~a." function-key)) 380 (t 381 (cond ((modified-p tenant) 382 (cmenu:notify (format nil "First save: ~S. Then try again." 383 (cmenu:window-path tenant))) 384 (init-parking tenant)) 385 (t 386 (vacate-current-location wp window) 387 (bump-location-and-set-location-values wp parking-spot window) 388 (#/makeKeyAndOrderFront: window nil) 389 (cmenu:echo-msg "Moved to parking-spot ~a." function-key)))))) 390 (t 391 (vacate-current-location wp window) 392 (apply-parking-spot-values parking-spot window) 393 (#/makeKeyAndOrderFront: window nil) 394 (cmenu:echo-msg "Moved to parking-spot ~a." function-key)))) 395 (t 396 (if (null parking-spot) 397 (cmenu:notify (format nil "Parking-spot ~a is not defined." function-key)) 398 (cmenu:notify (format nil "Parking-spot ~a is off screen." function-key))))))) 381 (when *park-p* 382 (let* ((parking-spot (find function-key (wp-parking-spots wp) :key #'ps-function-key)) 383 (tenant (when parking-spot (ps-tenant parking-spot)))) 384 (cond ((and parking-spot (parking-spot-on-screen-p parking-spot window)) 385 (cond (tenant 386 (cond ((eql window tenant) 387 (cmenu:echo-msg "Already in parking-spot ~a." function-key)) 388 (t 389 (cond ((modified-p tenant) 390 (cmenu:notify (format nil "First save: ~S. Then try again." 391 (cmenu:window-path tenant))) 392 (init-parking tenant)) 393 (t 394 (vacate-current-location wp window) 395 (bump-location-and-set-location-values wp parking-spot window) 396 (#/makeKeyAndOrderFront: window nil) 397 (cmenu:echo-msg "Moved to parking-spot ~a." function-key)))))) 398 (t 399 (vacate-current-location wp window) 400 (apply-parking-spot-values parking-spot window) 401 (#/makeKeyAndOrderFront: window nil) 402 (cmenu:echo-msg "Moved to parking-spot ~a." function-key)))) 403 (t 404 (if (null parking-spot) 405 (cmenu:notify (format nil "Parking-spot ~a is not defined." function-key)) 406 (cmenu:notify (format nil "Parking-spot ~a is off screen." function-key)))))))) 399 407 400 408 ;;; ---------------------------------------------------------------------------- -
release/1.4/source/lisp-kernel/darwinx8632/Makefile
r11912 r13073 70 70 OSLIBS = $(OSEARLYLIBS) $(OSMIDDLELIBS) $(OSLATELIBS) 71 71 72 ../../dx86cl: $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) Makefile72 ../../dx86cl: tiger-sdk-check $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) Makefile 73 73 $(LD) $(LDFLAGS) $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) $(OSLIBS) 74 74 … … 95 95 strip -s retain ../../dx86cl 96 96 97 .PHONY: tiger-sdk-check 98 tiger-sdk-check: 99 @test -d /Developer/SDKs/MacOSX10.4u.sdk || \ 100 (echo "*** Install Xcode 10.4 support"; exit 1) 101 102 -
release/1.4/source/lisp-kernel/darwinx8664/Makefile
r12601 r13073 93 93 OSLIBS = $(OSEARLYLIBS) $(OSMIDDLELIBS) $(OSLATELIBS) 94 94 95 ../../dx86cl64: $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) Makefile95 ../../dx86cl64: tiger-sdk-check $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) Makefile 96 96 $(LD) $(LDFLAGS) $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) $(OSLIBS) 97 97 … … 115 115 strip: ../../dx86cl64 116 116 strip -s retain ../../dx86cl64 117 118 .PHONY: tiger-sdk-check 119 tiger-sdk-check: 120 @test -d /Developer/SDKs/MacOSX10.4u.sdk || \ 121 (echo "*** Install Xcode 10.4 support"; exit 1) 122
Note:
See TracChangeset
for help on using the changeset viewer.
