From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.bugs Subject: bug#31716: move_it_in_display_line / horizontal scrolling / tab stretch Date: Tue, 05 Jun 2018 21:18:27 -0700 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: blaine.gmane.org 1528258633 4311 195.159.176.226 (6 Jun 2018 04:17:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 6 Jun 2018 04:17:13 +0000 (UTC) Cc: 31716@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 06 06:17:09 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1fQPsd-0000vV-Ig for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Jun 2018 06:17:04 +0200 Original-Received: from localhost ([::1]:50275 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQPuj-0006CC-27 for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Jun 2018 00:19:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQPub-0006C0-FP for bug-gnu-emacs@gnu.org; Wed, 06 Jun 2018 00:19:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQPuY-0003Xh-9o for bug-gnu-emacs@gnu.org; Wed, 06 Jun 2018 00:19:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56101) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQPuY-0003Xb-53 for bug-gnu-emacs@gnu.org; Wed, 06 Jun 2018 00:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fQPuX-0004SX-PT for bug-gnu-emacs@gnu.org; Wed, 06 Jun 2018 00:19:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Keith David Bershatsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Jun 2018 04:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31716 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 31716-submit@debbugs.gnu.org id=B31716.152825871117102 (code B ref 31716); Wed, 06 Jun 2018 04:19:01 +0000 Original-Received: (at 31716) by debbugs.gnu.org; 6 Jun 2018 04:18:31 +0000 Original-Received: from localhost ([127.0.0.1]:35765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQPu3-0004Rl-Fj for submit@debbugs.gnu.org; Wed, 06 Jun 2018 00:18:31 -0400 Original-Received: from gateway21.websitewelcome.com ([192.185.45.175]:22338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQPu1-0004Rc-B9 for 31716@debbugs.gnu.org; Wed, 06 Jun 2018 00:18:29 -0400 Original-Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway21.websitewelcome.com (Postfix) with ESMTP id 9550A400C52E0 for <31716@debbugs.gnu.org>; Tue, 5 Jun 2018 23:18:28 -0500 (CDT) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id QPu0fK7Od79N3QPu0foHij; Tue, 05 Jun 2018 23:18:28 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=CMK+IZu+4BcwTHzUOinxeVstGbRjQx61rguP9fc0u5U=; b=dyDbXefb0XpbOovAzhQ44DTCLB W56sKz1IAHX8xfKgEHgADoOREVkGnqE5zE2huMt08uz9TeMG8j3MnrHPRLy+l5UOqsJHc9VNw1mvN 1bPY9w2AHGzd3ktdKAVl5rY/Imgtp2g9yFSUw7g71yDYzXl0V8dmJn01TKs4c1cszmQsJx92jaclV uIbJ/BY8XcpxKF/Z9kIbw1KwaUY+NCvmikF1vdoTtXNKLhqCzLjYmQYfqRFuN6hcFAIfSdBug6l3m mk3TdxEilfRQhJdWbu/QNYJMfbQE/rPAd4LSbPDgf3uQu/1rV8K3h+irV4IK5Ieb9FOzABPb9w95a j9CXL84g==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:51419 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.89_1) (envelope-from ) id 1fQPtz-003AP8-Q5; Tue, 05 Jun 2018 23:18:27 -0500 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Source-L: No X-Exim-ID: 1fQPtz-003AP8-Q5 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.local) [45.48.239.195]:51419 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes 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: 208.118.235.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:147071 Archived-At: Thank you very much, Eli, for taking the time to provide a detailed explanation regarding how MOVE_TO_X works. I have come up with a way to programmatically deal with this particular situation when all lines are horizontally scrolled, but am still struggling with this situation when only the current line is horizontally scrolled. When only the current line is horizontally scrolled in this particular situation, HPOS is not: it.hpos - window_hscroll_limited (w, f); Instead, HPOS is something like it.hpos - 1 for the fist tab and it becomes more complicated when horizontally scrolling multiple tabs. If it okay, I would suggest/request that bug#31716 remain open for a little bit longer so that I can assemble a minimal working example dealing with horizontal scrolling of the current line when tabs exist. Keith