[Pkg-jed-commit] r439 - in jed/trunk/debian: . patches
Jörg Sommer
jo-guest at costa.debian.org
Sun Sep 17 01:11:08 UTC 2006
Author: jo-guest
Date: 2006-09-17 01:11:07 +0000 (Sun, 17 Sep 2006)
New Revision: 439
Added:
jed/trunk/debian/patches/pymode-repeat-shift.dpatch
Modified:
jed/trunk/debian/changelog
jed/trunk/debian/patches/00list
Log:
• patches/pymode-repeat-shift.dpatch
· Added a patch to implement the suggestion from the Jed mailing list
that line shift should support the prefix argument.
Modified: jed/trunk/debian/changelog
===================================================================
--- jed/trunk/debian/changelog 2006-09-16 11:37:59 UTC (rev 438)
+++ jed/trunk/debian/changelog 2006-09-17 01:11:07 UTC (rev 439)
@@ -1,3 +1,12 @@
+jed (0.99.18-6) unstable; urgency=low
+
+ NOT YET RELEASED !
+
+ * Added a patch to make the shift line commands respect the repeat count.
+ ^[4^C> to increase the indent level by four steps. [JS]
+
+ -- Rafael Laboissiere <rafael at debian.org> Sun, 17 Sep 2006 01:23:45 +0200
+
jed (0.99.18-5) unstable; urgency=low
NOT YET RELEASED !
Modified: jed/trunk/debian/patches/00list
===================================================================
--- jed/trunk/debian/patches/00list 2006-09-16 11:37:59 UTC (rev 438)
+++ jed/trunk/debian/patches/00list 2006-09-17 01:11:07 UTC (rev 439)
@@ -16,3 +16,4 @@
fix-pymode-block-end
doc
fix-pymode-tab-space
+pymode-repeat-shift /* depends on fix-pymode-tab-space */
Added: jed/trunk/debian/patches/pymode-repeat-shift.dpatch
===================================================================
--- jed/trunk/debian/patches/pymode-repeat-shift.dpatch (rev 0)
+++ jed/trunk/debian/patches/pymode-repeat-shift.dpatch 2006-09-17 01:11:07 UTC (rev 439)
@@ -0,0 +1,75 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## pymode-repeat-shift.dpatch by Jörg Sommer <joerg at alea.gnuu.de>
+##
+## DP: There was a suggestion on the Jed mailing list to make the region shift
+## DP: command respects the repeat count (the prefix argument).
+## DP: This patch depends on the fix-pymode-tab-space patch.
+
+ at DPATCH@
+--- trunk~/lib/pymode.sl 2006-09-07 01:49:03.000000000 +0200
++++ trunk/lib/pymode.sl 2006-09-17 00:41:39.000000000 +0200
+@@ -274,21 +274,26 @@
+
+ define py_shift_line_right()
+ {
++ variable times = prefix_argument(1);
+ bol_skip_white();
+ if ( get_blocal_var("py_use_tab") )
++ loop (times)
+ insert_char('\t');
+ else
++ loop (times)
+ whitespace(Py_Indent_Level);
+ }
+
+ define py_shift_region_right()
+ {
++ variable times = prefix_argument(1);
+ variable n;
+ check_region (1); % spot_pushed, now at end of region
+ n = what_line ();
+ pop_mark_1 ();
+ loop (n - what_line ())
+ {
++ set_prefix_argument(times);
+ py_shift_line_right();
+ go_down_1 ();
+ }
+@@ -308,17 +313,18 @@
+
+ define py_shift_line_left()
+ {
++ variable times = prefix_argument(1);
+ bol_skip_white();
+ if (what_column() > Py_Indent_Level) {
+ if ( get_blocal_var("py_use_tab") )
+ {
+- () = left(1);
+- del();
++ () = left(times);
++ deln(times);
+ }
+ else
+ {
+ push_mark();
+- goto_column(what_column() - Py_Indent_Level);
++ goto_column(what_column() - times * Py_Indent_Level);
+ del_region();
+ }
+ }
+@@ -326,6 +332,7 @@
+
+ define py_shift_region_left()
+ {
++ variable times = prefix_argument(1);
+ variable n;
+
+ check_region (1);
+@@ -333,6 +340,7 @@
+ pop_mark_1 ();
+ loop (n - what_line ())
+ {
++ set_prefix_argument(times);
+ py_shift_line_left();
+ go_down_1 ();
+ }
More information about the Pkg-jed-commit
mailing list