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.devel Subject: Re: Problems with move_it_in_display_line_to X when tabs exist. Date: Wed, 29 Nov 2017 20:29:05 -0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: blaine.gmane.org 1512019641 6588 195.159.176.226 (30 Nov 2017 05:27:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 30 Nov 2017 05:27:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 30 06:27:17 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 1eKHNP-00015S-Hp for ged-emacs-devel@m.gmane.org; Thu, 30 Nov 2017 06:27:12 +0100 Original-Received: from localhost ([::1]:46368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKHNW-0007CG-OV for ged-emacs-devel@m.gmane.org; Thu, 30 Nov 2017 00:27:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKHMx-0007Bv-MP for emacs-devel@gnu.org; Thu, 30 Nov 2017 00:26:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKHMq-0003uG-Pp for emacs-devel@gnu.org; Thu, 30 Nov 2017 00:26:43 -0500 Original-Received: from gateway23.websitewelcome.com ([192.185.50.108]:25543) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eKHMq-0003sj-Hu for emacs-devel@gnu.org; Thu, 30 Nov 2017 00:26:36 -0500 Original-Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway23.websitewelcome.com (Postfix) with ESMTP id CA7EF81A020 for ; Wed, 29 Nov 2017 22:29:06 -0600 (CST) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id KGTCe0KoB5b6TKGTCeAPWE; Wed, 29 Nov 2017 22:29:06 -0600 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=iFj7rekDseyZijdQcXIQ30j7ZmwXobuMxx0MpQJsesQ=; b=GZCWgQXixzRj3MX8NjXtdsexhF b2S0EDtqXq/zE9cokvjKZspfXvO7XwhenSPWVbZ51JazfCbKo1REcCBnNHBXqu/WKchEBlvVWYC9W W8MxWW7i/RMEFEw/m9A/qrqRJRLBxrJH63U3F/VlRST8jXykG4RJo+nj4fi6yGJnlWwUM+hO3A+qs pU2+snrtbxqAy/AUxzyZNLhNLsKYsra7+r1/4yPJUcGMVFj8KUVRDKoVlWztiSxJCz1WGARS8pDNz J/98O1EBOFkXnHqk65g+VXm1UMZzrztCoEvzDoOFeM9ADWSXNKK9s9MRN4TODbYL4HtNCSl5WyGRR chOnWuBA==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:53495 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.89) (envelope-from ) id 1eKGTC-000BfS-0g; Wed, 29 Nov 2017 22:29:06 -0600 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 - 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: 1eKGTC-000BfS-0g X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.private) [45.48.239.195]:53495 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 192.185.50.108 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:220533 Archived-At: Thank you, Eli, for your help. I will work on this over the next few days as time permits and report back. Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: [11-29-2017 10:04:14] <29 Nov 2017 20:04:14 +0200> FROM: Eli Zaretskii > > > Date: Tue, 28 Nov 2017 22:12:35 -0800 > > From: Keith David Bershatsky > > > > I can see that X and/or HPOS are wrong when tabs are present on the current line because I get superimposed letters and double of the same word slightly off to the left and/or the right of where the word should be. > > > > HYPOTHESIS: I would venture to say that what is displayed on screen does _not_ coincide with what IT reports when running move_it_in_display_line_to. > > Does this happen only when line numbers are displayed? > > In any case, your description provides a lot of details that are hard > to reason about, because most of the code is not shown. OTOH, if > indeed there's a bug in move_it_in_display_line_to, then presenting > evidence for it is very simple: show a line of text and its line > number, and then show the X and HPOS values for each tab in that line > as calculated by move_it_in_display_line_to vs the same values in a > displayed line. (For the latter, you can use the pgrowx command > defined in src/.gdbinit, or manually display the values using the > debugger.) > > If you do that, any mismatches between displaying a line and moving > through it with move_it_in_display_line_to will be immediately > apparent, and it should be easy to fix them.