Changeset 8029
- Timestamp:
- Jan 8, 2008, 12:39:43 PM (17 years ago)
- Location:
- branches/event-ide/ccl/cocoa-ide
- Files:
-
- 1 deleted
- 7 edited
-
cocoa-utils.lisp (modified) (1 diff)
-
compile-hemlock.lisp (modified) (1 diff)
-
hemlock/src/bindings-gb.lisp (deleted)
-
hemlock/src/bindings.lisp (modified) (2 diffs)
-
hemlock/src/defsyn.lisp (modified) (1 diff)
-
hemlock/src/fill.lisp (modified) (1 diff)
-
hemlock/src/lispmode.lisp (modified) (9 diffs)
-
hemlock/src/rompsite.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/event-ide/ccl/cocoa-ide/cocoa-utils.lisp
r7911 r8029 102 102 (float number ccl::+cgfloat-zero+)) 103 103 104 (defun color-values-to-nscolor (red green blue alpha)104 (defun color-values-to-nscolor (red green blue &optional alpha) 105 105 (#/colorWithCalibratedRed:green:blue:alpha: ns:ns-color 106 106 (cgfloat red) 107 107 (cgfloat green) 108 108 (cgfloat blue) 109 (cgfloat alpha)))109 (cgfloat (or alpha 1.0)))) 110 110 111 111 (defun windows () -
branches/event-ide/ccl/cocoa-ide/compile-hemlock.lisp
r7993 r8029 89 89 "symbol-completion" 90 90 "bindings" 91 "bindings-gb" ;Gilbert's bindings 92 )) 91 )) 93 92 94 93 (defun compile-hemlock (&optional force) -
branches/event-ide/ccl/cocoa-ide/hemlock/src/bindings.lisp
r7993 r8029 92 92 (bind-key "End of Buffer" #k"end") 93 93 (bind-key "Undo" #k"control-_") 94 (bind-key "Undo" #k"control-\/") 94 95 (bind-key "Describe Key" #k"meta-?") 95 96 (bind-key "What Cursor Position" #k"control-x =") … … 192 193 (bind-key "Expand Dynamic Abbreviation" #k"meta-`") ;; MCL binding 193 194 195 (bind-key "Help" #k"control-h") 194 196 195 197 -
branches/event-ide/ccl/cocoa-ide/hemlock/src/defsyn.lisp
r6 r8029 65 65 (setf (character-attribute :word-delimiter 66 66 #+CMU #\formfeed 67 #+(or EXCL sbcl CLISP OpenMCL) #\page) 1)67 #+(or EXCL sbcl CLISP Clozure) #\page) 1) 68 68 (setf (character-attribute :word-delimiter #\tab) 1) 69 69 (setf (character-attribute :word-delimiter #\newline) 1) -
branches/event-ide/ccl/cocoa-ide/hemlock/src/fill.lisp
r7993 r8029 64 64 (setf (character-attribute :paragraph-delimiter #\linefeed) 1) 65 65 (setf (character-attribute :paragraph-delimiter 66 #+CMU #\formfeed #+(or sbcl EXCL CLISP OpenMCL) #\page) 1)66 #+CMU #\formfeed #+(or sbcl EXCL CLISP Clozure) #\page) 1) 67 67 (setf (character-attribute :paragraph-delimiter #\tab) 1) 68 68 (setf (character-attribute :paragraph-delimiter #\newline) 1) -
branches/event-ide/ccl/cocoa-ide/hemlock/src/lispmode.lisp
r7929 r8029 818 818 :value 2) 819 819 820 (defhvar "Indent With-anything" 821 "This is the number of special arguments implicitly assumed to be supplied 822 in calls to functions whose names begin with \"WITH-\". If set to NIL, this 823 feature is disabled." 824 :value 1) 825 820 826 (defvar *special-forms* (make-hash-table :test #'equal)) 821 827 … … 833 839 ;;; Hemlock forms. 834 840 ;;; 835 (defindent "with-mark" 1)836 (defindent "with-random-typeout" 1)837 (defindent "with-pop-up-display" 1)838 841 (defindent "defhvar" 1) 839 842 (defindent "hlet" 1) … … 841 844 (defindent "defattribute" 1) 842 845 (defindent "command-case" 1) 843 (defindent "with-input-from-region" 1)844 (defindent "with-output-to-mark" 1)845 846 (defindent "do-strings" 1) 846 847 (defindent "save-for-undo" 1) … … 848 849 (defindent "do-headers-buffers" 1) 849 850 (defindent "do-headers-lines" 1) 850 (defindent "with-headers-mark" 1)851 851 (defindent "frob" 1) ;cover silly FLET and MACROLET names for Rob and Bill. 852 (defindent "with-writable-buffer" 1)853 852 854 853 ;;; Common Lisp forms. … … 901 900 (defindent "unwind-protect" 1) 902 901 (defindent "when" 1) 903 (defindent "with-input-from-string" 1)904 (defindent "with-open-file" 1)905 (defindent "with-open-stream" 1)906 (defindent "with-output-to-string" 1)907 (defindent "with-package-iterator" 1)908 902 909 903 ;;; Error/condition system forms. … … 914 908 (defindent "restart-bind" 1) 915 909 (defindent "restart-case" 1) 916 (defindent "with-simple-restart" 1)917 910 ;;; These are for RESTART-CASE branch formatting. 918 911 (defindent "store-value" 1) … … 966 959 ;;; CLOS forms. 967 960 ;;; 968 (defindent "with-slots" 1)969 961 (defindent "with-accessors" 2) 970 962 (defindent "defclass" 2) … … 978 970 979 971 ;;; Multiprocessing forms. 980 (defindent "with-lock-grabbed" 1)981 972 (defindent "process-wait" 1) 982 973 … … 1020 1011 (and (> (length fname) 2) 1021 1012 (string= fname "DEF" :end1 3) 1022 (value indent-defanything))))) 1013 (value indent-defanything)) 1014 (and (> (length fname) 4) 1015 (string= fname "WITH-" :end1 5) 1016 (value indent-with-anything))))) 1023 1017 (declare (simple-string fname)) 1024 1018 ;; Now that we have the form name, did it have special syntax? -
branches/event-ide/ccl/cocoa-ide/hemlock/src/rompsite.lisp
r7993 r8029 276 276 function was defined in. If it was not defined in some file, nil is 277 277 returned." 278 #+CMU 279 (flet ((frob (code) 280 (let ((info (kernel:%code-debug-info code))) 281 (when info 282 (let ((sources (c::debug-info-source info))) 283 (when sources 284 (let ((source (car sources))) 285 (when (eq (c::debug-source-from source) :file) 286 (c::debug-source-name source))))))))) 278 (flet ((true-namestring (path) (namestring (truename path)))) 287 279 (typecase function 288 (symbol (fun-defined-from-pathname (fdefinition function))) 289 (kernel:byte-closure 290 (fun-defined-from-pathname (kernel:byte-closure-function function))) 291 (kernel:byte-function 292 (frob (c::byte-function-component function))) 293 (function 294 (frob (kernel:function-code-header (kernel:%function-self function)))) 295 (t nil))) 296 #+openmcl 297 (flet ((true-namestring (path) (namestring (truename path)))) 298 (typecase function 299 (function (fun-defined-from-pathname (ccl::function-name function))) 300 (symbol (let* ((info (ccl::%source-files function))) 301 (if (atom info) 302 (true-namestring info) 303 (let* ((finfo (assq 'function info))) 304 (when finfo 305 (true-namestring 306 (if (atom finfo) 307 finfo 308 (car finfo))))))))))) 280 (function (fun-defined-from-pathname (ccl:function-name function))) 281 (symbol (let* ((info (ccl::%source-files function))) 282 (if (atom info) 283 (true-namestring info) 284 (let* ((finfo (assq 'function info))) 285 (when finfo 286 (true-namestring 287 (if (atom finfo) 288 finfo 289 (car finfo))))))))))) 309 290 310 291
Note:
See TracChangeset
for help on using the changeset viewer.
