From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "otadmor ." Newsgroups: gmane.emacs.help Subject: Overlay after-string with cursor Date: Thu, 8 Aug 2019 01:32:08 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="77006"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 08 02:51:24 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hvWeJ-000Jto-Ly for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Aug 2019 02:51:23 +0200 Original-Received: from localhost ([::1]:46232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvWeI-0001hC-28 for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Aug 2019 20:51:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50230) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvUTp-0000vA-Dv for help-gnu-emacs@gnu.org; Wed, 07 Aug 2019 18:32:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hvUTo-0006mc-DV for help-gnu-emacs@gnu.org; Wed, 07 Aug 2019 18:32:25 -0400 Original-Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]:38118) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hvUTo-0006ly-6S for help-gnu-emacs@gnu.org; Wed, 07 Aug 2019 18:32:24 -0400 Original-Received: by mail-lf1-x12f.google.com with SMTP id h28so65192887lfj.5 for ; Wed, 07 Aug 2019 15:32:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=bJ/xdaiuugR6wCZ/zo7+iELS/DdAoBhjzbRZJeK8U18=; b=iKA/Rpo96j/rSdy5sG73jDa95qbE5n7M+cf9503W3z3bLY9ZcNJlvFdWijFwD9/k2k s4wyJvcEZv8+9dIFM/4BC1uaqc28nLoOsY9QrDQZdTPY4ScrFSrE5DnIkBx6xSjFl1Kt 3Ahhryv6GAK7TNEVjcY+O1FDLTcxA89Zeb/rdgOXTPfuWyjBU5/vYnYHVW4fte6IwNDY F77rWqx3JYdG5ES3wQIrUossLHKUfXEl6sma7KMIiBsu7J8L4z9tDXCjjlf6ALN46uzb v83dBxuAjPgOMKep6rEit6lSgp4paozUIfx1UzmIyGYth/QV4MdSqvjAs84ze01jFQXM yINA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bJ/xdaiuugR6wCZ/zo7+iELS/DdAoBhjzbRZJeK8U18=; b=O95f11/qLS38U8bdqCef8u5NIUpexVwD76i87c1MFVy5EplOLsrIc8VCn8fEI2km3M XjRy7Du6g0W21yPBjGrbmv0I3JnkJjVD8Z9zgRj4ACBf+bIF9pwSxhBLNJltNen84nrI kj2af1VKE9uPdrYG5CNBYx6YAC8R1stUK+F/leV+5t6JqsI0/uD7d47O5e0sCK2Mk9Tu v6qleb7iXiA/OA7bIR2VcWRxnK9+92HPP2ZhqBHRoZD7jPnvQbR4rDThNEFni8NDzqLA PdLpEcTLP/I10C2ClQe2tDx6zIcTmnhtoMoQA/ofjrXCIKTdIDz8F2NI/1C2a0dLa1Vt dnHQ== X-Gm-Message-State: APjAAAWvcF+zwbMSbVj7rMYb0GQAAyDTrRf8uVzTtZLBs58L0MHly2gG 3Exwho2Z+Afi8JvRjAn6lUAEm+vBoUkHgivxk38zPw== X-Google-Smtp-Source: APXvYqyBNSHWMNrZqP7fjpMI5pgrsYG26VUeenbULHbgmfGR/ZbMQKkhpRhUY3hm6mQ6CERcgDz10dFiyontq/CeS84= X-Received: by 2002:a05:6512:484:: with SMTP id v4mr7534728lfq.66.1565217141451; Wed, 07 Aug 2019 15:32:21 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::12f X-Mailman-Approved-At: Wed, 07 Aug 2019 20:51:17 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121321 Archived-At: Hello, I'm trying to extend ediff to show the pws aligned like bcompare and vim. For this I am required to add "fake" lines (newlines) as the number of missing lines on each side. I managed to understand where to put the hook and how to calculate the difference, but I have no clue of how to add the lines themselves. I have thought of 2 options but they do not fit my needs. 1. Add real text to the buffer. This gives me correct cursor locations (it is possible to put the cursor on a fake line) but it makes a mess when I open this buffer on a different window than the comparison window. I can see my padding, and I might save this newline paddings to the original file. 2. Setting after-string allows me to use the window property without see these newlines on a different window. The problem is I cannot move my cursor over the padding which is not convenient when comparing files. Is it possible to add an overlay for one window without changing the original buffer text and being able to put my cursor on it? Thanks.