Re: columns

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




On Mon, 8 Jan 2018, David Gibson wrote:

> On Sat, Jan 06, 2018 at 05:43:20PM +0100, Julia Lawall wrote:
> > Hello,
> >
> > I have been working with Frank Rowand on a v7 of file and line number
> > annotations in the -O dts output of the device tree compiler.
> >
> > I wanted to make an --annotate-full option that would print the full
> > filename, and starting and ending line and column numbers.
> >
> > The following commit:
> >
> > commit 728c5e87c655c17c2fbc1d5386b12ff328e0fc76
> > Author: David Gibson <david@xxxxxxxxxxxxxxxxxxxxx>
> > Date:   Tue Dec 8 14:24:42 2009 +1100
> >
> > extends the position mechanism with columns, but considers a tab to be 8
> > column.  Would it be ok to drop this feature?  I have the impression that
> > counting 1 column for a tab would be more useful for actually finding the
> > referenced code.
>
> Hrm.  I set it up that way initially so that the reported columns
> would match what shows up inside an editor (e.g. emacs
> 'column-number-mode').
>
> So, I think I'll need to see a more developed case for why not
> expanding tabs this way is preferable before making the change.

OK, my emacs doesn't show column numbers.  I make a macro that moves
forward one space, and run that macro, eg 28 times, which ends up in the
wrong place.  But if you prefer tabs to count as 8, I can leave it as it
is.

julia
--
To unsubscribe from this list: send the line "unsubscribe devicetree-compiler" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux