[Geany-devel] Planning 0.19.2 bugfix release

2010-11-29 Thread Nick Treleaven
Hi, We're planning to make a 0.19.2 release very soon with just one important fix - the failure to always report a save error to the user whenever POSIX saving fails. Any other fixes will be delayed to the 0.20 release which hopefully will be in a few weeks time. (We haven't agreed the string free

Re: [Geany-devel] scintilla update - Re: scintilla rectangle selection change

2010-11-29 Thread Nick Treleaven
On Sun, 28 Nov 2010 14:04:37 +0100 Enrico Tröger wrote: > >> I committed the new Scintilla version into the unstable branch. I > >> hope I did it right. The scintilla_changes.patch still needs to be > >> updated, will do this sometime later, though there were no other > >> changes I did to the so

Re: [Geany-devel] geany-plugins depends on GIO - plugin API version checks

2010-11-27 Thread Nick Treleaven
On Fri, 26 Nov 2010 07:06:12 +1100 Lex Trotman wrote: > On 26 November 2010 04:07, Nick Treleaven > wrote: > > On Thu, 25 Nov 2010 10:54:07 +1100 > > Lex Trotman wrote: > > > >> On 24 November 2010 23:54, Nick Treleaven > >> wrote: > >&

Re: [Geany-devel] Java parser has issues with Object array return types. - C parser

2010-11-25 Thread Nick Treleaven
On Thu, 25 Nov 2010 17:56:13 + Nick Treleaven wrote: > > If I get a chance over the weekend I'll take a look at the lexer. > > Note: we use 'lexer' for syntax highlighting, 'parser' for tags. They > are implemented differently. Actually you pro

Re: [Geany-devel] Java parser has issues with Object array return types. - C parser

2010-11-25 Thread Nick Treleaven
On Thu, 25 Nov 2010 18:21:46 +0100 Jon Senior wrote: > If I get a chance over the weekend I'll take a look at the lexer. Note: we use 'lexer' for syntax highlighting, 'parser' for tags. They are implemented differently. > Remind me (and I really should remember this), is it based on ctags? > ie

Re: [Geany-devel] Missing environment variables for builds and executes - dash

2010-11-25 Thread Nick Treleaven
On Thu, 25 Nov 2010 11:24:07 +1100 Lex Trotman wrote: > >> > Unfortunately I don't know that a shell login argument is portable. I > >> > think -l is specific to bash, but even --login doesn't work for dash > >> > (the default /bin/sh on Ubuntu IIRC). > >> > >> Patch actually developed and tested

Re: [Geany-devel] geany-plugins depends on GIO - plugin API version checks

2010-11-25 Thread Nick Treleaven
On Thu, 25 Nov 2010 10:54:07 +1100 Lex Trotman wrote: > On 24 November 2010 23:54, Nick Treleaven > wrote: > > On Tue, 23 Nov 2010 09:09:59 +1100 > > Lex Trotman wrote: > > > >> But the general consensus seems to be that people are happy to use > >&g

[Geany-devel] scintilla update - Re: scintilla rectangle selection change

2010-11-25 Thread Nick Treleaven
On Thu, 25 Nov 2010 00:47:22 +0100 Enrico Tröger wrote: > >>> I just created the branch and will commit the updated Scintilla copy > >>> soon. > > Soon = now(). > > I committed the new Scintilla version into the unstable branch. I hope > I did it right. The scintilla_changes.patch still needs t

Re: [Geany-devel] geany-plugins depends on GIO - plugin API version checks

2010-11-24 Thread Nick Treleaven
On Tue, 23 Nov 2010 09:09:59 +1100 Lex Trotman wrote: > But the general consensus seems to be that people are happy to use > static versioning and to keep conpiling (well it is the developer > list) and either manually checking what has changed in an API/ABI > break or (more probably) to hope tha

Re: [Geany-devel] Missing environment variables for builds and executes - dash

2010-11-24 Thread Nick Treleaven
On Wed, 24 Nov 2010 08:36:18 +1100 Lex Trotman wrote: > > Unfortunately I don't know that a shell login argument is portable. I > > think -l is specific to bash, but even --login doesn't work for dash > > (the default /bin/sh on Ubuntu IIRC). > > Patch actually developed and tested on Ubuntu. M

Re: [Geany-devel] geany-plugins depends on GIO - plugin API

2010-11-24 Thread Nick Treleaven
On Wed, 24 Nov 2010 09:09:57 +1100 Lex Trotman wrote: > >> > It depends on what fields we're talking about. For a getter function > >> > for a pref, there's not much you can do if the behaviour of the pref > >> > changes or the pref is removed, the function will be no better than > >> > the field

Re: [Geany-devel] backup pref - Re: Changed file saving implementation for systems with GIO

2010-11-23 Thread Nick Treleaven
On Fri, 19 Nov 2010 08:20:58 +1100 Lex Trotman wrote: > On 19 November 2010 06:04, Nick Treleaven > wrote: > > On Mon, 15 Nov 2010 08:57:51 +1100 > > Lex Trotman wrote: > > > > I think either: > > 1. unsafe_save_backup should be renamed to gio_unsaf

Re: [Geany-devel] Missing environment variables for builds and executes

