[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting selected text



In article <199301111538.AA29671@world.std.com> Jeffrey B Kane,
jbk@world.std.com writes:
> What is the best approach to reading selected text from a
> Fred window?  Since it's not a stream subject to random
> i/o, I'm not sure how to get the actual characters after
> I determine the selection range.

Buffer-substring will return the selected characters as a string,
which you can read from using with-input-from-string.

I think that's probably the way to do it.  Good luck.

-----------------------------------------------------------
Tom McDougal   mcdougal@cs.uchicago.edu   +1 (312) 702-9923