From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Toby Cubitt Newsgroups: gmane.emacs.bugs Subject: bug#459: Zero-length overlays, overlay keymaps, and `overlays-at' Date: Tue, 20 Jul 2021 14:30:04 +0000 Message-ID: <20210720143000.GA15534@bb84> References: <485D204B.2@dr-qubit.org> Reply-To: Toby Cubitt Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1004"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 459@debbugs.gnu.org, monnier@iro.umontreal.ca To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 20 16:32:46 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5qne-000AdC-Fr for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Jul 2021 16:32:46 +0200 Original-Received: from localhost ([::1]:48580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5qnd-0007x1-GW for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Jul 2021 10:32:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5qlz-0006wS-0N for bug-gnu-emacs@gnu.org; Tue, 20 Jul 2021 10:31:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51707) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5qly-000707-NB for bug-gnu-emacs@gnu.org; Tue, 20 Jul 2021 10:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m5qly-00043e-KR for bug-gnu-emacs@gnu.org; Tue, 20 Jul 2021 10:31:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <485D204B.2@dr-qubit.org> Resent-From: Toby Cubitt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Jul 2021 14:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 459 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 459-submit@debbugs.gnu.org id=B459.162679142313339 (code B ref 459); Tue, 20 Jul 2021 14:31:02 +0000 Original-Received: (at 459) by debbugs.gnu.org; 20 Jul 2021 14:30:23 +0000 Original-Received: from localhost ([127.0.0.1]:35014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5qlL-0003Se-Aq for submit@debbugs.gnu.org; Tue, 20 Jul 2021 10:30:23 -0400 Original-Received: from mail-4317.protonmail.ch ([185.70.43.17]:59557) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5qlJ-0003Kt-Fa for 459@debbugs.gnu.org; Tue, 20 Jul 2021 10:30:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dr-qubit.org; s=protonmail; t=1626791414; bh=TvcYY+UxPCNjBEyS2qcbi5aD/JE6D0q9cbaTv6tRyLs=; h=Date:To:From:Cc:Reply-To:Subject:From; b=Xu6rl96fNE2LxGerZly5689OMf2C5Rum/yg8mqTSvmKjJeRmuWt6u7FG/yv9cTU9D q9CMNcMQ3YJp1wQoJsGs4F9Qy3cOyn49bWi2MgBj/j/t2V66hEx/kq3MdU9n+AoNO0 sXh57s/R4n7u5fEKpm6Bo/5z0rUftnBju49LnAbQN21xYiI7RwZGScV5Ezy/9zMj/O r5/ipL2M/sXT7VVIkgCqduhtZ1UUa3T72CiKszX9RARksLe635FEks4jAmKJkEYovi XmsGhhsc1GczTdz7CotN2/OYbIH/IDzExBRE5URMWZ4uzoIehnA+rTMABJpMcBK3IO V6Ba5FNoFXFSg== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210360 Archived-At: On Tue, Jul 20, 2021 at 03:46:38PM +0200, Lars Ingebrigtsen wrote: > > This first bug in the report still seems to be there in current stable > > Emacs. Is the intention to dismiss that first bug as "won't fix", too? > > Just flagging, in case that part got missed. > > I didn't check that bit, since you said: > > ---- > Looking through NEWS.22, I came upon the following: > > *** The `keymap' property now also works at the ends of overlays and > text properties, according to their stickiness. This also means that it > works with empty overlays. The same hold for the `local-map' property. > > So the first issue I reported is already fixed! (In exactly the way I > suggested, which makes me suspect that future-bug might now have been > fixed too... :) However, this behaviour isn't documented in the Emacs > Lisp manual (unless I've overlooked something yet again), which *is* a > bug. > ---- No, I'd also forgotten that I wrote that :) I did test before emailing, but= didn't test with different stickiness. Making it stickiness-dependent make= s sense. > Oh, I missed the bit about the missing documentation? Is that what > you're referring to? I suppose if it was documented, I might have remembered that it was already= fixed :) Maybe it is somewhere, but I missed it? The Emacs Lisp manual cur= rently (Emacs stable) has this to say on the overlay keymap property: "This keymap is used when the character after point is within the overlay" Which is technically incorrect since that NEWS.22 item, as it doesn't cover= zero-length, null front-advance, non-null rear-advance overlays. A concise= , technically correct wording that I think covers all cases would be: "This keymap is used when a character inserted after point would be include= d within the overlay" But maybe it would be better to be less concise, and spell out the zero-len= gth overlay special case separately. Best, Toby -- Dr T. S. Cubitt Reader (Associate Professor) in Quantum Information Royal Society University Research Fellow Department of Computer Science University College London email: tsc25@cantab.net web: www.dr-qubit.org