2010-11-23 Thread Nick Treleaven
On Wed, 17 Nov 2010 13:40:42 +1100 Lex Trotman wrote: > When Geany is started from the Gnome menu it doesn't get environment > variables set in .profile, .bashrc etc. Other window managers seem > ok. According to: http://www.mkssoftware.com/docs/man1/sh.1.asp#Options_and_Invocation ~/.bashrc i

Re: [Geany-devel] Missing environment variables for builds and executes

2010-11-23 Thread Nick Treleaven
On Wed, 17 Nov 2010 13:40:42 +1100 Lex Trotman wrote: > When Geany is started from the Gnome menu it doesn't get environment > variables set in .profile, .bashrc etc. Other window managers seem > ok. > > This means that builds don't see CFLAGS, python executes don't see > PYTHONPATH etc :-( >

Re: [Geany-devel] geany-plugins depends on GIO - plugin API

2010-11-23 Thread Nick Treleaven
On Tue, 23 Nov 2010 09:20:35 +1100 Lex Trotman wrote: > >> , but I don't really think we should add accessors for > >> >> all fields. > >> > >> @Nick, > >> > >> Well you have in the past commented negatively about making structures > >> visible.  As you sagely said either you constrain your imple

Re: [Geany-devel] scintilla rectangle selection change & 0.20 release

2010-11-23 Thread Nick Treleaven
On Mon, 22 Nov 2010 22:33:55 +0100 Enrico Tröger wrote: > On Mon, 22 Nov 2010 22:03:53 +0100, Dominic wrote: > > >Am Montag, den 22.11.2010, 13:03 +0000 schrieb Nick Treleaven: > >> On Sun, 21 Nov 2010 18:29:36 +0100 > >> Enrico Tröger wrote: > >>

[Geany-devel] supporting multiple API versions

2010-11-22 Thread Nick Treleaven
On Wed, 17 Nov 2010 01:34:26 +0100 Colomban Wendling wrote: > I personally think that protecting code with something like > #if GEANY_CHECK_API_VERSION(421) > ... > #endif > is enough. I also think compile time checks are enough. I've just made GEANY_API_VERSION a preprocessor macro so you

Re: [Geany-devel] scintilla rectangle selection change & 0.20 release

2010-11-22 Thread Nick Treleaven
On Sun, 21 Nov 2010 18:29:36 +0100 Enrico Tröger wrote: > >Do we plan to update scintilla anytime soon? If not, would it be > > Nick? > Any release plans soon? Yes, I think we could make the 0.20 release soon. If there are no i18n string changes to add we could start the string freeze in a few

Re: [Geany-devel] scintilla rectangle selection change

2010-11-22 Thread Nick Treleaven
On Sun, 21 Nov 2010 18:29:36 +0100 Enrico Tröger wrote: > >Do we plan to update scintilla anytime soon? If not, would it be > > Nick? > Any release plans soon? Yes, I think we could make the 0.20 release soon. If there are no i18n string changes to add we could start the string freeze in a few

Re: [Geany-devel] geany-plugins depends on GIO - plugin API

2010-11-22 Thread Nick Treleaven
On Mon, 22 Nov 2010 08:24:13 +1100 Lex Trotman wrote: > , but I don't really think we should add accessors for > >> all fields. > > @Nick, > > Well you have in the past commented negatively about making structures > visible. As you sagely said either you constrain your implementation > or yuo

Re: [Geany-devel] geany-plugins depends on GIO - plugin API

2010-11-19 Thread Nick Treleaven
On Fri, 19 Nov 2010 09:56:21 +1100 Lex Trotman wrote: > Just structures (ie each pointer in GeanyData), no need to protect > individual members because over time structures should be removed from > the API because they expose implementation details that are then > frozen. They should use accesso

[Geany-devel] backup pref - Re: Changed file saving implementation for systems with GIO

2010-11-18 Thread Nick Treleaven
On Mon, 15 Nov 2010 08:57:51 +1100 Lex Trotman wrote: > >> > Also, g_file_replace_contents does have a make_backup argument we could > >> > provide an option for. This might handle the disk exhaustion problem. > >> > >> To summarise the long thread for you Nick, g_file_replace_contents and > >> g

Re: [Geany-devel] Geany FTW - better autocompletion

2010-11-17 Thread Nick Treleaven
On Tue, 16 Nov 2010 17:32:01 +0100 Simone Pellegrini wrote: > I really like geany as it uses scintilla, the only feature I feel is > missing is the intellisense like code competition for C++. I would like > to ask if anyone is working on a better code competition for C++. I am > not talking ab

Re: [Geany-devel] HTML/XML autoindentation - Re: [PATCH] Some editor/snippets/keybindings enhancements

2010-11-11 Thread Nick Treleaven
On Wed, 10 Nov 2010 22:44:43 +0300 Eugene Arshinov wrote: > > I changed the code slightly to check whether the document uses the > > HTML/XML lexer rather than those filetypes, and to always read the > > property. This should allow other filetypes that have XML syntax to > > work also if the prop

Re: [Geany-devel] R Tags

2010-11-11 Thread Nick Treleaven
On Thu, 11 Nov 2010 09:11:30 +1100 Lex Trotman wrote: > > However, even if geany -g worked on .R files, the approach would be > > difficult to apply in practice. It requires the user to specify .R > > files, and given the structure of R packages this could be a quickly > > become tedious. It woul

