From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Layered display API Date: Sat, 16 Aug 2014 13:17:14 +0400 Message-ID: <53EF219A.9020009@yandex.ru> References: <86tx5r7l1j.fsf@yandex.ru> <53E097F7.5050407@gmx.at> <53E0ABF9.7070506@yandex.ru> <8338dbqcai.fsf@gnu.org> <53E14AF4.6050804@yandex.ru> <83k36mpbxg.fsf@gnu.org> <53E22245.4070307@yandex.ru> <8361i5pmch.fsf@gnu.org> <53E294BD.1000500@yandex.ru> <837g2knwb2.fsf@gnu.org> <53E818F0.2080104@yandex.ru> <8361hzjciv.fsf@gnu.org> <53EAD0B1.1010405@yandex.ru> <83iolwif2l.fsf@gnu.org> <53EC205F.7030801@yandex.ru> <8361hvixxz.fsf@gnu.org> <53ECB5C3.20309@yandex.ru> <834mxfhzd4.fsf@gnu.org> <53ED604C.8020705@yandex.ru> <83sikygssk.fsf@gnu.org> <53EE91C5.9060502@yandex.ru> <83r40gev9d.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1408180670 20749 80.91.229.3 (16 Aug 2014 09:17:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Aug 2014 09:17:50 +0000 (UTC) Cc: rudalics@gmx.at, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 16 11:17:43 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XIa7L-0007Vy-5R for ged-emacs-devel@m.gmane.org; Sat, 16 Aug 2014 11:17:43 +0200 Original-Received: from localhost ([::1]:34852 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIa7K-0006bD-Lo for ged-emacs-devel@m.gmane.org; Sat, 16 Aug 2014 05:17:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIa73-0006b1-Pa for emacs-devel@gnu.org; Sat, 16 Aug 2014 05:17:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIa6y-0004tY-BK for emacs-devel@gnu.org; Sat, 16 Aug 2014 05:17:25 -0400 Original-Received: from mail-lb0-x230.google.com ([2a00:1450:4010:c04::230]:59007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIa6y-0004tM-2J; Sat, 16 Aug 2014 05:17:20 -0400 Original-Received: by mail-lb0-f176.google.com with SMTP id u10so2622261lbd.21 for ; Sat, 16 Aug 2014 02:17:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=K6ouQS3E0pMZQD74NqqIVxujr+1xAB2GuhNIfCT/nHw=; b=fVGs29YVEFfMYBJImIyZrqvKLpYFrQHRyppfPdN7HdEKGX/JTcmkY5wLEKMqaHZ6RT SD3Uu5Aa6thvYDJqMW8jDLciKcz5bbnJD+6k3ECb9OeNi2SE1C7dmVWcou0+De/vF7Ss DruaQ/uXNHUabDL2bF4N0v84TXvLc8wKQiBX1GdTmfQxE8nMKJNtiOVkaIIDkhQlw55y H9zUbVy8LhizU6+qQ7g+4iBFFQ3m9la98ayH4ZjpX9eAW3r0v5v7/Q4ErAm9d1Sb4Fak dtf92NPx+tukbQd5/vdX08mMXVq2UCHr0z4tAv0nRD94hQgv5m+HS5W75xVkDBWx09Bp Ghgg== X-Received: by 10.112.57.195 with SMTP id k3mr15388999lbq.48.1408180638935; Sat, 16 Aug 2014 02:17:18 -0700 (PDT) Original-Received: from [192.168.1.3] ([178.252.98.87]) by mx.google.com with ESMTPSA id z8sm15284453lbk.35.2014.08.16.02.17.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 Aug 2014 02:17:17 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: <83r40gev9d.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::230 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173705 Archived-At: On 08/16/2014 11:41 AM, Eli Zaretskii wrote: > Please file a bug report. http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18276 > Something like this: > > (put-text-property POS1 POS1+4 'eliz "xxxx") > (put-text-property 1 5 STRING 'eliz "xxxx") > (put-text-property 8 12 STRING 'eliz "xxxx") > > where POS1 is the buffer position of the second 'a', and STRING is the > string that is the value of the 'display' property. Yes, this doesn't sound too good: it will require modifying the buffer contents, as opposed to using an overlay, which can be removed at once. Since we'll have to modify display strings, the code will have to account for the display logic, line-prefix, before-string, etc, anyway, if only to calculate which part of our "new" text falls on each respective display property, or on the "plain" buffer text.