HEADS UP: exp->string is now write-to-string
part of darcs patch Sat Sep 17 17:28:05 EEST 2005 Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
This commit is contained in:
parent
4bdb8da41f
commit
7c5cec84b8
|
@ -198,7 +198,7 @@
|
||||||
self)))
|
self)))
|
||||||
|
|
||||||
(define (prepare-selection-for-scheme-mode file-names)
|
(define (prepare-selection-for-scheme-mode file-names)
|
||||||
(string-append "'" (exp->string file-names)))
|
(string-append "'" (write-to-string file-names)))
|
||||||
|
|
||||||
;; FIXME: quote file names containing space etc
|
;; FIXME: quote file names containing space etc
|
||||||
(define (prepare-selection-for-command-mode file-names)
|
(define (prepare-selection-for-command-mode file-names)
|
||||||
|
@ -222,11 +222,11 @@
|
||||||
(make-focus-object-reference
|
(make-focus-object-reference
|
||||||
focus-object-table obj))))
|
focus-object-table obj))))
|
||||||
(if (null? marked)
|
(if (null? marked)
|
||||||
(exp->string
|
(write-to-string
|
||||||
(make-reference (select-list-selected-entry select-list)))
|
(make-reference (select-list-selected-entry select-list)))
|
||||||
(string-append
|
(string-append
|
||||||
"(list "
|
"(list "
|
||||||
(string-join (map exp->string (map make-reference marked)))
|
(string-join (map write-to-string (map make-reference marked)))
|
||||||
")"))))
|
")"))))
|
||||||
|
|
||||||
(lambda (message)
|
(lambda (message)
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
(substring str 0 (min (string-length str) max-length)))))
|
(substring str 0 (min (string-length str) max-length)))))
|
||||||
|
|
||||||
(define (prepare-selection-for-scheme-mode file-names)
|
(define (prepare-selection-for-scheme-mode file-names)
|
||||||
(string-append "'" (exp->string file-names)))
|
(string-append "'" (write-to-string file-names)))
|
||||||
|
|
||||||
(define (continuation-debug-data thing)
|
(define (continuation-debug-data thing)
|
||||||
(template-debug-data (continuation-template thing)))
|
(template-debug-data (continuation-template thing)))
|
||||||
|
@ -158,11 +158,11 @@
|
||||||
(make-focus-object-reference
|
(make-focus-object-reference
|
||||||
focus-object-table obj))))
|
focus-object-table obj))))
|
||||||
(if (null? marked)
|
(if (null? marked)
|
||||||
(exp->string
|
(write-to-string
|
||||||
(make-reference (select-list-selected-entry selection-list)))
|
(make-reference (select-list-selected-entry selection-list)))
|
||||||
(string-append
|
(string-append
|
||||||
"(list "
|
"(list "
|
||||||
(string-join (map exp->string (map make-reference marked)))
|
(string-join (map write-to-string (map make-reference marked)))
|
||||||
")"))))
|
")"))))
|
||||||
|
|
||||||
(define (get-selection-as-text self for-scheme-mode? focus-object-table)
|
(define (get-selection-as-text self for-scheme-mode? focus-object-table)
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
(define-interface utils-interface
|
(define-interface utils-interface
|
||||||
(export display-to-string
|
(export display-to-string
|
||||||
exp->string))
|
write-to-string))
|
||||||
|
|
||||||
(define-structure utils utils-interface
|
(define-structure utils utils-interface
|
||||||
(open scheme
|
(open scheme
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
(select-list-selected-entry select-list))))
|
(select-list-selected-entry select-list))))
|
||||||
(for-scheme-mode?
|
(for-scheme-mode?
|
||||||
(string-append
|
(string-append
|
||||||
"'" (exp->string (map process-info-pid marked))))
|
"'" (write-to-string (map process-info-pid marked))))
|
||||||
(else
|
(else
|
||||||
(string-join
|
(string-join
|
||||||
(map number->string
|
(map number->string
|
||||||
|
|
|
@ -194,10 +194,10 @@
|
||||||
(make-focus-object-reference
|
(make-focus-object-reference
|
||||||
focus-object-table obj))))
|
focus-object-table obj))))
|
||||||
(if (null? marked)
|
(if (null? marked)
|
||||||
(exp->string
|
(write-to-string
|
||||||
(make-reference (select-list-selected-entry select-list)))
|
(make-reference (select-list-selected-entry select-list)))
|
||||||
(string-append
|
(string-append
|
||||||
"(list "
|
"(list "
|
||||||
(string-join (map exp->string (map make-reference marked)))
|
(string-join (map write-to-string (map make-reference marked)))
|
||||||
")")))))
|
")")))))
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
(y 1)
|
(y 1)
|
||||||
(value value)
|
(value value)
|
||||||
(text (layout-result-standard
|
(text (layout-result-standard
|
||||||
(exp->string value)
|
(write-to-string value)
|
||||||
(result-buffer-num-cols buffer))))
|
(result-buffer-num-cols buffer))))
|
||||||
(lambda (message)
|
(lambda (message)
|
||||||
(debug-message "message for make-standard-viewer" message)
|
(debug-message "message for make-standard-viewer" message)
|
||||||
|
|
|
@ -108,7 +108,7 @@
|
||||||
(result-buffer-num-lines buffer))))
|
(result-buffer-num-lines buffer))))
|
||||||
|
|
||||||
(define (prepare-selection-for-scheme-mode infos)
|
(define (prepare-selection-for-scheme-mode infos)
|
||||||
(string-append "'" (exp->string (map cdr infos))))
|
(string-append "'" (write-to-string (map cdr infos))))
|
||||||
|
|
||||||
(define (prepare-selection-for-command-mode infos)
|
(define (prepare-selection-for-command-mode infos)
|
||||||
(string-join
|
(string-join
|
||||||
|
@ -137,7 +137,7 @@
|
||||||
(string-append
|
(string-append
|
||||||
"(list "
|
"(list "
|
||||||
(string-join
|
(string-join
|
||||||
(map exp->string
|
(map write-to-string
|
||||||
(map make-reference
|
(map make-reference
|
||||||
(map cdr infos))))
|
(map cdr infos))))
|
||||||
")")))
|
")")))
|
||||||
|
@ -252,7 +252,7 @@
|
||||||
(define (prepare-selection-for-scheme-mode infos)
|
(define (prepare-selection-for-scheme-mode infos)
|
||||||
(string-append
|
(string-append
|
||||||
"'"
|
"'"
|
||||||
(exp->string
|
(write-to-string
|
||||||
(map group-info-element->value infos))))
|
(map group-info-element->value infos))))
|
||||||
|
|
||||||
(define (get-selection-as-text self for-scheme-mode?
|
(define (get-selection-as-text self for-scheme-mode?
|
||||||
|
@ -273,7 +273,7 @@
|
||||||
(string-append
|
(string-append
|
||||||
"(list "
|
"(list "
|
||||||
(string-join
|
(string-join
|
||||||
(map exp->string
|
(map write-to-string
|
||||||
(map make-reference
|
(map make-reference
|
||||||
(map group-info-element->value infos))))
|
(map group-info-element->value infos))))
|
||||||
")")))
|
")")))
|
||||||
|
@ -334,7 +334,7 @@
|
||||||
(define (prepare-selection-for-scheme-mode infos)
|
(define (prepare-selection-for-scheme-mode infos)
|
||||||
(string-append
|
(string-append
|
||||||
"'"
|
"'"
|
||||||
(exp->string
|
(write-to-string
|
||||||
(map user-info-element->value infos))))
|
(map user-info-element->value infos))))
|
||||||
|
|
||||||
(define (get-selection-as-text self for-scheme-mode?
|
(define (get-selection-as-text self for-scheme-mode?
|
||||||
|
@ -355,7 +355,7 @@
|
||||||
(string-append
|
(string-append
|
||||||
"(list "
|
"(list "
|
||||||
(string-join
|
(string-join
|
||||||
(map exp->string
|
(map write-to-string
|
||||||
(map make-reference
|
(map make-reference
|
||||||
(map user-info-element->value infos))))
|
(map user-info-element->value infos))))
|
||||||
")")))
|
")")))
|
||||||
|
|
Loading…
Reference in New Issue