From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#37393: 26.2.90; [PATCH] Speed up 'csv-align-fields' Date: Wed, 18 Sep 2019 16:08:27 -0400 Message-ID: References: <5d828c99.1c69fb81.1ec00.8239@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="64864"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 37393@debbugs.gnu.org, sdl.web@gmail.com To: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 18 22:09:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iAgGI-000GmN-7p for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Sep 2019 22:09:14 +0200 Original-Received: from localhost ([::1]:34864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAgGG-0001kB-A8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Sep 2019 16:09:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38439) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAgG7-0001jt-PU for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2019 16:09:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iAgG6-0002pO-S8 for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2019 16:09:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46055) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iAgG6-0002pF-O4 for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2019 16:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iAgG6-0005z6-GG for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2019 16:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Sep 2019 20:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37393 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 37393-submit@debbugs.gnu.org id=B37393.156883731922965 (code B ref 37393); Wed, 18 Sep 2019 20:09:02 +0000 Original-Received: (at 37393) by debbugs.gnu.org; 18 Sep 2019 20:08:39 +0000 Original-Received: from localhost ([127.0.0.1]:54874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAgFh-0005yI-FU for submit@debbugs.gnu.org; Wed, 18 Sep 2019 16:08:39 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:34619) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAgFf-0005xz-45 for 37393@debbugs.gnu.org; Wed, 18 Sep 2019 16:08:35 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id BF10C447F92; Wed, 18 Sep 2019 16:08:29 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 66EDC447F3D; Wed, 18 Sep 2019 16:08:28 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1568837308; bh=tEBPVLSaSoi0nVqWnG19TO4m/bWc8Zf/2P/1lsIAB4w=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=TzAI304wb0H2s7pHw+hDtFFmvuM0+boi43wpKtkYx1QB/f88pWiDuyen+n7BzE0FZ cSBtT+0FvBHoWARfcSSNbXcm/cl43cXaBPR++WI6AXpLGHF5kROXrQW+Pg/ngdcqvW gyD3LPiKS7rUH6aEfxoqNSioXJi5vS+pOZi8wDFiVKZaps5NfOPCT+v051X78cFJAh pXNCYw569pm4WmuzZzIKesqAcwhUYHm57FlOattu/5kwKnAOSrlgBPqw3njZ1o1K1X ridlvw0dn0Gsii5YySp6tSibm7TTF/pEN7Li552jP5Q5jPvPFXJl081gSe8ex9ssKk ZsKjCfFFAnVxg== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 415EF12044D; Wed, 18 Sep 2019 16:08:28 -0400 (EDT) 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") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:166686 Archived-At: >> 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 "" 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