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 01:24:19 +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="231583"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org, monnier@iro.umontreal.ca Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 12 00:24:44 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 1hwwGY-000y6y-0v for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Aug 2019 00:24:42 +0200 Original-Received: from localhost ([::1]:41992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwwGW-0000Mz-Km for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Aug 2019 18:24:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35592) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwwGQ-0000Ms-2n for help-gnu-emacs@gnu.org; Sun, 11 Aug 2019 18:24:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hwwGP-0001U5-1T for help-gnu-emacs@gnu.org; Sun, 11 Aug 2019 18:24:34 -0400 Original-Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:39076) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hwwGO-0001TB-Og for help-gnu-emacs@gnu.org; Sun, 11 Aug 2019 18:24:32 -0400 Original-Received: by mail-lj1-x236.google.com with SMTP id x4so4549937ljj.6 for ; Sun, 11 Aug 2019 15:24:32 -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=9OTXUSlaI5QrYNGlwt4OKi5geuERwRwTA/AzYhOCrys=; b=OqEtr127SFwziOA9YcPYCMp19XJNVGT+FRHXrvwBMKukOUtIPdCZv5QVWBzKF6IrBv SRavSxlAkGVGPrZSZSceeOhQ9R0yGZ/blN/K5XJsgYC5wFM9A7YwpwUifGPOQJXPi/kn gBVUVDAygESwlgNIEuqaK8VS7BtgtyqT2mnBMSWXked1K8uzNm2L2BT5KuyOc55FPAaF 21lDLH+c74eJCcnHU9Yx+mN8jG9NyvVDeEcu/xCCadXU0qQidHnyDjXHCTAWu6f9aswt Wbu0LDrugc+yIYGbLvrIkUYrBvIrCTPGmH3fcqYzL/CNF+EhTe9n9XokIF3OdMIgsHz5 OsSA== 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=9OTXUSlaI5QrYNGlwt4OKi5geuERwRwTA/AzYhOCrys=; b=ZIca9+TOfISRKliV72KBA3BJuN5n1gh7WuZpL88BnxWdgZFEQeaJ68rhBKNUKvfSJ6 UF0Zg1eAWarOUXGUtdoeDJ/S4O+YYBvc0NWM8w8tv60VQDBP1pyBTXoenzT77q+gmf7H k3+DWjLAoXDu9qSN538DeB1QC6wp5dL6mtbEWrBGm9ka2JaI8WgTN7YW41XLdcKdp6uV 6kWEN9otb39RnwiUjAQv0izcrY+wio10axGpkYwRc07CK9ltYLYS4FJqmBV704aZNlNV IXkatmrliDf9ODm4mbhgzwxQl6GTNWjhW8G4vqmNyvfDLjHvm7ndwhAziwgdXuqXGoA1 y0Vg== X-Gm-Message-State: APjAAAVSPVGYz/p28bPJ5gMe3+Pb+hgT553YvcbeH3R7D3RTf5obNXfK 7V902DkgalRBwrQM5Gc6o+HtbnsxaduER7bbfXVp4137 X-Google-Smtp-Source: APXvYqy0I5uFWF9L1VU+3e6ncne8puQ9xtiIpLPIYZIr8aaa3KbKOCnDRmNfXDVePqz4byGnoDqct+C9j6ve1k0BJoM= X-Received: by 2002:a2e:12c8:: with SMTP id 69mr16923699ljs.189.1565562270726; Sun, 11 Aug 2019 15:24:30 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::236 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:121329 Archived-At: 1. > You can control where the cursor is displayed in the after-string, with > the `cursor` property. Doing in it such a way that it gives the > illusion that you can put the cursor "wherever you want" can be a bit > fiddly As I understand, setting the cursor property allows me to put the cursor only in one position inside my overlay. I want the user to be able to move the cursor inside the overlay when using the after-string property. > so I think it's worth clarifying why exactly you want something > like that, so as to be better decide how to attack the problem. Im trying to implement something visually similar to what vimdiff has, as in this URL: https://www.thegeekstuff.com/2010/06/vimdiff-file-diff-tool/ In there, you can see the lines filled with "....................." where there is no content in the line of the first file and there is content in the matching line in the second file. Hope this makes it clearer and that I managed to reply this thread correctly. -- Gretz, Ofir Tadmor ICQ: 77685691 Mail: otadmor@gmail.com