GNU bug report logs -
#18493
24.3.93; posn-col-row should take text-scale-mode into account
Previous Next
Reported by: Dmitry <dgutov <at> yandex.ru>
Date: Wed, 17 Sep 2014 22:15:02 UTC
Severity: normal
Found in version 24.3.93
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
Message #32 received at 18493 <at> debbugs.gnu.org (full text, mbox):
> > I don't understand why the value changing helps, instead of hurts,
> > in that context. I would think that the column should not change
> > just because the text is scaled. But I'm probably missing
> something.
>
> Take a look at the implementation. The function takes pixel
> coordinates and divides them by the frame-default character dimensions.
> text-scale-mode is buffer-local, so it doesn't change the latter.
Yes, I guessed that. That sounds like the wrong behavior, to me.
The frame char size is not useful here, I would think. What counts,
for visual _columns_ is the visual char size, i.e., from text scaling.
IOW, I don't see why scaling is not taken into account when
calculating the position in column terms. But what do I know?
I'm just asking what the rationale or use case is behind this behavior.
> That was my point.
Yes, I gathered that. Dunno whether we are saying the same thing
or not. I'm questioning whether the frame char size or the
text-scale char size should be used, to define what "columns" are
here.
I would think the latter. But I haven't tried to think this
through carefully. Perhaps there are other considerations
motivating this design, which have not occurred to me.
This bug report was last modified 10 years and 247 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.