Rename hidden pref auto_complete_whilst_editing to complete_snippets_whilst_editing.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2269 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2008-02-21 15:51:50 +00:00
parent e298126ee7
commit 22d96653da
7 changed files with 48 additions and 36 deletions

View File

@ -1,3 +1,11 @@
2008-02-21 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* doc/geany.html, doc/geany.txt, src/editor.c, src/editor.h,
src/keyfile.csrc/plugindata.h:
Rename hidden pref auto_complete_whilst_editing to
complete_snippets_whilst_editing.
2008-02-20 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* plugins/*, src/*, tagmanager/*:

View File

@ -6,7 +6,7 @@
<meta name="generator" content="Docutils 0.4.1: http://docutils.sourceforge.net/" />
<title>Geany</title>
<meta name="authors" content="Enrico Tröger Nick Treleaven Frank Lanitz" />
<meta name="date" content="2008-02-16" />
<meta name="date" content="2008-02-18" />
<style type="text/css">
/*
@ -133,7 +133,7 @@ dt {
<br />Nick Treleaven
<br />Frank Lanitz</td></tr>
<tr><th class="docinfo-name">Date:</th>
<td>2008-02-16</td></tr>
<td>2008-02-18</td></tr>
<tr><th class="docinfo-name">Version:</th>
<td>0.14</td></tr>
</tbody>
@ -2851,9 +2851,9 @@ restarting Geany. Search for the key name, then edit the value. Example:</p>
configuration file.</p>
<table border="1" class="docutils">
<colgroup>
<col width="33%" />
<col width="48%" />
<col width="20%" />
<col width="34%" />
<col width="46%" />
<col width="19%" />
</colgroup>
<thead valign="bottom">
<tr><th class="head">Key</th>
@ -2877,8 +2877,8 @@ scrollbars are hidden completely.</td>
<td>true</td>
</tr>
<tr><td>use_tab_to_indent</td>
<td>Whether pressing tab when a line is selected
will indent the line.</td>
<td>Whether pressing tab when a line is
selected will indent the line.</td>
<td>true</td>
</tr>
<tr><td>use_gtk_word_boundaries</td>
@ -2888,9 +2888,11 @@ commands (see <a class="reference" href="#scintilla-keyboard-commands">Scintilla
commands</a>).</td>
<td>true</td>
</tr>
<tr><td>auto_complete_whilst_editing</td>
<td>Whether to allow autocompletion when editing
an existing line.</td>
<tr><td>complete_snippets_whilst_editing</td>
<td>Whether to allow completion of snippets
when editing an existing line (i.e. there
is some text after the current cursor
position on the line).</td>
<td>false</td>
</tr>
<tr><td>scroll_stop_at_last_line</td>
@ -3426,7 +3428,7 @@ USE OR PERFORMANCE OF THIS SOFTWARE.</p>
<div class="footer">
<hr class="footer" />
<a class="reference" href="geany.txt">View document source</a>.
Generated on: 2008-02-18 19:50 UTC.
Generated on: 2008-02-21 15:39 UTC.
Generated by <a class="reference" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
</div>

View File

@ -2521,28 +2521,30 @@ restarting Geany. Search for the key name, then edit the value. Example:
The table below show the key names of hidden preferences in the
configuration file.
============================== ============================================ ==================
Key Description Default
============================== ============================================ ==================
================================ =========================================== ==================
Key Description Default
================================ =========================================== ==================
**[editor]**
brace_match_ltgt Whether to highlight <, > angle brackets. false
show_editor_scrollbars Whether to display scrollbars. If set to true
false, the horizontal and vertical
scrollbars are hidden completely.
use_tab_to_indent Whether pressing tab when a line is selected true
will indent the line.
use_gtk_word_boundaries Whether to look for the end of a word when true
using word-boundary related Scintilla
commands (see `Scintilla keyboard
commands`_).
auto_complete_whilst_editing Whether to allow autocompletion when editing false
an existing line.
scroll_stop_at_last_line Disable scrolling past end of document false
brace_match_ltgt Whether to highlight <, > angle brackets. false
show_editor_scrollbars Whether to display scrollbars. If set to true
false, the horizontal and vertical
scrollbars are hidden completely.
use_tab_to_indent Whether pressing tab when a line is true
selected will indent the line.
use_gtk_word_boundaries Whether to look for the end of a word when true
using word-boundary related Scintilla
commands (see `Scintilla keyboard
commands`_).
complete_snippets_whilst_editing Whether to allow completion of snippets false
when editing an existing line (i.e. there
is some text after the current cursor
position on the line).
scroll_stop_at_last_line Disable scrolling past end of document false
**[interface]**
show_symbol_list_expanders Whether to show or hide the small expander true
icons on the symbol list treeview (only
available with GTK 2.12 or above).
============================== ============================================ ==================
show_symbol_list_expanders Whether to show or hide the small expander true
icons on the symbol list treeview (only
available with GTK 2.12 or above).
================================ =========================================== ==================
Compile-time options

View File

@ -1288,7 +1288,7 @@ gboolean editor_complete_snippet(gint idx, gint pos)
sci = doc_list[idx].sci;
// return if we are editing an existing line (chars on right of cursor)
if (! editor_prefs.auto_complete_whilst_editing && ! at_eol(sci, pos))
if (! editor_prefs.complete_snippets_whilst_editing && ! at_eol(sci, pos))
return FALSE;
lexer = SSM(sci, SCI_GETLEXER, 0, 0);

View File

@ -76,7 +76,7 @@ typedef struct EditorPrefs
GHashTable *snippets;
gboolean brace_match_ltgt; // whether to highlight < and > chars (hidden pref)
gboolean use_gtk_word_boundaries; // hidden pref
gboolean auto_complete_whilst_editing; // hidden pref
gboolean complete_snippets_whilst_editing; // hidden pref
gboolean detect_tab_mode;
} EditorPrefs;

View File

@ -370,7 +370,7 @@ static void save_hidden_prefs(GKeyFile *config)
write_hidden_pref_boolean(config, PACKAGE, "use_tab_to_indent", editor_prefs.use_tab_to_indent);
write_hidden_pref_boolean(config, PACKAGE, "brace_match_ltgt", editor_prefs.brace_match_ltgt);
write_hidden_pref_boolean(config, PACKAGE, "use_gtk_word_boundaries", editor_prefs.use_gtk_word_boundaries);
write_hidden_pref_boolean(config, PACKAGE, "auto_complete_whilst_editing", editor_prefs.auto_complete_whilst_editing);
write_hidden_pref_boolean(config, PACKAGE, "complete_snippets_whilst_editing", editor_prefs.complete_snippets_whilst_editing);
write_hidden_pref_boolean(config, PACKAGE, "scroll_stop_at_last_line", editor_prefs.scroll_stop_at_last_line);
#if GTK_CHECK_VERSION(2, 12, 0)
write_hidden_pref_boolean(config, PACKAGE, "show_symbol_list_expanders", prefs.show_symbol_list_expanders);
@ -528,7 +528,7 @@ static void load_dialog_prefs(GKeyFile *config)
editor_prefs.smart_home_key = utils_get_setting_boolean(config, PACKAGE, "pref_editor_smart_home_key", TRUE);
editor_prefs.newline_strip = utils_get_setting_boolean(config, PACKAGE, "pref_editor_newline_strip", FALSE);
editor_prefs.use_gtk_word_boundaries = utils_get_setting_boolean(config, PACKAGE, "use_gtk_word_boundaries", TRUE);
editor_prefs.auto_complete_whilst_editing = utils_get_setting_boolean(config, PACKAGE, "auto_complete_whilst_editing", FALSE);
editor_prefs.complete_snippets_whilst_editing = utils_get_setting_boolean(config, PACKAGE, "complete_snippets_whilst_editing", FALSE);
editor_prefs.scroll_stop_at_last_line = utils_get_setting_boolean(config, PACKAGE, "scroll_stop_at_last_line", FALSE);
// Files

View File

@ -36,7 +36,7 @@
/* The API version should be incremented whenever any plugin data types below are
* modified or appended to. */
static const gint api_version = 43;
static const gint api_version = 44;
/* The ABI version should be incremented whenever existing fields in the plugin
* data types below have to be changed or reordered. It should stay the same if fields