From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Messed up display and incorrect handling of `face' specs on before-strings Date: Wed, 07 Apr 2010 14:54:13 -0400 Message-ID: References: <83sk77w41k.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1270666909 23909 80.91.229.12 (7 Apr 2010 19:01:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Apr 2010 19:01:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 07 21:01:48 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NzaVX-0000SO-28 for ged-emacs-devel@m.gmane.org; Wed, 07 Apr 2010 21:01:47 +0200 Original-Received: from localhost ([127.0.0.1]:33823 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzaVV-0005ja-AZ for ged-emacs-devel@m.gmane.org; Wed, 07 Apr 2010 15:01:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NzaOJ-0000Et-KD for emacs-devel@gnu.org; Wed, 07 Apr 2010 14:54:19 -0400 Original-Received: from [140.186.70.92] (port=53653 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzaOI-0000Di-9V for emacs-devel@gnu.org; Wed, 07 Apr 2010 14:54:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzaOH-0006sO-C9 for emacs-devel@gnu.org; Wed, 07 Apr 2010 14:54:18 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:45071 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzaOE-0006ro-RK; Wed, 07 Apr 2010 14:54:14 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAC9xvEvO+K6K/2dsb2JhbACbIXK8KYUJBIs2 X-IronPort-AV: E=Sophos;i="4.52,164,1270440000"; d="scan'208";a="60391697" Original-Received: from 206-248-174-138.dsl.teksavvy.com (HELO pastel.home) ([206.248.174.138]) by ironport2-out.pppoe.ca with ESMTP; 07 Apr 2010 14:54:13 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 45D148054; Wed, 7 Apr 2010 14:54:13 -0400 (EDT) In-Reply-To: <83sk77w41k.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 07 Apr 2010 20:44:39 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:123321 Archived-At: >> The first and 3rd issues seem to be due to the fact that `face' >> properties on the before-strings of the overlays aren't obeyed except on >> the first line. And the second is the same problem but for the >> `display' property. > Can you construct a simple test case that shows these problems? If you look at the code, it's pretty simple. > I tried a few, but they all seem to work, so I probably do something > differently than nhexl-mode.el does. Specifically, I don't know how > to simulate ``non-first lines''. If you set nhexl-point to some integer value and then run (nhexl-jit (point-min) (+ 30 (point-min))) without enabling the mode, you should get just two overlays and the problem is already visible there. I think the trick is to have two consecutive overlays, the first with an after-string and the second with a before-string. Stefan