Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Fri, 27 Jul 2012 22:32:26
Commit: 95d767f873729db6a2feadac358a4a5d7a3e564c
https://github.com/geany/geany/commit/95d767f873729db6a2feadac358a4a5d7a3e5…
Log Message:
-----------
Document sci_get_lexer()
This function is part of the plugin API but missed its documentation,
leading to it not appearing in the generated API documentation.
Modified Paths:
--------------
src/sciwrappers.c
Modified: src/sciwrappers.c
4 files changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -523,6 +523,10 @@ gint sci_get_length(ScintillaObject *sci)
}
+/** Gets the currently used lexer
+ * @param sci Scintilla widget.
+ * @returns The lexer ID
+ */
gint sci_get_lexer(ScintillaObject *sci)
{
return (gint) SSM(sci, SCI_GETLEXER, 0, 0);
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Fri, 27 Jul 2012 22:32:26
Commit: 1ce4b1fac516f89dadb639cb773c76b68cfa286b
https://github.com/geany/geany/commit/1ce4b1fac516f89dadb639cb773c76b68cfa2…
Log Message:
-----------
Fix a reference to a file in HACKING
Modified Paths:
--------------
HACKING
Modified: HACKING
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -424,7 +424,7 @@ When adding a lexer, update:
* scintilla/Makefile.am
* scintilla/makefile.win32
* wscript
-* scintilla/KeyWords.cxx - add a LINK_LEXER command *manually*
+* scintilla/src/Catalogue.cxx - add a LINK_LEXER command *manually*
For syntax highlighting, you will need to edit highlighting.c and
highlightingmappings.h and add the following things:
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
Branch: refs/heads/master
Author: Nick Treleaven <nick.treleaven(a)btinternet.com>
Committer: Nick Treleaven <nick.treleaven(a)btinternet.com>
Date: Thu, 26 Jul 2012 15:13:34
Commit: f90bdc5957a827ce044fed6d0a7cd286a7301014
https://github.com/geany/geany/commit/f90bdc5957a827ce044fed6d0a7cd286a7301…
Log Message:
-----------
Only set Find in Files directory once per-document
Use the current document's directory unless the directory field has
already been edited and the current document has not changed.
Otherwise, prepend the current document's directory to the drop-down
history in case it is wanted.
This is useful to avoid losing the edited directory when it is less
likely the user wants to use the current document's directory.
Modified Paths:
--------------
doc/geany.html
doc/geany.txt
src/search.c
Modified: doc/geany.html
12 files changed, 9 insertions(+), 3 deletions(-)
===================================================================
@@ -1704,6 +1704,8 @@ <h2 class="subtitle" id="a-fast-light-gtk-ide">A fast, light, GTK+ IDE</h2>
must be correctly set in Preferences to the path of the system's Grep
utility. GNU Grep is recommended (see note below).</p>
<img alt="./images/find_in_files_dialog.png" src="./images/find_in_files_dialog.png" />
+<p>The <em>Search</em> field is initially set to the current word in the editor
+(depending on <a class="reference internal" href="#search">Search</a> preferences).</p>
<p>The <em>Files</em> setting allows to choose which files are included in the
search, depending on the mode:</p>
<dl class="docutils">
@@ -1719,6 +1721,10 @@ <h2 class="subtitle" id="a-fast-light-gtk-ide">A fast, light, GTK+ IDE</h2>
use: <tt class="docutils literal">*.c *.h</tt>.
Note that an empty pattern list searches in all files rather
than none.</p>
+<p>The <em>Directory</em> field is initially set to the current document's directory,
+unless this field has already been edited and the current document has
+not changed. Otherwise, the current document's directory is prepended to
+the drop-down history. This can be disabled - see <a class="reference internal" href="#search">Search</a> preferences.</p>
<p>The <em>Encoding</em> field can be used to define the encoding of the files
to be searched. The entered search text is converted to the chosen encoding
and the search results are converted back to UTF-8.</p>
@@ -2218,9 +2224,9 @@ <h2 class="subtitle" id="a-fast-light-gtk-ide">A fast, light, GTK+ IDE</h2>
there is no selection. When this option is disabled, the search term last used in the
appropriate Find dialog is used.</dd>
<dt>Use the current file's directory for Find in Files</dt>
-<dd>When opening the <a class="reference internal" href="#find-in-files">Find in Files</a> dialog, set the directory to search to the directory of the current
+<dd>When opening the Find in Files dialog, set the directory to search to the directory of the current
active file. When this option is disabled, the directory of the last use of the Find in Files
-dialog is used.</dd>
+dialog is used. See <a class="reference internal" href="#find-in-files">Find in Files</a> for details.</dd>
</dl>
</div>
<div class="section" id="projects">
@@ -6797,7 +6803,7 @@ <h2 class="subtitle" id="a-fast-light-gtk-ide">A fast, light, GTK+ IDE</h2>
<div class="footer">
<hr class="footer" />
<a class="reference external" href="geany.txt">View document source</a>.
-Generated on: 2012-07-26 14:29 UTC.
+Generated on: 2012-07-26 14:56 UTC.
Generated by <a class="reference external" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
</div>
Modified: doc/geany.txt
12 files changed, 10 insertions(+), 2 deletions(-)
===================================================================
@@ -1277,6 +1277,9 @@ utility. GNU Grep is recommended (see note below).
.. image:: ./images/find_in_files_dialog.png
+The *Search* field is initially set to the current word in the editor
+(depending on `Search`_ preferences).
+
The *Files* setting allows to choose which files are included in the
search, depending on the mode:
@@ -1293,6 +1296,11 @@ use: ``*.c *.h``.
Note that an empty pattern list searches in all files rather
than none.
+The *Directory* field is initially set to the current document's directory,
+unless this field has already been edited and the current document has
+not changed. Otherwise, the current document's directory is prepended to
+the drop-down history. This can be disabled - see `Search`_ preferences.
+
The *Encoding* field can be used to define the encoding of the files
to be searched. The entered search text is converted to the chosen encoding
and the search results are converted back to UTF-8.
@@ -1829,9 +1837,9 @@ Use the current word under the cursor for Find dialogs
appropriate Find dialog is used.
Use the current file's directory for Find in Files
- When opening the `Find in Files`_ dialog, set the directory to search to the directory of the current
+ When opening the Find in Files dialog, set the directory to search to the directory of the current
active file. When this option is disabled, the directory of the last use of the Find in Files
- dialog is used.
+ dialog is used. See `Find in Files`_ for details.
Projects
````````
Modified: src/search.c
21 files changed, 18 insertions(+), 3 deletions(-)
===================================================================
@@ -1073,12 +1073,27 @@ void search_show_find_in_files_dialog(const gchar *dir)
cur_dir = g_strdup(dir); /* custom directory argument passed */
else
{
- gboolean entry_empty = ! NZV(gtk_entry_get_text(GTK_ENTRY(entry)));
-
- if (search_prefs.use_current_file_dir || entry_empty)
+ if (search_prefs.use_current_file_dir)
{
+ static gchar *last_cur_dir = NULL;
+ static GeanyDocument *last_doc = NULL;
+
+ /* Only set the directory entry once for the current document */
cur_dir = utils_get_current_file_dir_utf8();
+ if (doc == last_doc && cur_dir && utils_str_equal(cur_dir, last_cur_dir))
+ {
+ /* in case the user now wants the current directory, add it to history */
+ ui_combo_box_add_to_history(
+ GTK_COMBO_BOX_ENTRY(fif_dlg.dir_combo), cur_dir, 0);
+ SETPTR(cur_dir, NULL);
+ }
+ else
+ SETPTR(last_cur_dir, g_strdup(cur_dir));
+ last_doc = doc;
+ }
+ if (!cur_dir && ! NZV(gtk_entry_get_text(GTK_ENTRY(entry))))
+ {
/* use default_open_path if no directory could be determined
* (e.g. when no files are open) */
if (!cur_dir)
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
Branch: refs/heads/master
Author: Nick Treleaven <nick.treleaven(a)btinternet.com>
Committer: Nick Treleaven <nick.treleaven(a)btinternet.com>
Date: Thu, 26 Jul 2012 14:34:45
Commit: 98452edcc9e2ee542ba722f816fc6f0deeabc6f7
https://github.com/geany/geany/commit/98452edcc9e2ee542ba722f816fc6f0deeabc…
Log Message:
-----------
Update manual for search pref changes; add some links
Modified Paths:
--------------
doc/geany.html
doc/geany.txt
Modified: doc/geany.html
14 files changed, 8 insertions(+), 6 deletions(-)
===================================================================
@@ -756,7 +756,7 @@ <h2 class="subtitle" id="a-fast-light-gtk-ide">A fast, light, GTK+ IDE</h2>
<li>An optional message window which can show the following tabs:<ul>
<li>Status - A list of status messages.</li>
<li>Compiler - The output of compiling or building programs.</li>
-<li>Messages - Results of 'Find Usage', 'Find Usage' 'Find in Files' and other actions</li>
+<li>Messages - Results of 'Find Usage', 'Find in Files' and other actions</li>
<li>Scribble - A text scratchpad for any use.</li>
<li>Terminal - An optional terminal window.</li>
</ul>
@@ -1585,6 +1585,7 @@ <h2 class="subtitle" id="a-fast-light-gtk-ide">A fast, light, GTK+ IDE</h2>
<li>Go to tag declaration</li>
<li>Go to line</li>
</ul>
+<p>See also <a class="reference internal" href="#search">Search</a> preferences.</p>
<div class="section" id="toolbar-entries">
<h3><a class="toc-backref" href="#id59">Toolbar entries</a></h3>
<p>There are also two toolbar entries:</p>
@@ -2208,15 +2209,16 @@ <h2 class="subtitle" id="a-fast-light-gtk-ide">A fast, light, GTK+ IDE</h2>
<div class="section" id="search">
<h4><a class="toc-backref" href="#id94">Search</a></h4>
<dl class="docutils">
-<dt>Always wrap search and hide the Find dialog</dt>
-<dd>Always wrap search around the document and hide the Find dialog after clicking
-Find Next/Previous.</dd>
+<dt>Always wrap search</dt>
+<dd>Always wrap search around the document when finding a match.</dd>
+<dt>Hide the Find dialog</dt>
+<dd>Hide the <a class="reference internal" href="#find">Find</a> dialog after clicking Find Next/Previous.</dd>
<dt>Use the current word under the cursor for Find dialogs</dt>
<dd>Use current word under the cursor when opening the Find, Find in Files or Replace dialog and
there is no selection. When this option is disabled, the search term last used in the
appropriate Find dialog is used.</dd>
<dt>Use the current file's directory for Find in Files</dt>
-<dd>When opening the Find in Files dialog, set the directory to search to the directory of the current
+<dd>When opening the <a class="reference internal" href="#find-in-files">Find in Files</a> dialog, set the directory to search to the directory of the current
active file. When this option is disabled, the directory of the last use of the Find in Files
dialog is used.</dd>
</dl>
@@ -6795,7 +6797,7 @@ <h2 class="subtitle" id="a-fast-light-gtk-ide">A fast, light, GTK+ IDE</h2>
<div class="footer">
<hr class="footer" />
<a class="reference external" href="geany.txt">View document source</a>.
-Generated on: 2012-06-25 13:30 UTC.
+Generated on: 2012-07-26 14:29 UTC.
Generated by <a class="reference external" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
</div>
Modified: doc/geany.txt
14 files changed, 9 insertions(+), 5 deletions(-)
===================================================================
@@ -293,7 +293,7 @@ The workspace has the following parts:
* Status - A list of status messages.
* Compiler - The output of compiling or building programs.
- * Messages - Results of 'Find Usage', 'Find Usage' 'Find in Files' and other actions
+ * Messages - Results of 'Find Usage', 'Find in Files' and other actions
* Scribble - A text scratchpad for any use.
* Terminal - An optional terminal window.
@@ -1153,6 +1153,8 @@ and the editor window's popup menu:
* Go to tag declaration
* Go to line
+See also `Search`_ preferences.
+
Toolbar entries
^^^^^^^^^^^^^^^
There are also two toolbar entries:
@@ -1815,9 +1817,11 @@ Auto-focus widgets (focus follows mouse)
Search
``````
-Always wrap search and hide the Find dialog
- Always wrap search around the document and hide the Find dialog after clicking
- Find Next/Previous.
+Always wrap search
+ Always wrap search around the document when finding a match.
+
+Hide the Find dialog
+ Hide the `Find`_ dialog after clicking Find Next/Previous.
Use the current word under the cursor for Find dialogs
Use current word under the cursor when opening the Find, Find in Files or Replace dialog and
@@ -1825,7 +1829,7 @@ Use the current word under the cursor for Find dialogs
appropriate Find dialog is used.
Use the current file's directory for Find in Files
- When opening the Find in Files dialog, set the directory to search to the directory of the current
+ When opening the `Find in Files`_ dialog, set the directory to search to the directory of the current
active file. When this option is disabled, the directory of the last use of the Find in Files
dialog is used.
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
Branch: refs/heads/document-messages
Author: Nick Treleaven <nick.treleaven(a)btinternet.com>
Committer: Nick Treleaven <nick.treleaven(a)btinternet.com>
Date: Mon, 09 Jul 2012 12:31:04
Commit: 8d26450f07cac40812a04fe2adfd29fa54f25059
https://github.com/geany/geany/commit/8d26450f07cac40812a04fe2adfd29fa54f25…
Log Message:
-----------
Add status bar warning if Windows spawn timed out
Modified Paths:
--------------
src/win32.c
Modified: src/win32.c
9 files changed, 7 insertions(+), 2 deletions(-)
===================================================================
@@ -1093,10 +1093,15 @@ static gboolean CreateChildProcess(geany_win32_spawn *gw_spawn, TCHAR *szCmdline
else
{
gint i;
+ gsize ms = 30*1000;
- for (i = 0; i < 2 && WaitForSingleObject(piProcInfo.hProcess, 30*1000) == WAIT_TIMEOUT; i++)
+ /* FIXME: this seems to timeout when there are many lines
+ * to read - maybe because the child's pipe is full */
+ for (i = 0; i < 2 &&
+ WaitForSingleObject(piProcInfo.hProcess, ms) == WAIT_TIMEOUT; i++)
{
- geany_debug("CreateChildProcess: CreateProcess failed");
+ ui_set_statusbar(FALSE, _("Process timed out after %.02f s!"), ms / 1000.0F);
+ geany_debug("CreateChildProcess: timed out");
TerminateProcess(piProcInfo.hProcess, WAIT_TIMEOUT); /* NOTE: This will not kill grandkids. */
}
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
Branch: refs/heads/document-messages
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Sun, 08 Jul 2012 23:07:52
Commit: deb5f3542b5b618e56ca9d823f40df062188eb6a
https://github.com/geany/geany/commit/deb5f3542b5b618e56ca9d823f40df062188e…
Log Message:
-----------
Bump API version to reflect Scintilla's SCI_{GET,SET}USEPALETTE removal
Scintilla deprecated SCI_GETUSEPALETTE and SCI_SETUSEPALETTE messages,
and since we don't build with deprecated API support they aren't
available anymore.
Modified Paths:
--------------
src/plugindata.h
Modified: src/plugindata.h
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -55,7 +55,7 @@
* @warning You should not test for values below 200 as previously
* @c GEANY_API_VERSION was defined as an enum value, not a macro.
*/
-#define GEANY_API_VERSION 215
+#define GEANY_API_VERSION 216
/** The Application Binary Interface (ABI) version, incremented whenever
* existing fields in the plugin data types have to be changed or reordered.
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).