From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#459: Zero-length overlays, overlay keymaps, and `overlays-at' Date: Wed, 21 Jul 2021 12:36:07 +0200 Message-ID: <87r1fslzs8.fsf@gnus.org> References: <20210720143000.GA15534@bb84> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11688"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 459@debbugs.gnu.org, monnier@iro.umontreal.ca To: Toby Cubitt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 21 12:57:29 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 1m69ur-0002qQ-HL for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Jul 2021 12:57:29 +0200 Original-Received: from localhost ([::1]:50628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m69uq-00013a-Ip for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Jul 2021 06:57:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m69b4-0004gU-Hc for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2021 06:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52856) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m69b4-0005Gq-8p for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2021 06:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m69b4-0001nh-24 for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2021 06:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Jul 2021 10:37: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.16268637876880 (code B ref 459); Wed, 21 Jul 2021 10:37:02 +0000 Original-Received: (at 459) by debbugs.gnu.org; 21 Jul 2021 10:36:27 +0000 Original-Received: from localhost ([127.0.0.1]:36169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m69aO-0001mk-Ds for submit@debbugs.gnu.org; Wed, 21 Jul 2021 06:36:27 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:40726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m69aM-0001mW-4u for 459@debbugs.gnu.org; Wed, 21 Jul 2021 06:36:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=QW6klH2LRZnM7NrB2cfIW5LOKayhVh86/OwNyb09uak=; b=Cd+zhclgRpufc4oMzoRHmj5k2T IHM1952S0Ge21t/qrcPsgDIwnH/tm2judc/RshrMQ46JdkDY2fKVuIm40xLNf8LVWtYZJwGGstiPy ylwS7NtTIXp6mere8aTYLDQUL78W0oHH1Xw2+8KSDKLg6k1q8MKew9k38E/T0jEh3Wdo=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m69aB-0005Sr-K7; Wed, 21 Jul 2021 12:36:10 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUWFRMREA4QDw0G BgUfHh0hIB4kJCP///8ETlpUAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+UHFQohMPhr+7UAAAGoSURB VDjLZVQ7lsIwDJRioJa8F8DmAiy5ANXWVNQ0y/2PsBpJzofVCwmRMqPR2AnRR6iQau+XvD3EhQUV JpISiaNnHeAHUVk5zqPCjXsLqjtOkidFmy0iKk7V/hWY2KiERb+2SqNHc0gZGYmraVUAZKWyOyeT SVl5FEDCamrERVVZEWhrwVRhiWjZ9sUZjPbjtYfK8g+QkGu2MUOS9WA4qSEXPMo2mqB/TFgWLxj1 SMKXkkyQAuqoDSrvoRHem5KqNuj0kiTA5Zb5G6biYZswAE51sQJmthzkOoAm45jnK9oyC6wNACTW WwMeR7T3zTD5YjJGY+8dFgsKYRyYAMvdM1zV4d3iJeeKuqaRFM+dm1aaMIG5dKBHej9Rv1UsP4cf 2x1TewMZZYWXQpkbbHSMLAWTa1uCYzUiHhu5rgQzmjF32heGH0LbMH7YlwPstI0lpI8AgDMfkNPY bb4iw0GLV0qy+XpdIa/TK18BlqTw0pFO73Wvu6RQe08mJxuq9oOMR0PQz/P3+Y6vhXsLlPAegZdY W++tthT8HmuZXuXzcFJkIu56mT/iD8itIv4C+SlMAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTA3 LTIxVDEwOjMzOjQ4KzAwOjAwc6H0xgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wNy0yMVQxMDoz Mzo0OCswMDowMAL8THoAAAAASUVORK5CYII= X-Now-Playing: Orchestral Manoeuvres in the Dark's _Souvenir (1): The Singles 1979-1987_: "Electricity" In-Reply-To: <20210720143000.GA15534@bb84> (Toby Cubitt's message of "Tue, 20 Jul 2021 14:30:04 +0000") 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:210408 Archived-At: Toby Cubitt writes: > 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 currently (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 > included within the overlay" > > But maybe it would be better to be less concise, and spell out the > zero-length overlay special case separately. It's not just zero-length overlays -- any overlay with rear-advance has this keymap effect on the character after the end of the overlay. And in addition, zero-length overlays have to have front-advance nil for this to happen. :-/ I've now mentioned that these properties have an effect in the overlay keymap item, but punted to the "Managing Overlays" section to actually explain how these overlays behave, because it's too complicated to repeat in that item. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no