octave-maintainers
[Top][All Lists]
Advanced

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

Re: GUI won't build with older QScintilla


From: Torsten
Subject: Re: GUI won't build with older QScintilla
Date: Fri, 12 Apr 2013 20:41:19 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Thunderbird/17.0.4

On 08.04.2013 16:24, Jordi Gutiérrez Hermoso wrote:
> On 6 April 2013 04:35, Torsten <address@hidden> wrote:
>> On 05.04.2013 22:18, John W. Eaton wrote:
>>> On 04/05/2013 03:58 PM, Jordi Gutiérrez Hermoso wrote:
>>>
>>>> However, are you sure you like the overall direction of this
>>>> patch? I'm not opposed to using newer features of QScintilla, and
>>>> you don't need to duplicate the QsciLexerOctave class in Octave.
>>>> The duplication, if that's what it is, seems very small, so
>>>> perhaps it's ok.
>>>
>>> It would be OK to make it so that the feature is just not available
>>> unless you have a newer version of QScintilla. I think that would
>>> be better than trying to duplicate the missing feature.
>>>
>>
>> It is not really a duplicate but just configuring the general
>> Qscintilla-lexer-interface to work like the octave lexer.
> 
> Alright. I thought it was a little ugly to avoid using
> QSciLexerOctave, but I don't know this part of the code well.
> 
>> We already have a check for version 2.6 in
>> OCTAVE_CHECK_FUNC_FINDFIRST_MODERN. I am not sure whether another
>> test should be added or if that existent test could be used
>> (unnecessarily disabling the feature for versions between 2.5 and
>> 2.6).
> 
> Adding another test makes more sense to me.
> 
> Let me know if you have an updated patch you'd like me to test.

The changeset with the general lexer is checked in:
http://hg.savannah.gnu.org/hgweb/octave/rev/3781abc74540

For the problem with setFirstVisibleLine () I attached a simple patch
where the function setFirstVisibleLine () is replaced by the function
sendScintilla () with the message SCI_SETFIRSTVISIBLELINE as parameter.
Since this message is not defined in older versions I have replaced it
by its numeric value 2613. From a test and what I have seen in the
Qscintilla sources, an unknown message number is just ignored. As a
consequence the line where the debugger stops or which is chosen for
"goto line" is not centered in the editor tab.

Torsten


Attachment: setFirstVisibleLine.diff
Description: Text Data


reply via email to

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