octave-maintainers
[Top][All Lists]
Advanced

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

Re: Updated patch for multiple users of readline event hook


From: John Swensen
Subject: Re: Updated patch for multiple users of readline event hook
Date: Tue, 18 Sep 2007 16:47:00 -0400
User-agent: Thunderbird 2.0.0.6 (Macintosh/20070728)

John W. Eaton wrote:
On 18-Sep-2007, John Swensen wrote:

| OK...after looking at my implementation and how you suggest, yours is | much better. I have started working on it, but I do have one more | question though. I still need to create a "default" handler for both | the startup hook and the event hook that then calls each of the | registered functions. Would you prefer this to be in the cmd-edit.cc | file also?

I was thinking of something more like the following change, which I've
checked in.

| It won't be a member of the class, since you can't set the | readline function pointer to a class function (not even a static one).

Yes, I think you can set it to a static member function (see the
attached patch).

jwe

I guess you beat me to it. Thanks a ton! I almost had it done, but this looks almost identical.

John Swensen


reply via email to

[Prev in Thread] Current Thread [Next in Thread]