From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Is there an IT test for a tab-width spacer? Date: Sat, 28 Oct 2017 20:23:39 +0300 Message-ID: <834lqj5gpw.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1509211459 21057 195.159.176.226 (28 Oct 2017 17:24:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 28 Oct 2017 17:24:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Keith David Bershatsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 28 19:24:08 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8Uq0-0003bw-Lq for ged-emacs-devel@m.gmane.org; Sat, 28 Oct 2017 19:24:00 +0200 Original-Received: from localhost ([::1]:33517 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8Uq6-0002BU-BO for ged-emacs-devel@m.gmane.org; Sat, 28 Oct 2017 13:24:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8Uq0-0002BO-9i for emacs-devel@gnu.org; Sat, 28 Oct 2017 13:24:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8Upx-0003wv-6o for emacs-devel@gnu.org; Sat, 28 Oct 2017 13:24:00 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8Upx-0003wH-3E; Sat, 28 Oct 2017 13:23:57 -0400 Original-Received: from [176.228.60.248] (port=1173 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e8Upr-0001Pf-0z; Sat, 28 Oct 2017 13:23:52 -0400 In-reply-to: (message from Keith David Bershatsky on Sat, 28 Oct 2017 10:10:02 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219803 Archived-At: > Date: Sat, 28 Oct 2017 10:10:02 -0700 > From: Keith David Bershatsky > Cc: emacs-devel@gnu.org > > As we move IT, I would like to know if we can programmatically determine the width of that adjustable space [associated with a tab] and the corresponding X and HPOS of the next character. [Once those values are known, I can place fake cursors along that adjustable space.] You have it.pixel_width. As for HPOS, it always moves by 1 for each glyph, so there's no notion of "width" for it. HTH