[Geany-devel] OT - threading - Re: Attempted python plugin

2010-11-11 Thread Nick Treleaven
On Thu, 11 Nov 2010 18:16:38 +1100 Lex Trotman wrote: > PS for some reason your posts are not threading so I've lost you original code Looks fine to me in Sylpheed ;-) Nick ___ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bi

[Geany-devel] Scintilla considering using some C++0x features

2010-11-11 Thread Nick Treleaven
Hi, I've just read that Neil is considering using some C++0x features - I think this isn't great for Geany's portability. I've replied on the Scintilla mailing list. Anyone interested might want to follow the discussion. Nick ___ Geany-devel mailing list

Re: [Geany-devel] Small indentation bug fix

2010-11-11 Thread Nick Treleaven
On Thu, 11 Nov 2010 00:32:25 -0500 david wrote: > Hi, > > I noticed this small bug with snippet indentation. > > The indentation is based on the total number of whitespace in the line, > not the total number of _indenting_ whitespace in the line. Indenting > whitespace is all whitespace before

Re: [Geany-devel] Changed file saving implementation for systems with GIO

2010-11-11 Thread Nick Treleaven
On Wed, 10 Nov 2010 21:23:18 +0200 Dimitar Zhekov wrote: > > > Why fake 0 errno as EIO? g_file_set_contents() doesn't, and *strerror() > > > returns something for 0, usually "Error 0". > > > > GLib says to use g_strerror, which says 'Success', which is confusing. > > It is, but "Input/output er

Re: [Geany-devel] Changed file saving implementation for systems with GIO

2010-11-10 Thread Nick Treleaven
On Wed, 10 Nov 2010 20:02:53 +0200 Dimitar Zhekov wrote: > Ah, it sets errno = 0 first, assuming that fwrite() may fail to do so. > > > I've now committed a fix so that any write failure should be reported > > to the user even if errno is 0. Please test. > > It won't be 0 unless you assign it.

Re: [Geany-devel] HTML/XML autoindentation - Re: [PATCH] Some editor/snippets/keybindings enhancements

2010-11-10 Thread Nick Treleaven
On Tue, 2 Nov 2010 23:28:43 +0300 Eugene Arshinov wrote: > > I think just add a html_tag_autoindentation field to > > GeanyFiletypePrivate and use that. > > > > Okay, the patch is attached. Thanks, applied (with some changes). > I named the field 'xml_indent_tags' and > the filetype property

Re: [Geany-devel] Changed file saving implementation for systems with GIO

2010-11-10 Thread Nick Treleaven
On Wed, 10 Nov 2010 13:25:56 + Nick Treleaven wrote: > > > > But since we don't write the file line-by-line or > > > > something, _why_ do we use buffered I/O in the first place?.. > > > > > > I don't know. But changing implementation of

Re: [Geany-devel] Changed file saving implementation for systems with GIO

2010-11-10 Thread Nick Treleaven
On Wed, 10 Nov 2010 10:13:29 +1100 Lex Trotman wrote: > > Also, g_file_replace_contents does have a make_backup argument we could > > provide an option for. This might handle the disk exhaustion problem. > > To summarise the long thread for you Nick, g_file_replace_contents and > g_file_replace

Re: [Geany-devel] Changed file saving implementation for systems with GIO

2010-11-10 Thread Nick Treleaven
On Tue, 9 Nov 2010 21:27:07 +0200 Dimitar Zhekov wrote: > > > Well, g_file_set_contents() uses buffered I/O, so obviously it's > > > acceptable too. > > > > Yes, it uses fwrite and then errno. > > Probably fwrite(), fflush() and then errno? > fflush() is guaranteed to set errno AFAIK. No:

Re: [Geany-devel] Changed file saving implementation for systems with GIO

2010-11-09 Thread Nick Treleaven
On Tue, 9 Nov 2010 20:28:43 +0200 Dimitar Zhekov wrote: > With binary I/O we have fsync(), which really flushes the data. > Even fflush() and fclose() are not guaranteed to do that. Strange, why is that? > Well, g_file_set_contents() uses buffered I/O, so obviously it's > acceptable too. Yes,

Re: [Geany-devel] Changed file saving implementation for systems with GIO

2010-11-09 Thread Nick Treleaven
On Sat, 6 Nov 2010 11:33:41 +0200 Dimitar Zhekov wrote: > I'll write a non-GIO variant first, as a proof of concept. First, I feel quite reluctant to use non-GLib/GIO functions for writing instead of g_file_replace_contents because if there is a better implementation, why don't they add it? Als

Re: [Geany-devel] Indent width keybinding(s) / code

2010-11-08 Thread Nick Treleaven
On Mon, 1 Nov 2010 15:05:47 + Nick Treleaven wrote: > > (2) includes a "Redinent all documents" function, which will apply the > > current settings to all open files. Ever since per-document indent took > > place, we have no way to quickly reindent all open proj

Re: [Geany-devel] respect smart shift-alt-home

