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: Re: Overlay after-string with cursor (Stefan Monnier) Date: Mon, 12 Aug 2019 13:03:25 +0300 Message-ID: References: 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="22302"; mail-complaints-to="usenet@blaine.gmane.org" Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 12 12:03:51 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 1hx7B8-0005hG-O9 for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Aug 2019 12:03:50 +0200 Original-Received: from localhost ([::1]:44056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hx7B7-0006KL-Cl for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Aug 2019 06:03:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49953) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hx7Az-0006KF-Va for help-gnu-emacs@gnu.org; Mon, 12 Aug 2019 06:03:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hx7Ay-00050d-Rc for help-gnu-emacs@gnu.org; Mon, 12 Aug 2019 06:03:41 -0400 Original-Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]:33237) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hx7Ay-000504-HI for help-gnu-emacs@gnu.org; Mon, 12 Aug 2019 06:03:40 -0400 Original-Received: by mail-lf1-x130.google.com with SMTP id x3so73930279lfc.0 for ; Mon, 12 Aug 2019 03:03:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VmoHbNaOgsgPmImzGzlgujLNcR/gGVG/EvpPVrzUCyk=; b=fae6RkhC0Tyc1qCVOG5RJS8SCa1ZAQt65+jfxs6RdBcF44t82BxENGIxWlGMnxCRG0 G1rG+3ecyrdMgGhuehcQMBAGnziNTkjSjMGePQYbAncesyb3+2+HyI5Rzbms2Dhtu4Cg eVaDa+sVa6WDVKja3G7IPuMBGq9HEJZgTjBlYDcp3uSaIln1l707lPpACJengi04r5t2 8y0NSLrP7IGX5zByjm8MRvxRw2Fd+ZEk4nx56mpSLP4bbB35lK+lWhWtiNkwfxEgcGS9 kzz756tzJ64Pg6bWUeDhYSNNAgTYmvn6XCtEjCK/T4OD9+e2SGNDBYTBZNglDMeKnT9T IdwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VmoHbNaOgsgPmImzGzlgujLNcR/gGVG/EvpPVrzUCyk=; b=npvQm4QjdsMNFwmCbhcvN/kWJ0zDISPrpKo3ryYFtcRyaupJYj6qwyHN7jjA0OR/6o W+Z+8d4zPZnDbFOZRjgqvXoOfu5OJw0OcEdNjxwhP0rhsERhfIwotHWl0+HqpXnBNJo1 eKXhu6SBfb2vLJI2Qg/Fp3vlY903g1CjFr66u9cWeCeirdmCL9fuyKQurbXVTqDcZsvH QY5YqCainYk0vgv0YKlKsH70r672FlpJL0be9Jm11BvuB+7Vd3v8gcQY7DB8mEPDeosZ lV40R9bR1dt6aoBbiU4XwObp6bbIhG1DMs4MacXIz5vN3Smc8ENh76a0PJjvaLLcxG5Q PrzQ== X-Gm-Message-State: APjAAAVqXu93L6g4Y/QGo5DKjUd9IJSQOaGipPr4UgnHvW06PyoM4jp9 tfWIzHFQFUgNNY2SV7woIiAJ4Rp++BA2XRUVYow= X-Google-Smtp-Source: APXvYqzbEQ2mzyAFQu4Jh0BCCmITxp+Pd961F5LNegf6gWWmR6RzJHoE2TQ8DO7T6KjuFCJMKG51sGsnVUt+B0SgbJE= X-Received: by 2002:a19:e04f:: with SMTP id g15mr19892861lfj.46.1565604218894; Mon, 12 Aug 2019 03:03:38 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::130 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:121333 Archived-At: On Mon, Aug 12, 2019, 12:25 Stefan Monnier wrote: > > Do I have to re-bind the key map of the overlay so it would accept the > > arrow keys and change the 'cursor property accordingly? > > Something like that, most likely, yes. > > > more spaces it is harder to navigate inside the files diff. Using the > > arrow keys makes the navigation easier. currently I have synchronized > > both buffers (side A and side B, C and ancestor) to received the arrow > > keys presses on the "ediff help buffer" (I have created a new > > Then you can set/change the `cursor` property as part of the > synchronization. Thanks > > The main problem you'll have is that he overlay's after-string will > never be displayed such that only the "second half" is visible, so if > it spans many lines scrolling will "jump" over those many lines. > The jump is exactly what I have experienced and did not quite understood what is hapenning there. Should it be possible to scroll by pixel into the 'after-string? I am unaware whether some buffer text can be shown in only one window (the inverse of hidden overlay with window property). If so I would insert the newlines as real text and set save hook to remove them before saving. I would have to fix gotoline and such, but these are of my least concern now. I could create a fake buffer with the data instead of comparing the original file. This would fix some more issues as I'm using persp mode and planing of a dedicated perspective for ediff. > > Stefan > >