[Geany-Devel] Intro

2013-10-05 Thread Mark Robinson
Hi All,

Just a note to introduce myself.  I am Mark, an old-timer coming from the world 
of Fortran.  My interest in Geany is to use it as a platform to introduce 
specific functionality to help me and others in my line of work.

I work for a software company that writes simulation software.  You probably 
thought of flight simulators, right?  Well no.  We write software that 
simulates the behaviour of real world physics, like how a car behaves when you 
drive it round a corner, or how cracks propagate material.  For this, we 
develop mathematical solvers that solve partial differential equations and use 
numerical integration to compute solutions to physical environments.  The 
solvers use a text file input as their definition, and have a macro based 
language that controls the operations of the solver.  If you know Matlab, you 
know the idea.  We just do it on an industrial scale.

I'll be requesting an additional file type (additional lexer I have written) be 
added to Geany, but thereafter I expect most of the functionality will come in 
the form of a plugin (I am writing one of these as well).  I am not a strong 
user of C/C++, as I said procedural Fortran is my forte, and this is my first 
plunge into contributing to an open source project, so expect some dumb 
questions.

Enough of the intro; I'll post specifics in a separate thread.

Kind regards,

Mark Robinson

Never give in.  Winston Churchill.

___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


Re: [Geany-Devel] Intro

2013-10-05 Thread Mark Robinson
Hi Thomas,

Thanks for the welcome.  You answered one of my first questions, concerning the 
lexer, about adding it to the Scintilla project.  I will endeavour to do this, 
but that means joining that group as well - remember I am a procedural guy, so 
time will tell.

Oh my goodness, inter-language calls from Fortran to C to Fortran.  Yuk.  I 
learnt this interface for those solvers I mentioned and it is kludgey; it is 
easier (and more effective) to learn C/C++, which I am trying to do.  My remark 
about C/C++ was intended to alert you (the group) not to expect me to 
understand everything you tell me straight away.

Once I have the lexer added to Scintilla, I will return with the other 
modifications to support the new filetype (called DMAP by the way).

Thanks again for the welcome...M

-Original Message-
From: devel-boun...@lists.geany.org [mailto:devel-boun...@lists.geany.org] On 
Behalf Of Thomas Martitz
Sent: 05 October 2013 11:20
To: Geany development list
Subject: Re: [Geany-Devel] Intro

Am 05.10.2013 11:11, schrieb Mark Robinson:
>
> Hi All,
>
> Just a note to introduce myself. I am Mark, an old-timer coming from 
> the world of Fortran. My interest in Geany is to use it as a platform 
> to introduce specific functionality to help me and others in my line 
> of work.
>

Welcome!
>
> I'll be requesting an additional file type (additional lexer I have
> written) be added to Geany, but thereafter I expect most of the 
> functionality will come in the form of a plugin (I am writing one of 
> these as well). I am not a strong user of C/C++, as I said procedural 
> Fortran is my forte, and this is my first plunge into contributing to 
> an open source project, so expect some dumb questions.
>

First of all, we have an upstream first ideology, partly because we 
don't have the resources to extra maintain patches for the projects we 
use. That means that if you write a lexer you should post that to 
Scintilla upstream, so that it will land into Geany when we update our 
copy. Then we can accept the filetype definition as well.

Secondly, I think it might actually possible to write plugins mostly in 
fortran (although I'm not sure Fortran is a suitable language for this, 
I know nothing about it) with a little C boilerplate code. But GCC 
allows to call C functions from fortran doesn't it?


Best regards
___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


Re: [Geany-Devel] Intro

2013-10-05 Thread Mark Robinson
Hi Lex,

Thanks for the welcome.  Yes, I read the HACKING doc., and followed it to the 
letter.  I have the new lexer up and working on a private link from a GIT 
extract.  The plugin seems to be working as well, so my C skills are getting 
better (I think).  The idea is to take the snippets in snippets.conf and allow 
the user to select them (double click to insert snippet) from a scroll window 
in the side-bar rather than have to remember the keyword (I'm old as well, so 
memory is an issue :)).  The new filetype I want to add has over 500 functions 
in its library, so you (I) can't remember the snippet keyword for all of them.  
It occurred to me that this should work for any snippets, and it does.

