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: Mon, 19 Jul 2021 18:37:07 +0200 Message-ID: <87y2a2i7kc.fsf@gnus.org> References: <485D204B.2@dr-qubit.org> <875yx6mijw.fsf@gnus.org> <83y2a25ktq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21801"; 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, t.s.cubitt.98@cantab.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 19 18:38:59 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 1m5WIE-0005Tu-Ud for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Jul 2021 18:38:58 +0200 Original-Received: from localhost ([::1]:33410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5WIE-0001C9-0R for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Jul 2021 12:38:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5WHK-0000Qj-Ms for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2021 12:38:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48591) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5WHK-000485-ES for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2021 12:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m5WHK-0007ON-Az for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2021 12:38: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: Mon, 19 Jul 2021 16:38: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.162671263928359 (code B ref 459); Mon, 19 Jul 2021 16:38:02 +0000 Original-Received: (at 459) by debbugs.gnu.org; 19 Jul 2021 16:37:19 +0000 Original-Received: from localhost ([127.0.0.1]:60137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5WGc-0007NL-Md for submit@debbugs.gnu.org; Mon, 19 Jul 2021 12:37:18 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:47390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5WGa-0007N9-JM for 459@debbugs.gnu.org; Mon, 19 Jul 2021 12:37:17 -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=k9Iq9rlVeERblNSxyWOY7KBSTNkWnqxVcvJyW3aWtFc=; b=adn5X7KGFU9P3IOB/Qa1kT3m3P EH+QkYuUbPpt595SzUztpkV6AKuC2kapYta2Jx/nKjVBiiPQgdNi3WRR/t5gnEWPDl3Eao2k9fF3F SOefGrQ2ju89CEHuF7hApBKW+ljwzC9e68WRG20hvVtgekGHF3VOekAJD6s3OQE5c6oA=; 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 1m5WGR-0000RA-Kq; Mon, 19 Jul 2021 18:37:10 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEVZVU6popZFQDv/ //8RJBwaAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+UHExAYE2BSfgcAAAGqSURBVCjPNZHBatwwEIZ/ CavYOqlgh9CTYjAYP4UCXlh6UhepuLc0UOhjKMZbtnss2Z6dPal6yo687YAH/ZZm5tcnwMEgh7cA U6DMUVkFFABl5l6+/877QqFvDMO7LGqUwvFKq63UHG3QpZElrZVx6MEV2+HBew+J0NfCo/GWh8bh aDmyoGRWT/1Re2Wqr84PuVXjD2X1zExhb2IClwvLDuumoA7en7IQ3pSU/Jw9Cud01zTjnK0zsoNL t9czBHlWT6V/2WMhURj2yVs2QdAtOBW7yFzowjbo25kItMtmgT3SgGa/Ce+/GBRvdrwhshMBOYhN uLs7wBU/kSH5ccGixYnOdZ/rkRE9RWghbL1jT2SsbRQuYwG+f3t/n+svhTjwie1UIAevOIJPf/Sc 3Vx8EfmHqBe6EF4fJVYEdHnraOlaPIIRQxSUEtJM6EGYodqHc4g6bU+iympYQxtXQgKN0/OMNg+i WOPHOJR9oN86SRqE+yGz51cefvUYUsYohxB+JDlEjWtKaUZKMl0jIv6HTMjvfetJ49uUstIypUhN 0r9D6UqlOc70heEvpalxS178q4kAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDctMTlUMTY6MjQ6 MTkrMDA6MDA+CC65AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA3LTE5VDE2OjI0OjE5KzAwOjAw T1WWBQAAAABJRU5ErkJggg== X-Now-Playing: Aksak Maboul's _Before and After Bandits_: "Cinema [Knokke] (original version)" In-Reply-To: <83y2a25ktq.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 19 Jul 2021 19:29:05 +0300") 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:210292 Archived-At: Eli Zaretskii writes: >> > a) Modify (overlays-at pos) to return zero-length overlays that start >> > at pos (it already returns all other overlays that start at >> > pos). Again, this seems unlikely to have significant impact on other >> > parts of Emacs, since zero-length overlays are rarely used. >> > >> > b) Modify (overlays-at pos) to return zero-length overlays that start >> > at pos, and have a null front-advance and non-nil rear-advance >> > property. (The logic for this is the same as in option b) for the >> > overlay keymaps issue.) >> > >> > c) Leave `overlays-at' unchanged, and define a new function >> > `overlays-at-point' that implements either a) or b). [...] > We could add a new optional argument to overlays-at, to make it return > such overlays. That would avoid the risk of breaking unsuspecting > callers. Yeah, that's true. Do you have any opinion on whether a) or b) would make the most sense if given this optional argument? I'm leaning towards b)... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no