get-selection-as-ref for id-output
part of darcs patch Fri Sep 16 23:02:04 EEST 2005 Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
This commit is contained in:
parent
c46282f826
commit
8c6de19aaa
|
@ -161,6 +161,7 @@
|
||||||
plugin
|
plugin
|
||||||
layout
|
layout
|
||||||
select-list
|
select-list
|
||||||
|
(subset focus-table (make-focus-object-reference))
|
||||||
tty-debug)
|
tty-debug)
|
||||||
(files user-group-info))
|
(files user-group-info))
|
||||||
|
|
||||||
|
|
|
@ -129,6 +129,19 @@
|
||||||
prepare-selection-for-command-mode)
|
prepare-selection-for-command-mode)
|
||||||
infos)))
|
infos)))
|
||||||
|
|
||||||
|
(define (get-selection-as-ref self focus-object-table)
|
||||||
|
(let ((infos (select-list-get-selection selection-list))
|
||||||
|
(make-reference (lambda (obj)
|
||||||
|
(make-focus-object-reference
|
||||||
|
focus-object-table obj))))
|
||||||
|
(string-append
|
||||||
|
"(list "
|
||||||
|
(string-join
|
||||||
|
(map exp->string
|
||||||
|
(map make-reference
|
||||||
|
(map cdr infos))))
|
||||||
|
")")))
|
||||||
|
|
||||||
(lambda (message)
|
(lambda (message)
|
||||||
(case message
|
(case message
|
||||||
((paint)
|
((paint)
|
||||||
|
@ -166,7 +179,8 @@
|
||||||
self))))
|
self))))
|
||||||
((get-selection-as-text)
|
((get-selection-as-text)
|
||||||
get-selection-as-text)
|
get-selection-as-text)
|
||||||
|
((get-selection-as-ref)
|
||||||
|
get-selection-as-ref)
|
||||||
(else
|
(else
|
||||||
(error "unknown message in make-id-output-browser"
|
(error "unknown message in make-id-output-browser"
|
||||||
message))))))
|
message))))))
|
||||||
|
|
Loading…
Reference in New Issue