2010-11-08 Thread Nick Treleaven
On Sun, 7 Nov 2010 21:39:29 +0200 Dimitar Zhekov wrote: > * src/editor.c: >Respect 'Smart' home key for Shift+Home (fixes #3100290). > > Should apply to Shift+Alt+Home as well. Fix attached. Applied, thanks. Nick ___ Geany-devel mailing list Gea

Re: [Geany-devel] folding problem

2010-11-07 Thread Nick Treleaven
On Fri, 5 Nov 2010 20:30:53 + WILLIAM FRASER wrote: > I've spotted what might be two problems with folding... They are > demonstrated with the following line of Java code: > > Image[] AnnimationPics; //{picture number,delay in 10ths of a second until > changes to next image} > > This line i

Re: [Geany-devel] Changed file saving implementation for systems with GIO

2010-11-07 Thread Nick Treleaven
On Thu, 4 Nov 2010 22:42:04 +0200 Dimitar Zhekov wrote: > On Thu, 4 Nov 2010 17:53:47 + > Nick Treleaven wrote: > > > So it seems that function doesn't handle disk exhaustion safely. (But > > this is no worse than before for Geany). > > Before we had safe o

Re: [Geany-devel] Changed file saving implementation for systems with GIO

2010-11-04 Thread Nick Treleaven
On Thu, 04 Nov 2010 18:14:17 +0100 Colomban Wendling wrote: > >> Interesting change, let's see what happens now -- this said I don't use > >> remote files often so I will probably not notice any change... > > > > Actually I should have been clearer - this change affects local files > > too. I'll

Re: [Geany-devel] Changed file saving implementation for systems with GIO

2010-11-04 Thread Nick Treleaven
On Thu, 4 Nov 2010 20:37:13 +0200 Dimitar Zhekov wrote: > > To workaround bug(s) in GVFS, I've now changed the file saving > > implementation for systems with GIO in SVN trunk. See also: > > > > http://lists.uvena.de/geany-devel/2010-November/003412.html > > > > Please help test this. File perm

Re: [Geany-devel] Changed file saving implementation for systems with GIO

2010-11-04 Thread Nick Treleaven
On Wed, 03 Nov 2010 00:26:00 +0100 Colomban Wendling wrote: > Le 02/11/2010 19:11, Nick Treleaven a écrit : > > Hi list, > > To workaround bug(s) in GVFS, I've now changed the file saving > > implementation for systems with GIO in SVN trunk. See also: > > >

[Geany-devel] Changed file saving implementation for systems with GIO

2010-11-02 Thread Nick Treleaven
Hi list, To workaround bug(s) in GVFS, I've now changed the file saving implementation for systems with GIO in SVN trunk. See also: http://lists.uvena.de/geany-devel/2010-November/003412.html Please help test this. File permissions should be preserved after saving, and disk space exhaustion shoul

Re: [Geany-devel] g_file_replace_contents patch - Re: Safe file saving - permissions issue

2010-11-02 Thread Nick Treleaven
On Fri, 10 Sep 2010 15:35:59 +0100 Nick Treleaven wrote: > I've still been using a GLib 2.14 system (so haven't personally tested > this), but I think we ought to try using GIO for document saving as it > may fix the network file truncation problems. > > I attach an ed

Re: [Geany-devel] ui_editable_insert_text_callback

2010-11-02 Thread Nick Treleaven
On Sat, 30 Oct 2010 16:45:06 +0300 Dimitar Zhekov wrote: > On Fri, 29 Oct 2010 18:22:17 +0100 > Nick Treleaven wrote: > > > > > > 2. ui_editable_insert_text_callback() checks only the first character > > > > > (assuming typing?), so you can, say, paste

Re: [Geany-devel] Unhide preferences

2010-11-02 Thread Nick Treleaven
On Fri, 29 Oct 2010 20:57:52 +0300 Dimitar Zhekov wrote: > > BTW if you don't like using Glade you can add the tab manually, like > > the VTE does. Maybe the interface.c code could be moved elsewhere. > > What I don't like is the glade-2/glade-3 situation... Anyway, I > recreated the interface w

Re: [Geany-devel] HTML/XML autoindentation - Re: [PATCH] Some editor/snippets/keybindings enhancements

2010-11-02 Thread Nick Treleaven
On Fri, 29 Oct 2010 21:56:53 +0400 Eugene Arshinov wrote: > > I wasn't thinking of brace autoindentation. In that case perhaps it's > > simpler to add a HTML-specific setting to disable tag autoindentation. > > > > It makes sense, but since now I could not find an acceptable way to > implement

Re: [Geany-devel] Indent width keybinding(s) / code

2010-11-01 Thread Nick Treleaven
On Sat, 30 Oct 2010 18:08:34 +0300 Dimitar Zhekov wrote: > > > 3. It would be nice to have the Document -> Indent Width -> # > > > commands bindable to keys. Personally I don't use Ctrl+# for sending > > > selection to custom commands... > > > > I think it would be better to have a single keybin

Re: [Geany-devel] ui_editable_insert_text_callback [small notices]

2010-10-29 Thread Nick Treleaven
On Fri, 29 Oct 2010 19:13:42 +0300 Dimitar Zhekov wrote: > > > 2. ui_editable_insert_text_callback() checks only the first character > > > (assuming typing?), so you can, say, paste 1boza in Go to line. > > > > I can't reproduce this using Go to Line. > > Type 1boza in a document, mark it, Ctrl

Re: [Geany-devel] HTML/XML autoindentation - Re: [PATCH] Some editor/snippets/keybindings enhancements

