jed-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

RE: [jed] help for diff mode (syntax color via dfa)


I've piece of patch useful for me how about U

==== cut here
--- diffmode44.sl   
+++ diffmode.sl	
@@ -423,6 +423,7 @@
 	definekey("diff_remove_block(1)", Key_F8, Diff);
 	definekey("diff_remove_only_lines()", Key_F9, Diff);
 	definekey("diff_jump_to(1)", "^V", Diff);
+       definekey("diff_enter","\r",Diff);
 	
 	%%%% Other Functions
 	% diff_mark_file(skipheader);
@@ -535,6 +536,26 @@
 
 %%%%}}}
 
+%%%% Enter Jump to functions %{{{
+define diff_enter()
+{
+   variable ch;
+   push_spot();
+   bol();
+   ch = what_char();
+   pop_spot();
+   if (ch==45)          % '-'
+	diff_jump_to(0);
+   else if (ch==43)     % '+'
+	diff_jump_to(1);
+   else
+     {
+	message ("Only -/+ marker is active by <ENTER>");
+     }
+}
+%%%%}}}
+
+
 %%%% Menu %{{{
 %%%%
==== cut here

Thanks the great diffmode
Lechee



--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2007 date index] [2007 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]