From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Overlay after-string with cursor (Stefan Monnier) Date: Mon, 12 Aug 2019 05:25:36 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="134678"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: "otadmor ." Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 12 11:25:56 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 1hx6aR-000YKe-Pt for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Aug 2019 11:25:56 +0200 Original-Received: from localhost ([::1]:43970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hx6aQ-0000pE-JU for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Aug 2019 05:25:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43342) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hx6aJ-0000p7-P6 for help-gnu-emacs@gnu.org; Mon, 12 Aug 2019 05:25:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hx6aI-0002gX-NO for help-gnu-emacs@gnu.org; Mon, 12 Aug 2019 05:25:47 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:10068) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hx6aI-0002fq-J4 for help-gnu-emacs@gnu.org; Mon, 12 Aug 2019 05:25:46 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id D5E36100DC8; Mon, 12 Aug 2019 05:25:44 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 6F7261009EC; Mon, 12 Aug 2019 05:25:39 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1565601939; bh=XZRyFdndPrU/YxKnVXqniat5D4maLDyRZfBjoetLBSI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=SemfCR67dkxJygCCNu9kTRcPD0CDvMM1U5MJadAxG3trRWNqh1l/P4ytHlGe+/jXW nXPdHrecW45k5iijcfh6747i+PzgX0RFVCYy2wrbfIZDZsG3XsKMUiVQ+GLm3Hb4Yn l1QDTuHwkKr1aVh06UMAUNAdHVk/Gf7VXUDHMJ93DTwJRDbe05eF0fQAYOeDIdK4Ir ZxFq+6ILXlG82p/6heHUX+X/BbsuqRxrryfqLuSAZ1su4Qgf2vOQ3Pt6i5ArIOijlQ Cc6AVuYPt1cwFA/HlWfxEbF5ytHfIeUzWLIAYVQQTF8vOTA/hj3U+w+580rmpHJ1Tq rzHJ4q2sDgf9w== Original-Received: from alfajor (dyn.83-228-179-131.dsl.vtx.ch [83.228.179.131]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id AE70A1208D9; Mon, 12 Aug 2019 05:25:38 -0400 (EDT) In-Reply-To: (otadmor .'s message of "Mon, 12 Aug 2019 01:59:51 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 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:121332 Archived-At: > 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. 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. Stefan