From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Simen Heggestøyl" <simenheg@gmail.com>
Cc: 37393@debbugs.gnu.org, sdl.web@gmail.com
Subject: bug#37393: 26.2.90; [PATCH] Speed up 'csv-align-fields'
Date: Wed, 18 Sep 2019 16:08:27 -0400 [thread overview]
Message-ID: <jwvy2yle5g2.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <5d828c99.1c69fb81.1ec00.8239@mx.google.com> ("Simen \=\?windows-1252\?Q\?Heggest\=F8yl\=22's\?\= message of "Wed, 18 Sep 2019 21:59:20 +0200")
>> What about posn-at-point?
> That one doesn't seem to take the display width of the characters into
> account. For instance, in a buffer with "<space><tab><space>" and point
> at the end, 'current-column' returns column 9 as expected, while
> 'posn-at-point' gives 3.
It should return a lot more information than just a bare number.
I suspect you did not look at the right number. I think you'd have to
use the pixel (X . Y) information (and divide it by the frame's char
width), rather than the (COL . ROW) one.
Stefan
next prev parent reply other threads:[~2019-09-18 20:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-12 17:07 bug#37393: 26.2.90; [PATCH] Speed up 'csv-align-fields' Simen Heggestøyl
2019-09-12 17:46 ` Stefan Monnier
2019-09-15 15:55 ` Simen Heggestøyl
2019-09-15 16:17 ` Eli Zaretskii
2019-09-15 18:43 ` Stefan Monnier
2019-09-17 16:53 ` Simen Heggestøyl
2019-09-17 17:23 ` Eli Zaretskii
2019-09-17 19:14 ` Stefan Monnier
2019-09-18 2:34 ` Eli Zaretskii
2019-09-18 19:59 ` Simen Heggestøyl
2019-09-18 20:08 ` Stefan Monnier [this message]
2019-09-19 15:51 ` Simen Heggestøyl
2019-09-19 17:30 ` Eli Zaretskii
2019-10-09 16:33 ` Simen Heggestøyl
2019-09-17 19:12 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvy2yle5g2.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=37393@debbugs.gnu.org \
--cc=sdl.web@gmail.com \
--cc=simenheg@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.