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: Placing eol glyph (buffer-display-table) before an overlay after-string. Date: Fri, 11 Aug 2017 23:14:31 -0700 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: blaine.gmane.org 1502518508 6593 195.159.176.226 (12 Aug 2017 06:15:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 12 Aug 2017 06:15:08 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 12 08:15:03 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 1dgPhO-0001Jk-PV for ged-emacs-devel@m.gmane.org; Sat, 12 Aug 2017 08:15:03 +0200 Original-Received: from localhost ([::1]:58966 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgPhV-0003ii-5y for ged-emacs-devel@m.gmane.org; Sat, 12 Aug 2017 02:15:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgPhH-0003gh-ME for emacs-devel@gnu.org; Sat, 12 Aug 2017 02:14:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgPhC-0006xW-LY for emacs-devel@gnu.org; Sat, 12 Aug 2017 02:14:55 -0400 Original-Received: from gateway31.websitewelcome.com ([192.185.143.234]:40538) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dgPhC-0006sp-Cn for emacs-devel@gnu.org; Sat, 12 Aug 2017 02:14:50 -0400 Original-Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 016E814F84 for ; Sat, 12 Aug 2017 01:14:33 -0500 (CDT) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id gPg4dCJ6m7GnJgPg4du5YE; Sat, 12 Aug 2017 01:13:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:To:From:Message-ID:Date: Sender:Reply-To:Cc: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=ha763hBAwzygfbUWi4tbV6PpGdn8m3d9z76lKEIVnMY=; b=LU2aLSAhjHCpjvaboEtv2rOm+F i/5Phlgv0AFA6dYxEweK4ScT8SCLn/CY1m+aFizOPasEACTjW/55ukPVq6VYCo4hgNFdaviEZltOy wIOBxRXScocy5+tz/cOYl6xqHnyAQdfAG9YeqV+O6oV+F5iXeBqXXG/r5fQe9W6ddcuBpf4dv2ZMU +9EbVOeB50rKPDlsHmspP2xZPLKJzMYYEjexIUTQelvLwbIwJyr5Cj/W0OzKmF2WZSKie6TpPBXnP YfSDDg0o950hCIrhtxgtKp/jqwhV72F4NKZw69wntQFSK9LiumHBlRXMjQ6h/PY2wjyKlDYU7T1K8 xX+ebiXA==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:50589 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1dgPgu-002OVO-BZ for emacs-devel@gnu.org; Sat, 12 Aug 2017 01:14:32 -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 - 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-Exim-ID: 1dgPgu-002OVO-BZ 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]:50589 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.234 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:217456 Archived-At: My goal is to use a pilcrow to represent line endings, and this option can be set up using the appropriate buffer-display-table entry. I have a custom minor mode that draws cross-hairs the length of the screen to track the cursor position, which requires the use of the overlay after-string property. Emacs draws the eol glyph after the overlay after-strings are placed -- i.e., to the right of the after-string. The result is that the eol glyph (e.g., pilcrow) is always on the far right of the after-string overlay. I want the eol glyph to appear at the end of the line of text, and the overlay after-string should come after the eol glyph (not before). Is it feasible to reverse the order such that the eol glyph is laid before the overlays containing the after-string property? A hint as to the locations (in the C code) where I would start working on reversing the order would be greatly appreciated. If there is a better way to handle this than trying to reverse the order in which things are happening, any insight would be helpful. WORKAROUND: I have been using a custom XPM image of a pilcrow that is the beginning of the after-string, and I change its coloration (foreground/background) as needed. The problem with this approach is that the XPM does not look as good as a native eol glpyh, and the XPM would need to be adjusted depending upon the font and size of the font. Thanks, Keith David Bershatsky