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: Sat, 02 Dec 2017 19:38:51 -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 1512272432 22823 195.159.176.226 (3 Dec 2017 03:40:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 3 Dec 2017 03:40:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 03 04:40:28 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 1eLL8l-0005hK-B5 for ged-emacs-devel@m.gmane.org; Sun, 03 Dec 2017 04:40:28 +0100 Original-Received: from localhost ([::1]:37732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLL8s-0007aH-FY for ged-emacs-devel@m.gmane.org; Sat, 02 Dec 2017 22:40:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLL7K-00075o-To for emacs-devel@gnu.org; Sat, 02 Dec 2017 22:39:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLL7H-0008JW-La for emacs-devel@gnu.org; Sat, 02 Dec 2017 22:38:58 -0500 Original-Received: from gateway31.websitewelcome.com ([192.185.143.35]:35610) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eLL7H-0008J9-Fe for emacs-devel@gnu.org; Sat, 02 Dec 2017 22:38:55 -0500 Original-Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway31.websitewelcome.com (Postfix) with ESMTP id D2E76560D84 for ; Sat, 2 Dec 2017 21:38:52 -0600 (CST) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id LL7EePpwc0aRHLL7EevP3o; Sat, 02 Dec 2017 21:38:52 -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=lFioqsIwH12quulxscAzuGL2yDNbO/7Q9I5G7NUs5nU=; b=Kh5Jz0yEufzRgZO6ApgCm9Oz1F 5cSGyoYWSBQEGYl4hj5DZXNjM4HJPVzeDwINY1JaaO85gm9S6uGGbRMn2h0BreryMXOq76+me0UrV GM3dLMpLPYAthPn4jo4oLTn7S1tPdLvxB+QZiVuSUZ7LKDnnmFwTGZeoq5bLs6joKwES3z3r0vVCh yGd/M5DOdlvu/esMuuZscXUYIbWIrfXiGHJ5zfqueS8hQd38MX219MJIwlPEnKn9sK8ORQHvfbNIn 7x8WmOZIR82VhtfhMtC9+ik2nV4BvW/tSNjTdZzVHqiFs8r250MOIrtJVKEthYMx6ypmCOYW6kUmw PLDyN23w==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:56116 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.89) (envelope-from ) id 1eLL7E-0010dg-48; Sat, 02 Dec 2017 21:38:52 -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: 1eLL7E-0010dg-48 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]:56116 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.143.35 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:220642 Archived-At: The five faces were set up with the built-in defface macro. I set the buffer-display-table with setq and the following variable: (defvar +-buffer-display-table (let* ( (display-table (make-display-table)) (ff-char (cond ((eq system-type 'darwin) ?\U0001D4D5) ((eq system-type 'windows-nt) ?\u0046))) (glyph-form-feed (make-glyph-code ff-char '+-form-feed-face)) (glyph-pilcrow (make-glyph-code ?\u00B6 '+-newline-face)) (glyph-space (make-glyph-code ?\u00B7 '+-space-face)) (glyph-tab (make-glyph-code ?\u00BB '+-tab-face)) (glyph-tab-spacer (make-glyph-code ?\t '+-tab-spacer-face))) (aset display-table ?\n `[,glyph-pilcrow ?\n]) (aset display-table ?\f `[,glyph-form-feed]) (aset display-table ?\t `[,glyph-tab ,glyph-tab-spacer]) (aset display-table ?\s `[,glyph-space]) display-table) "The `buffer-display-table' that is used when `+-mode' is active.") ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: [12-02-2017 19:32:49] <03 Dec 2017 05:32:49 +0200> FROM: Eli Zaretskii > > > Date: Sat, 02 Dec 2017 14:28:31 -0800 > > From: Keith David Bershatsky > > Cc: emacs-devel@gnu.org > > > > Here are the four values. It looks like it.current_x is where I expected it to be, but it.what is showing a character instead of a stretch. > > > > (gdb) print it.what > > $1 = IT_CHARACTER > > > > (gdb) print it.char_to_display > > $2 = 9 > > > > (gdb) print it.method > > $3 = GET_FROM_DISPLAY_VECTOR > > > > (gdb) print it.current_x > > $4 = 44 > > Please show the Lisp code that you used to set up the display table.