* columns
@ 2018-01-06 16:43 Julia Lawall
2018-01-08 6:12 ` columns David Gibson
0 siblings, 1 reply; 4+ messages in thread
From: Julia Lawall @ 2018-01-06 16:43 UTC (permalink / raw)
To: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA
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-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
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.
thanks,
julia
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: columns
2018-01-06 16:43 columns Julia Lawall
@ 2018-01-08 6:12 ` David Gibson
[not found] ` <20180108061233.GB2131-K0bRW+63XPQe6aEkudXLsA@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: David Gibson @ 2018-01-08 6:12 UTC (permalink / raw)
To: Julia Lawall; +Cc: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 1290 bytes --]
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-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
> 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.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: columns
[not found] ` <20180108061233.GB2131-K0bRW+63XPQe6aEkudXLsA@public.gmane.org>
@ 2018-01-08 6:24 ` Julia Lawall
2018-01-08 6:44 ` columns David Gibson
0 siblings, 1 reply; 4+ messages in thread
From: Julia Lawall @ 2018-01-08 6:24 UTC (permalink / raw)
To: David Gibson; +Cc: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA
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-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
> > 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: columns
2018-01-08 6:24 ` columns Julia Lawall
@ 2018-01-08 6:44 ` David Gibson
0 siblings, 0 replies; 4+ messages in thread
From: David Gibson @ 2018-01-08 6:44 UTC (permalink / raw)
To: Julia Lawall; +Cc: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 2228 bytes --]
On Mon, Jan 08, 2018 at 07:24:43AM +0100, Julia Lawall wrote:
>
>
> 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-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
> > > 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.
Its not on by default; M-x 'column-number-mode' should enable it. I
don't actually know if it always treats tabs as 8 columns, or if
there's some magic variable controlling how it treats tabs. Given
it's emacs, probably the latter.
Fwiw, I don't usually use vi, but I had a quick poke in vim and it
seems to show both tab-unexpanded and tab-expanded numbers for the
columns (when pressing ^G, anyway).
> I make a macro that moves
> forward one space, and run that macro, eg 28 times, which ends up in the
> wrong place.
That is a good point.
> But if you prefer tabs to count as 8, I can leave it as it
> is.
I'm no longer sure which I prefer :/
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-01-08 6:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-06 16:43 columns Julia Lawall
2018-01-08 6:12 ` columns David Gibson
[not found] ` <20180108061233.GB2131-K0bRW+63XPQe6aEkudXLsA@public.gmane.org>
2018-01-08 6:24 ` columns Julia Lawall
2018-01-08 6:44 ` columns David Gibson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).