jed-users mailing list

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

Re: [Jed-users-l] Feature requests (again)


On  6.01.11, Manfred Hanke wrote:

> It's probably not exactly what you have in mind, but I'd like to mention 
> that I find diffmode from
> http://jedmodes.cvs.sourceforge.net/viewvc/jedmodes/mode/diffmode/
> quite nice. It basically displays diff's with syntax highlighting, and 
> allows you to jump to a position mentioned by the diff with a shortkey.

> But I'd like to suggest to Günter Milde to include the line
>    dfa_enable_highlight_cache("diffmode.dfa", mode);
> somewhere after
>    #ifdef HAS_DFA_SYNTAX
> . I have a require("diffmode"); in my ~/.jedrc, and always got these
>    Creating DFA syntax table for Diff...
> messages... ;-)

I took this line out because it is a pain to change the colour with it.
Creating the syntax table for diff is fast (at least with
computers not older than 10 years).

I recommend to use autoload() instead of require() whenever possible,
though:

I have in my jed.rc:

add_mode_for_extension("diff", "diff");  % ´diff´ output
add_mode_for_extension("diff", "patch");  % ´diff´ output

% diffmode.sl
% set_color("diff_oldfile", "brightred", "lightgray"); % ---
% set_color("diff_newfile", "darkblue", "lightgray");  % +++
set_color("diff_block", "black", "lightgray");       % @@
set_color("diff_white", "black", "lightgray");
variable Diff_Use_Tree = 0;


and in the auto-generated  ini.sl 
(see http://jedmodes.sourceforge.net/mode/make_ini/):

% diffmode.sl
% set_color("diff_oldfile", "brightred", "lightgray"); % ---
% set_color("diff_newfile", "darkblue", "lightgray");  % +++
set_color("diff_block", "black", "lightgray");       % @@
set_color("diff_white", "black", "lightgray");
variable Diff_Use_Tree = 0;


Günter
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l


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