2010-10-29 Thread Nick Treleaven
On Thu, 28 Oct 2010 23:27:53 +0400 Eugene Arshinov wrote: > > I think we could add a per-filetype indent mode option so it would be > > easy to disable in case someone wanted to. The user could then set > > auto-indent to basic for HTML. > > I assume it's necessary to give users an opportunity t

Re: [Geany-devel] geany-plugins depends on GIO

2010-10-28 Thread Nick Treleaven
On Thu, 28 Oct 2010 19:15:14 +0200 Colomban Wendling wrote: > > Thanks for the patch, works fine :) I just tried the treebrowser for > > the first time, looks great. > > > > Please go ahead and apply the patch. > I'm not the Treebrowser author, so I'm not sure I should do it? But if > everybody'

Re: [Geany-devel] Unhide preferences

2010-10-28 Thread Nick Treleaven
On Tue, 26 Oct 2010 21:46:11 +0300 Dimitar Zhekov wrote: > Hi, > > This is a more complete version of the Various Preferences. The > interface is fixed (but still in interface.c only), deselecting an item > works properly, the [build-menu] settings are added, the code is > improved, and a minima

Re: [Geany-devel] geany-plugins depends on GIO

2010-10-28 Thread Nick Treleaven
On Thu, 28 Oct 2010 18:48:51 +0200 Colomban Wendling wrote: > >> I think this may be due to build/treebrowser.m4 not disabling itself if > >> GIO is not found. > > Hum, right. It seems that if the ACTION-IF-NOT-FOUND of > > PKG_CHECK_MODULES is provided but empty, it still does the default > > ac

Re: [Geany-devel] Geany-plugins not building. Failure in Addons

2010-10-28 Thread Nick Treleaven
On Thu, 28 Oct 2010 18:38:10 +0200 Jon Senior wrote: > > I did just discover that I actually had an older installation of geany > > still on the system (in /usr/bin) and that my update earlier today had > > installed itself to /usr/local/bin. The result of running make is > > attached as make.out

[Geany-devel] PLUGIN_SET_TRANSLATABLE_INFO fixes - Re: Geany-plugins not building. Failure in Addons

2010-10-28 Thread Nick Treleaven
On Thu, 28 Oct 2010 18:18:25 +0200 Colomban Wendling wrote: > > The problem appears to be related to the PLUGIN_SET_TRANSLATABLE_INFO > > macro (That's where the first error crops up). > I'm a bit doubtful about this macro creating the problem, but I've two > modifications I suggest to apply to t

[Geany-devel] geany-plugins depends on GIO

2010-10-28 Thread Nick Treleaven
Hi, I just tried running ./autogen.sh and got this: checking for GIO... configure: error: Package requirements (gio-2.0) were not met: No package 'gio-2.0' found ... make[1]: *** [config.status] Error 1 I think this may be due to build/treebrowser.m4 not disabling itself if GIO is not found. Ni

[Geany-devel] Indent width keybinding(s) / code - Re: small notices

2010-10-28 Thread Nick Treleaven
On Wed, 27 Oct 2010 21:18:07 +0300 Dimitar Zhekov wrote: > 1. handle_integer_setting() uses gboolean *setting. It works, because > gboolean is actually int, but I think that should be gint *. Now fixed. > 2. ui_editable_insert_text_callback() checks only the first character > (assuming typing?)

Re: [Geany-devel] File type icons?

2010-10-27 Thread Nick Treleaven
On Tue, 26 Oct 2010 20:24:29 +0200 Colomban Wendling wrote: > >> This patch adds a new mime_type field to GeanyFiletype and sets it for > >> every built-in filetype. Built-in filetypes for which I didn't find the > >> MIME type defaults to text/plain, but it would perhaps be better to set > >> it

Re: [Geany-devel] File type icons?

2010-10-26 Thread Nick Treleaven
On Tue, 26 Oct 2010 19:56:37 +0200 Colomban Wendling wrote: > > You shouldn't put side effects into an assert statement because asserts > > can be disabled. Fixed. > Right, I didn't thought about that. But I' not sure it's a good idea to > do the call twice, I'd think it's probably better to stor

Re: [Geany-devel] File type icons?

2010-10-26 Thread Nick Treleaven
On Thu, 14 Oct 2010 16:36:43 +0200 Colomban Wendling wrote: > This patch adds a new mime_type field to GeanyFiletype and sets it for > every built-in filetype. Built-in filetypes for which I didn't find the > MIME type defaults to text/plain, but it would perhaps be better to set > it to NULL to

Re: [Geany-devel] File type icons?

2010-10-26 Thread Nick Treleaven
On Fri, 22 Oct 2010 02:30:27 +0200 Colomban Wendling wrote: > 0003-Add-filetype-specific-icon-to-the-document-list-side.patch > * Use filetype's icon in the Document sidebar as the file's icon. >Depends on the previous patch, 0002-Add-filetype-icon.patch. > > 0003-Add-filetype-icon-to-the-e

Re: [Geany-devel] File type icons?

2010-10-26 Thread Nick Treleaven
On Fri, 22 Oct 2010 02:34:23 +0200 Colomban Wendling wrote: > > The combined patch(es) will come separately in a few minutes for less > > confusion. > Here we are: > > > 0001-Add-MIME-type-and-icon-to-GeanyFiletype.patch: > * Combination of 0001-Add-MIME-type-to-GeanyFiletype.patch and >00

Re: [Geany-devel] using ctrl+c in vte

2010-10-26 Thread Nick Treleaven
On Mon, 25 Oct 2010 22:24:16 +0200 Liviu Andronic wrote: > On Mon, Oct 25, 2010 at 9:45 PM, Dominic Hopf wrote: > > have you checked the preferences for VTE? I think the 'Override Geany > > keybindings' option could be what you're searching for. Having this > > checked Ctrl-C works fine for me.

[Geany-devel] HTML/XML autoindentation - Re: [PATCH] Some editor/snippets/keybindings enhancements

2010-10-25 Thread Nick Treleaven
On Fri, 8 Oct 2010 06:03:33 +0400 Eugene Arshinov wrote: > > > The drawback of the third patch is that it's not completed. If user > > > likes to leave HTML tags like "unclosed", she would be > > > disturbed by automatic indentation caused by my patch, so a check > > > box in Preferences is des

Re: [Geany-devel] [PATCH] Ensure convert line endings before save

2010-10-25 Thread Nick Treleaven
On Sat, 16 Oct 2010 10:55:35 +0200 Manuel Bua wrote: > On 07/12/2010 02:46 PM, Nick Treleaven wrote: > > I think we could add it, unless anyone objects. > No objections so far ;) Committed, thanks. I renamed the pref 'Ensure consistent line endings'

