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 #71 received at 18493 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> Is company-mode only for buffers whose major mode is some programming
> language?
I'd say it's the first priority.
> I thought it was more broad. But even if it is only for
> programming languages, does it mean that the API you wish existed
> should only cater to such modes?
It's hard to say. Maybe? I'd like to reiterate here, that I'd be
satisfied just with some instructions how to convert the current
`posn-col-row' return value into value that respects text scale.
> So what you actually need is to find the correct X coordinate for the
> screen line _below_ (and maybe also above) the one where posn-col-row
> is called, is that right?
I don't understand the distinction. But from `posn-col-row' I actually
take the screen column value (the row value returned from
`posn-actual-col-row' is more useful).
> If so, first question is why not do all this in pixels?
Because we use the returned value when combining the display string for
the overlay. So at some point the pixels have to get converted to
character numbers, and we're back to the same problem.
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.