Branch: refs/heads/master
Author: Jiří Techet <techet(a)gmail.com>
Committer: Jiří Techet <techet(a)gmail.com>
Date: Thu, 12 Feb 2015 23:37:21 UTC
Commit: e613d931878a98118f39c8f2f92fe4ec23508c4c
https://github.com/geany/geany/commit/e613d931878a98118f39c8f2f92fe4ec23508…
Log Message:
-----------
Revert some OS X keybinding changes for VTE
While all normal keybindings use the Command key instead of
control key on OS X, all the command-line applications and
terminal emulators use the Ctrl key like on Linux. This includes
Ctrl+C (SIGINT) and Ctrl+D (EOF) for which there is some
special handling in the VTE support in Geany and which should
use GDK_CONTROL_MASK instead of GEANY_PRIMARY_MOD_MASK.
Modified Paths:
--------------
src/vte.c
Modified: src/vte.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -329,7 +329,7 @@ void vte_close(void)
static gboolean vte_keyrelease_cb(GtkWidget *widget, GdkEventKey *event, gpointer data)
{
if (ui_is_keyval_enter_or_return(event->keyval) ||
- ((event->keyval == GDK_c) && (event->state & GEANY_PRIMARY_MOD_MASK)))
+ ((event->keyval == GDK_c) && (event->state & GDK_CONTROL_MASK)))
{
/* assume any text on the prompt has been executed when pressing Enter/Return */
clean = TRUE;
@@ -350,7 +350,7 @@ static gboolean vte_keypress_cb(GtkWidget *widget, GdkEventKey *event, gpointer
event->keyval == GDK_d ||
event->keyval == GDK_C ||
event->keyval == GDK_D) &&
- event->state & GEANY_PRIMARY_MOD_MASK &&
+ event->state & GDK_CONTROL_MASK &&
! (event->state & GDK_SHIFT_MASK) && ! (event->state & GDK_MOD1_MASK))
{
vte_restart(widget);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Markus Heidelberg <markus.heidelberg(a)web.de>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Wed, 11 Feb 2015 17:28:59 UTC
Commit: be2b280377b0479db749cfcf573ff7b35d70693b
https://github.com/geany/geany/commit/be2b280377b0479db749cfcf573ff7b35d706…
Log Message:
-----------
python: do not ignore the character after a skipped string
Regression for the triple start string issue has been introduced in SVN
revision 669 (fishman git a314e11158307db84c0dadb758846b2302fe69cd) on
2008-06-11. In ctags 5.7 it did work, in 5.8 not anymore.
See also http://sourceforge.net/p/ctags/bugs/229/ for the original bug,
which led to the old fix.
The other issue with normal strings in skipEverything() is even older.
Modified Paths:
--------------
tagmanager/ctags/python.c
tests/ctags/Makefile.am
tests/ctags/py-skipped-string.py
tests/ctags/py-skipped-string.py.tags
Modified: tagmanager/ctags/python.c
3 lines changed, 3 insertions(+), 0 deletions(-)
===================================================================
@@ -266,6 +266,8 @@ static const char *skipEverything (const char *cp)
}
if (isIdentifierFirstCharacter ((int) *cp))
return cp;
+ if (match)
+ cp--; /* avoid jumping over the character after a skipped string */
}
return cp;
}
@@ -536,6 +538,7 @@ static char const *find_triple_start(char const *string, char const **which)
}
cp = skipString(cp);
if (!*cp) break;
+ cp--; /* avoid jumping over the character after a skipped string */
}
}
return NULL;
Modified: tests/ctags/Makefile.am
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -228,6 +228,7 @@ test_sources = \
prototype.h \
pure_elem.f95 \
py_constructor_arglist.py \
+ py-skipped-string.py \
qualified_types.f90 \
random.sql \
readlob.sql \
Modified: tests/ctags/py-skipped-string.py
30 lines changed, 30 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,30 @@
+# triple start string immediately after a normal string not detected
+
+def f1():
+ ''"""
+ The string above was not detected as triple start string,
+ but the one below instead.
+ """
+ print "f1"
+
+def f2():
+ ''"""
+ The string above was then detected as end string,
+ and the one below as start string again.
+ """
+ print "f2"
+
+def f3():
+ """
+ The string below is prepared so that ctags with the bug does not start a
+ new triple string. For a clean precondition for the next test.
+ ''"""
+ print "f3"
+
+# normal string immediately after a normal string not detected
+
+''" import os\
+"
+
+""' def fX():\
+'
Modified: tests/ctags/py-skipped-string.py.tags
4 lines changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,4 @@
+# format=tagmanager
+f1�16�()�0
+f2�16�()�0
+f3�16�()�0
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Jiří Techet <techet(a)gmail.com>
Committer: Jiří Techet <techet(a)gmail.com>
Date: Tue, 20 Jan 2015 18:33:06 UTC
Commit: 508216b7b47fba88c35c3b4af25a4a1e245f222d
https://github.com/geany/geany/commit/508216b7b47fba88c35c3b4af25a4a1e245f2…
Log Message:
-----------
Use the open command to open a directory in Finder on OS X
Modified Paths:
--------------
plugins/filebrowser.c
Modified: plugins/filebrowser.c
2 lines changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -35,6 +35,8 @@
# include <windows.h>
# define OPEN_CMD "explorer \"%d\""
+#elif defined(__APPLE__)
+# define OPEN_CMD "open \"%d\""
#else
# define OPEN_CMD "nautilus \"%d\""
#endif
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Jiří Techet <techet(a)gmail.com>
Committer: Jiří Techet <techet(a)gmail.com>
Date: Tue, 20 Jan 2015 18:33:06 UTC
Commit: 47a5b9fc5fdbd5060671413565f354247f678f75
https://github.com/geany/geany/commit/47a5b9fc5fdbd5060671413565f354247f678…
Log Message:
-----------
Use better default fonts on OS X
Fonts are rendered much smaller on OS X so use bigger sizes
by default. Also, by default they use the Light style which is
extremely thin - use Medium instead. Finally, use better monospace
font than the default Courier (Menlo is derived from Dejavu Sans
Mono and is used by XCode and other editors).
Modified Paths:
--------------
src/keyfile.c
Modified: src/keyfile.c
9 lines changed, 6 insertions(+), 3 deletions(-)
===================================================================
@@ -81,15 +81,18 @@
#endif
#ifdef __APPLE__
#define GEANY_DEFAULT_TOOLS_BROWSER "open -a safari"
+#define GEANY_DEFAULT_FONT_SYMBOL_LIST "Helvetica Medium 12"
+#define GEANY_DEFAULT_FONT_MSG_WINDOW "Helvetica Medium 12"
+#define GEANY_DEFAULT_FONT_EDITOR "Menlo Medium 12"
#else
#define GEANY_DEFAULT_TOOLS_BROWSER "firefox"
+#define GEANY_DEFAULT_FONT_SYMBOL_LIST "Sans 9"
+#define GEANY_DEFAULT_FONT_MSG_WINDOW "Sans 9"
+#define GEANY_DEFAULT_FONT_EDITOR "Monospace 10"
#endif
#define GEANY_DEFAULT_TOOLS_PRINTCMD "lpr"
#define GEANY_DEFAULT_TOOLS_GREP "grep"
#define GEANY_DEFAULT_MRU_LENGTH 10
-#define GEANY_DEFAULT_FONT_SYMBOL_LIST "Sans 9"
-#define GEANY_DEFAULT_FONT_MSG_WINDOW "Sans 9"
-#define GEANY_DEFAULT_FONT_EDITOR "Monospace 10"
#define GEANY_TOGGLE_MARK "~ "
#define GEANY_MAX_AUTOCOMPLETE_WORDS 30
#define GEANY_MAX_SYMBOLS_UPDATE_FREQ 250
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).