Re: [Geany-devel] Unhide preferences

2010-10-22 Thread Nick Treleaven
On Fri, 22 Oct 2010 19:27:07 +0300 Dimitar Zhekov wrote: > > > Can I suggest a Filter entry to filter the > > > displayed entries by name for easier search? :D > > > > Maybe this could be added later. > > They are 20 entries total, and looking at the Keybindings, at least 15 > will fit on the f

[Geany-devel] Scintilla Lua lexers for syntax highlighting

2010-10-22 Thread Nick Treleaven
Hi list, A while ago Lex and I discussed improving custom filetypes, and the most promising thing was using Lua lexers. *This is not a clear idea for adding support yet.* Here follows snippets of the discussion and some new links at the end. On Thu, 23 Sep 2010 13:39:34 +0100 Nick Treleaven

Re: [Geany-devel] Unhide preferences

2010-10-22 Thread Nick Treleaven
On Fri, 22 Oct 2010 02:04:07 +0200 Colomban Wendling wrote: > Can I suggest a Filter entry to filter the > displayed entries by name for easier search? :D Maybe this could be added later. > > Of course the "problem" that is likely to generate the most heat is > > what to call these prefs :-D, t

Re: [Geany-devel] Unhide preferences

2010-10-21 Thread Nick Treleaven
On Thu, 21 Oct 2010 18:58:43 +0300 Dimitar Zhekov wrote: > > I wasn't thinking about visually separating the prefs. Perhaps this > > could be done by having 2 different treeview parent items, rather than > > having to switch tabs (as Lex suggests). That way the user can see all > > hidden prefs o

Re: [Geany-devel] File type icons?

2010-10-21 Thread Nick Treleaven
On Sat, 16 Oct 2010 17:59:28 +0200 Colomban Wendling wrote: > Le 15/10/2010 00:35, Colomban Wendling a écrit : > > Joined 0001-Add-filetype-icon.patch (depends on previous > > 0001-Add-MIME-type-to-GeanyFiletype.patch) that add filetype->icon, a > > 16x16 GdkPixbuf icon that represents the file t

Re: [Geany-devel] Unhide preferences

2010-10-21 Thread Nick Treleaven
On Wed, 20 Oct 2010 12:25:46 +0100 Nick Treleaven wrote: > > > > That'll take some time to write, for example to check that all changes > > > > are applied immediately, but I'm willing to do it, if you think it's a > > > > good idea. T

Re: [Geany-devel] [PATCH] Add support for Erlang and (R5RS) Scheme

2010-10-20 Thread Nick Treleaven
On Wed, 20 Oct 2010 09:13:46 -0400 Taylor Venable wrote: > > We require that Scintilla changes be added to the official project > > first, otherwise things could break when we merge Scintilla. > > > > Also, how different is Scheme to Lisp syntax - maybe the Lisp lexer > > could be shared? Could b

Re: [Geany-devel] [PATCH] Add support for Erlang and (R5RS) Scheme

2010-10-20 Thread Nick Treleaven
On Tue, 19 Oct 2010 21:10:17 -0400 Taylor Venable wrote: > Hello. In response to my own feature requests (2993016, 2993022) I've > written basic support for Erlang and Scheme into Geany. For Scheme, I > hijacked the Lisp lexer and changed a few things, such as the names of the > keyword configura

Re: [Geany-devel] "Ensure new line on file end" inserts new line when file is empty

2010-10-20 Thread Nick Treleaven
On Sat, 16 Oct 2010 22:37:29 +1100 Lex Trotman wrote: > What I'm expressing badly is that if a file ends in a newline you can > consider that there is nothing after that, or you can consider that it > has an empty unterminated line after the newline. Similarly an empty > file has no lines or it h