However, although the plugin works for any filetype, it has a "look up this 
snippet in a PDF file" capability that needs the new filetype to demonstrate 
it.  So, one thing at once (I am a procedural guy, remember), I'll request 
addition of the filetype to Scintilla and then move forward.

Regards...M


From: devel-boun...@lists.geany.org [mailto:devel-boun...@lists.geany.org] On 
Behalf Of Lex Trotman
Sent: 05 October 2013 11:36
To: Geany development list
Subject: Re: [Geany-Devel] Intro



On 5 October 2013 19:20, Thomas Martitz 
mailto:thomas.mart...@student.htw-berlin.de>>
 wrote:
Am 05.10.2013 11:11, schrieb Mark Robinson:

Hi All,

Just a note to introduce myself. I am Mark, an old-timer coming from the world 
of Fortran. My interest in Geany is to use it as a platform to introduce 
specific functionality to help me and others in my line of work.

Welcome!

And Hi also.


I'll be requesting an additional file type (additional lexer I have written) be 
added to Geany, but thereafter I expect most of the functionality will come in 
the form of a plugin (I am writing one of these as well). I am not a strong 
user of C/C++, as I said procedural Fortran is my forte, and this is my first 
plunge into contributing to an open source project, so expect some dumb 
questions.

First of all, we have an upstream first ideology, partly because we don't have 
the resources to extra maintain patches for the projects we use. That means 
that if you write a lexer you should post that to Scintilla upstream, so that 
it will land into Geany when we update our copy. Then we can accept the 
filetype definition as well.

Secondly, I think it might actually possible to write plugins mostly in fortran 
(although I'm not sure Fortran is a suitable language for this, I know nothing 
about it) with a little C boilerplate code. But GCC allows to call C functions 
from fortran doesn't it?

See http://gcc.gnu.org/onlinedocs/gfortran/Interoperability-with-C.html but C 
string handling in Fortran is messy, and for an IDE most code is string 
handling.  As Thomas said, I think Fortran is probably not the right language 
to use for a plugin.  In particular as all the plugin API is actually calls via 
a function pointer, not direct function calls.

You should read (and re-read) the HACKING file, it covers adding a file type 
and other issues around Geany development.

Cheers
Lex



Best regards
___
Devel mailing list
Devel@lists.geany.org<mailto:Devel@lists.geany.org>
https://lists.geany.org/cgi-bin/mailman/listinfo/devel

___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


[Geany-Devel] DMAP file type

2014-02-11 Thread Mark Robinson
Hi All,

In October of last year, I made a request to Scintilla to add a new lexer to 
the Scintilla upstream component to support the DMAP language; the lexer was 
added to version 3.3.7 of Scintilla in December last year.  Currently Scintilla 
is at version 3.3.9

In anticipation of an update to Geany to use Scintilla 3.3.7 or later, I'd now 
like to add a new filetype to Geany which leverages the new lexer.  Back in 
October, I modified a few files in the build in order to support the new 
filetype.  How do I go about making these modification available to the Geany 
nightly system so they will eventually end up in the next official release?  Do 
I provide complete modified source, or a diff file showing the changes?

Once the new filetype is in place, I have a new plugin ready for release to 
manipulate the DMAP language.  Do you know when Geany 1.24.1 (which I hope will 
include the new filetype) might make the scene?

Thanks...M
___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


Re: [Geany-Devel] DMAP file type

2014-02-12 Thread Mark Robinson
Hi Lex,

Thanks; I'll proceed to pull and commit.

Regards...M

-Original Message-
From: devel-boun...@lists.geany.org [mailto:devel-boun...@lists.geany.org] On 
Behalf Of Lex Trotman
Sent: 11 February 2014 17:58
To: Geany development list
Subject: Re: [Geany-Devel] DMAP file type

On 12 February 2014 01:40, Mark Robinson  wrote:
> Hi All,
>
>
>
> In October of last year, I made a request to Scintilla to add a new 
> lexer to the Scintilla upstream component to support the DMAP 
> language; the lexer was added to version 3.3.7 of Scintilla in 
> December last year.  Currently Scintilla is at version 3.3.9
>

