bug-ddd
[Top][All Lists]
Advanced

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

Re: Should detabify 8-character tabs.


From: Andreas Zeller
Subject: Re: Should detabify 8-character tabs.
Date: 30 Jul 2001 20:41:20 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Cuyahoga Valley)

Hi!

Lachlan Andrew <lha@ee.mu.oz.au> writes:

> Greetings,
> 
> It seems that DDD's treats 8-character tabs as width-1 characters when
> the mouse pointer is used to select text or display a value.
> 
> This seems puzzling, since this case is singled out in tabs.h as the
> only case which is not "detabified".  I would think that the simplest
> fix is just to detabify this case as well.  (Use  tabs.H  below
> instead of  tabs.h  from 3.3.1, downloaded 14 July 2001)  Unfortunately,
> I haven't yet been able to get  ./configure  to finish, so I haven't
> tested this patch, but it looks pretty safe...
> 
> diff -c tabs.h tabs.H
> *** tabs.h      Thu Aug 19 21:28:58 1999
> --- tabs.H      Sat Jul 14 17:41:44 2001
> ***************
> *** 45,51 ****
>   // Same, but untabify only for non-standard settings
>   inline void untabify_if_needed(string& str, int tab_width = 8, int indent = 
> 0)
>   {
> !     if (tab_width != 8 || indent % tab_width != 0)
>         untabify(str, tab_width, indent);
>   }
>   
> --- 45,51 ----
>   // Same, but untabify only for non-standard settings
>   inline void untabify_if_needed(string& str, int tab_width = 8, int indent = 
> 0)
>   {
> ! //    if (tab_width != 8 || indent % tab_width != 0)
>         untabify(str, tab_width, indent);
>   }

Thanks!  This will be in the next DDD release.

-- 
Andreas Zeller          Universitaet des Saarlandes, Saarbruecken, Germany
                        http://www.st.cs.uni-sb.de/~zeller/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]