Re: [Geany-devel] Unhide preferences

2010-10-20 Thread Nick Treleaven
On Tue, 19 Oct 2010 21:00:40 +0300 Dimitar Zhekov wrote: > > > What do you think about creating a firefox-about:config-like interface > > > for the hidden preferences? For example, a "Various" tab in the > > > preferences dialog, with a "name value" list, a check button or a > > > text entry (dep

Re: [Geany-devel] Unhide preferences

2010-10-19 Thread Nick Treleaven
On Tue, 19 Oct 2010 19:01:10 +0300 Dimitar Zhekov wrote: > What do you think about creating a firefox-about:config-like interface > for the hidden preferences? For example, a "Various" tab in the > preferences dialog, with a "name value" list, a check button or a > text entry (depending on the cu

Re: [Geany-devel] project indentation settings saved incorrectly

2010-10-18 Thread Nick Treleaven
On Sun, 17 Oct 2010 19:34:07 +0300 Dimitar Zhekov wrote: > Here, if I read it correctly, first the dialog settings are read > and applied (except for indentation), then the project file is saved, > and last (why?) the indentation settings are read. How about moving > stash_group_update() before o

[Geany-devel] insert line keybindings - Re: [PATCH] Some editor/snippets/keybindings enhancements

2010-10-15 Thread Nick Treleaven
On Fri, 8 Oct 2010 06:03:33 +0400 Eugene Arshinov wrote: > > > The drawback of the first patch is that I doubt it's so useful. I > > > know Vi[m] provides shortcuts for these actions ('o' and 'O' in > > > normal mode), but their necessity is questionable for me. I > > > implemented this to ease

Re: [Geany-devel] update GNU regex - Re: What's the point of compiling geany without regex support?

2010-10-15 Thread Nick Treleaven
On Tue, 12 Oct 2010 14:30:00 +0200 Jiří Techet wrote: > >> Attached you'll find a patch that updates the regex library to the > >> latest version from glibc. This removes the warnings Lex was > >> experiencing on a 64bit machine. I looked at how ctags does it and > >> made the patch in a similar

Re: [Geany-devel] Patch for the lisp highlighter

2010-10-08 Thread Nick Treleaven
On Thu, 7 Oct 2010 19:15:47 +0100 Mário Silva wrote: > i understand but i dunno where to summit the changes to the scintilla > project, and your commit broken the compile cus some constants and some > names are different, im already trying to apply to the group mailing list, > please so it doest

Re: [Geany-devel] snippet keybindings? - Re: [PATCH] Some editor/snippets/keybindings enhancements

2010-10-08 Thread Nick Treleaven
On Fri, 8 Oct 2010 05:41:00 +0400 Eugene Arshinov wrote: > > The change was mainly to make editor_snippets_init() shorter for > > easier understanding. Now system keyfile snippet keybindings are > > supported too. > > > > Thanks for committing and improving the patch. > > These is a little fla

Re: [Geany-devel] Patch for utils.h to work on GTK2.8

2010-10-08 Thread Nick Treleaven
On Fri, 08 Oct 2010 15:06:36 +0200 Colomban Wendling wrote: > > G_GNUC_WARN_UNUSED does not come in until gtk 2.10 so attached just > > defines it to nothing if it isn't defined so utils.h will build on gtk > > 2.8 > > > > Cheers > > Lex > This macro is in GLib, not GTK ;) > And BTW, this is alr

Re: [Geany-devel] [PATCH] Open files in Geany at the same workspace

2010-10-07 Thread Nick Treleaven
On Wed, 29 Sep 2010 18:00:06 +0100 Nick Treleaven wrote: > > > 3) this is the most complicated but also the one that seems to have the > > > less flaws: still add workspace suffix, but when checking if there is a > > > running instance to which send the requ

Re: [Geany-devel] Patch for the lisp highlighter

2010-10-06 Thread Nick Treleaven
On Tue, 5 Oct 2010 19:10:53 +0100 Mário Silva wrote: > hi there again, version is scintilla 221, the changes i did afaik to the lex > was only push some constants to the SciLexer.h as you can see in the patch, > and change the keywords & keywords_kw local variables to a more apropriate > names,

[Geany-devel] update GNU regex - Re: What's the point of compiling geany without regex support?

2010-10-05 Thread Nick Treleaven
On Wed, 25 Aug 2010 21:47:08 +0200 Jiří Techet wrote: > Attached you'll find a patch that updates the regex library to the > latest version from glibc. This removes the warnings Lex was > experiencing on a 64bit machine. I looked at how ctags does it and > made the patch in a similar way. I'm n

Re: [Geany-devel] Patch for the lisp highlighter

2010-10-05 Thread Nick Treleaven
On Mon, 4 Oct 2010 11:43:00 +0100 Mário Silva wrote: > yes thats what i did, i adapted the lex from scintilla and configured the > colors the best i thougt it to be. > ok so here it comes. If you made changes to LexLisp.cxx please submit them to the Scintilla project, as otherwise they will get

Re: [Geany-devel] snippet keybindings? - Re: [PATCH] Some editor/snippets/keybindings enhancements

2010-10-05 Thread Nick Treleaven
On Fri, 1 Oct 2010 16:12:40 +0100 Nick Treleaven wrote: > > Maybe we can incorporate the first patch into Geany? "Power users" > > who need snippet keybindings will be able to specify keybindings > > manually in snippets.conf, just like hidden prefs in geany.c

Re: [Geany-devel] Patch for the lisp highlighter

2010-10-04 Thread Nick Treleaven
Hi, On Mon, 4 Oct 2010 10:30:46 +0100 Mário Silva wrote: > Hi there i made a patch to implement the highlighter to the lisp language, i > would like to know how i can send it for checking and implementing. There's already a Lisp lexer in the Scintilla project - src/LexLisp.cxx. Maybe you would

Re: [Geany-devel] snippet keybindings? - Re: [PATCH] Some editor/snippets/keybindings enhancements

2010-10-01 Thread Nick Treleaven
On Tue, 28 Sep 2010 11:34:10 +0400 Eugene Arshinov wrote: > Maybe we can incorporate the first patch into Geany? "Power users" > who need snippet keybindings will be able to specify keybindings > manually in snippets.conf, just like hidden prefs in geany.conf. This > will keep the implementatio

Re: [Geany-devel] Syntax highlighting for Forth

2010-09-30 Thread Nick Treleaven
On Sun, 26 Sep 2010 14:05:39 +0200 Thomas Huth wrote: > However, there was one thing I was missing: For my work, I often need > to edit Forth files, and Geany did not feature syntax highlighting for > this programming language yet. > > So I've spent some time and added syntax highlighting for Fo

Re: [Geany-devel] [Patch] : On closing the last tab create new untitled document.

2010-09-30 Thread Nick Treleaven
On Fri, 24 Sep 2010 15:35:59 +0300 Liviu Andronic wrote: > On Thu, Sep 23, 2010 at 7:37 PM, Nick Treleaven > wrote: > > * new_document_after_close=true under [geany] in geany.conf. > > > I'm really nitpicking now, but is there a reason that the following > two a

Re: [Geany-devel] [PATCH] Some editor/snippets/keybindings enhancements

2010-09-30 Thread Nick Treleaven
On Sat, 10 Jul 2010 21:48:35 +0400 Eugene Arshinov wrote: > Hi all. > > I attach three patches: > 1. Keybindings to insert new line after/before current ... > 3. Automatically insert additional indentation in XML/HTML files if > previous line ends with an opening tag I finally got round to repl

Re: [Geany-devel] [PATCH] Open files in Geany at the same workspace

2010-09-29 Thread Nick Treleaven
On Wed, 29 Sep 2010 09:52:19 +1000 Erik de Castro Lopo wrote: > > 3) this is the most complicated but also the one that seems to have the > > less flaws: still add workspace suffix, but when checking if there is a > > running instance to which send the requests, ignore that workspace > > informat