To be fair, there was only a week between 3.3.8 and 3.3.9 :)  The current 
version in Geany git HEAD is 3.3.6, its not known if this will be updated 
before the release.  The update rate tends to slow near releases to allow it to 
"mature" a bit.

>
>
> In anticipation of an update to Geany to use Scintilla 3.3.7 or later, 
> I'd now like to add a new filetype to Geany which leverages the new 
> lexer.  Back in October, I modified a few files in the build in order 
> to support the new filetype.  How do I go about making these 
> modification available to the Geany nightly system so they will 
> eventually end up in the next official release?  Do I provide complete 
> modified source, or a diff file showing the changes?
>

A pull request on github is the preferred path.

>
>
> Once the new filetype is in place, I have a new plugin ready for 
> release to manipulate the DMAP language.  Do you know when Geany 
> 1.24.1 (which I hope will include the new filetype) might make the scene?

1.24 is only waiting on a fix for a major bug in the windows version.
We think we might have that fix now.  I would guess its unlikely that anything 
else too major will be added before release to ensure its all reasonably mature 
and tested.

Cheers
Lex

>
>
>
> Thanks...M
>
>
> ___
> Devel mailing list
> Devel@lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/devel
>
___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


[Geany-Devel] Regex in 1.25 and 1.26

2015-12-21 Thread Mark Robinson
Hi Guys,

Is the regular expression capability broken in 1.25 and 1.26

In 1.24, if I pop up the Find dialogue on a simple text file, I can search for 
\n with reg. expressions ticked and I find the end of the line.

If I do this in 1.25 or 1.26, it does not find the end of the line and claims 
it cannot find \n.

I notice single line reg. exp. was added at 1.25.

Thanks...M

___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


Re: [Geany-Devel] Regex in 1.25 and 1.26

2016-01-01 Thread Mark Robinson
Oh, I see now.  Cool, the multi-line works just fine, thank you...M

-Original Message-
From: Devel [mailto:devel-boun...@lists.geany.org] On Behalf Of Colomban 
Wendling
Sent: 21 December 2015 19:45
To: Geany development list 
Subject: Re: [Geany-Devel] Regex in 1.25 and 1.26

Le 21/12/2015 18:31, Mark Robinson a écrit :
> Hi Guys,
> 
> Is the regular expression capability broken in 1.25 and 1.26
> 
> In 1.24, if I pop up the Find dialogue on a simple text file, I can 
> search for \n with reg. expressions ticked and I find the end of the 
> line.
> 
> If I do this in 1.25 or 1.26, it does not find the end of the line and 
> claims it cannot find \n.
> 
> I notice single line reg. exp. was added at 1.25.

Which is the reason of your problem :)  Single-line regular expressions can't 
find the \n because it's not part of the line itself, and in a line-based 
regular expression the line end is $ (as it's the end of the input).

So yes, 1.25 changed behavior by implementing single-line regular expressions 
and making it the default (because I believed it was more commonly what people 
were after, esp. because there's a history of people confused by some 
multi-line results).

This doesn't mean you can't search for \n: you can either switch back to 
multi-line regular expressions (there's a checkbox just for that), or if you 
want to search for line ends (e.g. if line ends are not \n in your file(s)), 
use $ with single-line regexes.

Regards,
Colomban
___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel
___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


[Geany-Devel] New Lexer

2016-01-01 Thread Mark Robinson
Hi Guys,

Some time ago, I asked how I go about adding a new filetype/language to Geany 
called DMAP.  You kindly told me first to request a new lexer be added to 
upstream Scintilla, which I did, and it was accepted (it was added to Scintilla 
3.3.7).

Geany has moved to a Scintilla 3.6.1, which indeed contains the new language.  
However, when I look in the ~/geany-1.26/scintilla/lexers directory, I do not 
see the lexer's file (LexDMAP.cxx).  In fact, the Geany build does not contain 
many of the Scintilla files.  Is this because only the files that are used are 
placed in the Geany build?

Sorry if this seems like a naïve question (which it is), but if I now move to 
add a new filetype to Geany, will the references to the "missing" Scintilla 
source be handled automatically or is there something I need to do? - I don't 
want to mess things up.

Kind regards...M
___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel