5348 Commits

Author SHA1 Message Date
Colomban Wendling
6ff0986cde Update ChangeLog
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5568 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 23:30:54 +00:00
Colomban Wendling
6f7a06780f Improve performances of symbol list updating
Rather than walking the whole tree for each tag to find a possibly
corresponding row, use a hash table as cache.
This is a very significant improvement on large files with many tags,
reducing for example to about 170ms an update that took more than 18s
before.

Also fix merging of tags with same name and scope (probably unlikely to
exist in real-world files, but the tagmanager extract them correctly
and they used to display correctly too).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5567 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:56:55 +00:00
Colomban Wendling
b82c07b4be Fix some indentation style errors
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5566 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:55:34 +00:00
Colomban Wendling
56d9dc4565 Fix some debugging functions in C tag parser
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5565 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:55:00 +00:00
Colomban Wendling
d41435537f Plug a memory leak in the C tag parser
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5564 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:54:33 +00:00
Colomban Wendling
a2d04123bb Fix suffix of anonymous symbols (structs, enums, ...) in the C parser
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5563 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:53:58 +00:00
Colomban Wendling
57d00f48d0 Update the symbol list rather than clearing and re-building it
The main advantages of not clearing and rebuilding the whole list is
that it doesn't loose the folding and selection (as far as the selected
row(s) still exist after the update, of course), and it reduces
flickering upon update.

The current implementation works in 3-steps:
1) mark all rows as invalid;
2) insert/update the rows, according to the new tag list, marking them
   as valid;
3) remove all rows that are still invalid.
This walks (rows) the first time, (tags*rows) the second and (rows) the
third. This also uses an extra column to store the row's validity.

A (probably) better implementation would be to:
1) walk the current rows, updating them if necessary, or removing them;
2) add the remaining tags that weren't there before.
This is probably faster in theory (and probably also in practice), but
it needs to refactor a lot the code to easily update *or* create a row,
what the current code does not provide.
Basically this is would be a two-pass update, walking (rows*tags) in
the first pass, and only the remaining non-added tags in the second.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5562 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:53:13 +00:00
Colomban Wendling
a1a13e18e2 Don't remove and add the symbols tree view if we re-add the same one
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5561 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:51:32 +00:00
Colomban Wendling
f120554364 Provide a GType for TMTag and use it
It is a boxed type but uses reference counting behind the scene. This
allow for example the tag store to make sure the tags it holds are
always valid.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5560 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:50:04 +00:00
Colomban Wendling
b99d06d47c Make TMTag reference-counted
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5559 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:48:25 +00:00
Colomban Wendling
88aa81b6a8 Improve implementation of hide_empty_rows() to do all in one shot
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5558 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:47:13 +00:00
Colomban Wendling
67cd5dbd13 Add possibility to update symbol list in IDLE time
Enabled by default, using a minimal delay of 250ms between two updates.
Also add a preference to configure this in Geany's UI, under
Preferences -> Editor -> Completion.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5557 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:46:32 +00:00
Colomban Wendling
676f8e6d76 Enable in-memory tag parsing
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5556 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:44:22 +00:00
Colomban Wendling
569670b771 Move most of TagManager's I/O to MIO
Moved the parsers to MIO, which allows both in-memory and file parsing.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5555 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:40:50 +00:00
Enrico Tröger
c5089e5ab4 Add Colomban to the COMMITTERS list
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5554 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-02 22:58:02 +00:00
Colomban Wendling
77e400d1aa Add missing documentation to some plugin API functions
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5553 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-02 21:08:51 +00:00
Enrico Tröger
84da9b961b Welcome Colomban Wendling, a new Geany developer.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5552 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-02 20:16:00 +00:00
Enrico Tröger
4d2679ad2d Fix wrong warning on empty backup directory setting if 'Backup Copy' is not enabled at all.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5551 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-02 20:00:17 +00:00
Nick Treleaven
4998d40f46 Fix segfault when inserting e.g. fileheader template when the
template file is empty (#3070913, thanks to lphilpot).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5544 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-02-22 17:15:29 +00:00
Enrico Tröger
09b734f921 Add support for multiple file filters, separated by semicolon (based on a patch by Grigory Javadyan, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5543 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-02-21 19:09:34 +00:00
Nick Treleaven
d128ffa316 Add bug nos.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5542 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-02-07 17:23:41 +00:00
Nick Treleaven
731253b122 Fix detecting Matlab and Txt2Tags extensions by default.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5541 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-02-07 17:19:23 +00:00
Frank Lanitz
b74e46587d Add a workaround for #3066566 to prevent Geany from crashing during loading of a LaTeX-file containing linebreaks inside headings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5540 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-02-06 18:25:10 +00:00
Enrico Tröger
bf4067f910 Rename utils_is_file_writeable() into utils_is_file_writable().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5539 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-02-06 16:47:18 +00:00
Enrico Tröger
426dbff4b6 Add a warning if writing the project file fails on close.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5538 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-02-06 16:36:04 +00:00
Enrico Tröger
277e2c2cdf Improve error checking when trying to write project files (patch by Colomban Wendling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5537 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-02-06 16:32:49 +00:00
Enrico Tröger
871005c7d5 Replace '+' by '-' in the Scintilla Keybindings section to be consistent with the other mentioned keybindings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5536 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-02-06 16:12:49 +00:00
Enrico Tröger
ef47b8aa15 Fix memory leaks (reported by an anonymous IRC user).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5535 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-02-06 16:03:27 +00:00
Enrico Tröger
a266abca70 fix build (typo)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5534 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-30 16:22:09 +00:00
Enrico Tröger
ec408fa4b9 Add filetype Cobol (based on a patch by Seth Keiper).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5533 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-30 15:03:51 +00:00
Enrico Tröger
e7e9410c5c Ensure the editor widget has the focus when the editor menu is called.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5532 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-30 13:48:21 +00:00
Frank Lanitz
d7d3ef2301 Update of Vietnamese translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5531 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-27 16:30:19 +00:00
Enrico Tröger
67d739f9b0 Add '.pyc' to the list of hidden object files (patch by Filip Gruszczyński, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5530 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-20 19:51:31 +00:00
Enrico Tröger
044791794f Post-release version bump.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5529 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-19 19:47:35 +00:00
Enrico Tröger
6ac2623208 Update copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5528 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-19 19:39:09 +00:00
Enrico Tröger
ed5cd1155b add note about doc/geany.1.in
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5527 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-19 19:19:06 +00:00
Enrico Tröger
f3b425fd64 Add and use secondary keywords for filetype JavaScript, update and sanitize JavaScript keyword lists (patch by Jason Oster, thank you).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5526 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-18 19:29:15 +00:00
Frank Lanitz
917f46526c Update of Brasilian Portuguese translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5525 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-11 21:49:43 +00:00
Frank Lanitz
c05ac6f39b Added Rafael Peregrino da Silva to list of contributors for Brazilian Portuguese (pt_BR) translation.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5524 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-11 21:49:23 +00:00
Frank Lanitz
44ab2ac4d0 Update of Brasilian Portuguese translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5523 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-10 22:50:15 +00:00
Nick Treleaven
6800b58048 Merge unstable branch:
- src/utils.c:
Fix detecting non-lowercase self-closing tags e.g. <BR> (#2226117).
- src/notebook.c:
Add 'Open in New Window' command in the notebook tab menu (based on
patch by Matthew Brush, thanks - #3118059).
- data/filetypes.cpp, data/filetypes.vala, data/filetypes.glsl,
data/filetypes.cs, data/filetypes.c:
Disable preprocessor #define tracking for the CPP lexer
(enabled by default in Scintilla).
- scintilla/*, wscript:
Update Scintilla to version 2.22.
Use Scintilla's directory structure mostly and only remove
unused lexers.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5521 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-10 17:21:48 +00:00
Nick Treleaven
43dc30a5d1 Merge trunk to r5519.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5520 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-10 13:58:12 +00:00
Nick Treleaven
c8cd1a0457 Thanks to Matthew Brush.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5519 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-10 13:39:47 +00:00
Nick Treleaven
4d4bf2f347 Add Save As toolbar button option (patch by Matthew Brush, thanks;
#3153490).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5518 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-10 13:35:29 +00:00
Nick Treleaven
8bcd27a15c no need to update Manual wiki page now.
update current/hacking.html.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5517 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-06 16:59:48 +00:00
Frank Lanitz
17f2b2e37c Remove duplicated entry on updated i18n files
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5516 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-06 11:30:12 +00:00
Nick Treleaven
460b07d00b Tag 0.20 release.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/tags/Geany-0_20@5515 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-05 18:03:44 +00:00
Nick Treleaven
ea94cb3aad Set release date for 0.20.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5514 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-05 17:07:55 +00:00
Nick Treleaven
2514d59e21 Minor edits.
Mention post-release trunk procedure.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5513 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-05 16:27:29 +00:00
Nick Treleaven
b64501ad22 Remove 'thanks to' for readability.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5512 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-04 18:46:47 +00:00