[Geany-devel] Improved Stash GUI example online

2010-09-28 Thread Nick Treleaven
Hi, Recently in SVN I improved the Stash GUI example: http://www.geany.org/manual/reference/stash_8h.html#prefs-example Should be clearer now hopefully. Feel free to comment, as always. Regards, Nick ___ Geany-devel mailing list Geany-devel@uvena.de htt

Re: [Geany-devel] r5121 stash question

2010-09-28 Thread Nick Treleaven
On Sun, 26 Sep 2010 14:52:26 +0300 Dimitar Zhekov wrote: > > 2010-08-10 Nick Treleaven > > > > * src/stash.c: > > Fix writing the default value when a key is missing for hidden > > prefs, even if it was overridden when it was originally read. > > In wha

Re: [Geany-devel] [PATCH] Better-looking comments indenting

2010-09-24 Thread Nick Treleaven
On Fri, 24 Sep 2010 00:15:49 +0300 Liviu Andronic wrote: > On Wed, Sep 8, 2010 at 6:25 PM, Nick Treleaven > wrote: > > I've just realized, for the tabs & spaces mode this would be completely > > broken as 8 spaces are compressed into tabs, e.g. when one line start

Re: [Geany-devel] [Patch] : On closing the last tab create new untitled document.

2010-09-24 Thread Nick Treleaven
On Thu, 23 Sep 2010 21:18:11 +0300 Liviu Andronic wrote: > >> ..if a single _untitled_ tab is displayed. This is the way Opera > >> handles it, and that the behaviour that I find ergonomic in this case; > >> it allows to close the last titled document tab without the need to > >> close the app. A

Re: [Geany-devel] [Patch] : On closing the last tab create new untitled document.

2010-09-23 Thread Nick Treleaven
On Wed, 22 Sep 2010 14:43:15 +0300 Liviu Andronic wrote: > On Wed, Sep 22, 2010 at 2:17 PM, Jiří Techet wrote: > > And just to keep the number of people who like/dislike this feature > > balanced, I must say I rather dislike it :-). I find it strange when I > > press the 'x' button on the tab an

Re: [Geany-devel] Errors [PATCH]

2010-09-23 Thread Nick Treleaven
On Thu, 23 Sep 2010 17:57:16 +1000 Erik de Castro Lopo wrote: > Erik de Castro Lopo wrote: > > > I'm not sure of the best way to fix this. > > Attached is one possiblw way to fix this, not sure if its > the best way. Hopefully fixed now in r5254. Thanks for tracking it down, unfortunately I fo

<    1   2   3   4   5   6   7   >