Re: mcedit -> fancy tab handling



Am Montag 05 Januar 2009 21:40:43 schrieb Janek Kozicki:
> Enrico Weigelt said:     (by the date of Mon, 5 Jan 2009 19:22:25 +0100)
>
> > Hi folks,
> >
> >
> > I've just seen that current mcedit (from git tree) has some fancy
> > tab handling (shows <--> symbols). When had this been introduced ?
>
> I noticed this after upgrading debian etch to lenny.
>
> I like it, but sometimes it's inconvenient when I want to copy/paste
> with mouse. (using shift-mouseclicks)
>
> The best if there's a way to turn it on/off. And if it's somewhere
> easily accessible with menu/shortcuts.
I'm attaching here the patch which is in use inside debian for a long time to 
add a shortcut in order to turn this behaviour off and on. 

Please comment on this patch. 

Should this also applied against mc-4.6 (which should only hold bugfixes) or 
should this go only into a coming 4.7 release?

Greetings
Winnie

-- 
 . '' ` .   Patrick Winnertz <winnie debian org>
:  :'   :   proud Debian developer, author, administrator, and user
`. `'`     http://people.debian.org/~winnie - http://www.der-winnie.de
  `-  Debian - when you have better things to do than fixing systems
--- ./src/setup.c	26 Sep 2007 10:22:25 -0000	1.93
+++ ./src/setup.c	27 Feb 2008 18:48:37 -0000
@@ -216,6 +216,8 @@
     { "editor_option_typewriter_wrap", &option_typewriter_wrap },
     { "editor_edit_confirm_save", &edit_confirm_save },
     { "editor_syntax_highlighting", &option_syntax_highlighting },
+    { "editor_visible_tabs", &visible_tabs },
+    { "editor_visible_spaces", &visible_tws },
 #endif /* USE_INTERNAL_EDIT */
 
     { "nice_rotating_dash", &nice_rotating_dash },
--- ./edit/edit.h	24 Sep 2007 09:28:35 -0000	1.88
+++ ./edit/edit.h	27 Feb 2008 18:48:37 -0000
@@ -298,6 +298,9 @@
 extern int edit_confirm_save;
 extern int column_highlighting;
 
+extern int visible_tabs;
+extern int visible_tws;
+
 /* File names */
 #define EDIT_DIR           ".mc" PATH_SEP_STR "cedit"
 #define SYNTAX_FILE        EDIT_DIR PATH_SEP_STR "Syntax"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]