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.devel Subject: Re: Overlay insertion types, markers, etc. Date: Sun, 17 Nov 2019 10:55:54 -0500 Message-ID: References: <20c74b83-6272-44e9-b4ac-829fd4cd0143@default>>> <83lfsh2zvf.fsf@gnu.org>>> > <83v9rl12t1.fsf@gnu.org>> <6dfab4eb-3701-40bb-80f1-942edd375295@default> <29c934d3-712c-414e-b4aa-9ed8f3c609a2@default> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="205910"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: eliz@gnu.org, rms@gnu.org, emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 17 16:57:12 2019 Return-path: Envelope-to: ged-emacs-devel@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 1iWMvF-000rR2-VL for ged-emacs-devel@m.gmane.org; Sun, 17 Nov 2019 16:57:10 +0100 Original-Received: from localhost ([::1]:54390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWMvE-0008Sb-Oa for ged-emacs-devel@m.gmane.org; Sun, 17 Nov 2019 10:57:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59173) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWMuA-0007XX-Qq for emacs-devel@gnu.org; Sun, 17 Nov 2019 10:56:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iWMu8-0004m8-QB for emacs-devel@gnu.org; Sun, 17 Nov 2019 10:56:01 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:56292) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iWMu7-0004la-62; Sun, 17 Nov 2019 10:55:59 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 09428449EAD; Sun, 17 Nov 2019 10:55:58 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id C7F1E449E9D; Sun, 17 Nov 2019 10:55:56 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1574006156; bh=OShUse/VOnXFLdaW8YdItL+OC4K/tFBaecH+vhn9Dk4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=MSKVSFbAM2K0Xoojm3UpYEPEEkDbfPFmGsddoEdb5fTtl3PangUqjI/n+IQ+ist1y 9JkOZG52i55sH8HmSGTXYLFBMqByXdxjLpiblw0hX6pPx5DMJ13WG6zdu/zjv3RSzi Dm2azKLeMdXi0T53JT0Yw7PAV9bSHrvPBd3M2GiXxhx0cnRr4J//50q+LkrPVpGihH rVH166QLZZ52Btavx1xwPRs0PKtZfS6mlMYwQBNxOmodNKgnZ5vcWsMCMG413Isl03 iM+284G4XLXYYg1gWNGf8pjiHFeItUErkVe2CKSbYHFG6RELdFmh0DxLs1RlooGJRw dEr7rf8KLtuoA== Original-Received: from pastel (206-248-133-142.dsl.teksavvy.com [206.248.133.142]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 83AEE120396; Sun, 17 Nov 2019 10:55:56 -0500 (EST) In-Reply-To: <29c934d3-712c-414e-b4aa-9ed8f3c609a2@default> (Drew Adams's message of "Sat, 16 Nov 2019 18:26:39 -0800 (PST)") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:242277 Archived-At: > 4. Can you retrieve the markers that are "used by" > an overlay, i.e., as markers? No, you can't, and you shouldn't be able to: it's an implementation detail, that may change in the future (IIUC the `noverlays` branch indeed makes this change as part of a rewrite which tries to eliminate some algorithmic complexity problems in the overlay code). Also it would introduce all kinds of extra work: - when an overlay is moved, the redisplay code is told about it, whereas no redisplay is normally caused by moving a marker, so we'd need to figure out what to do when an "overlay-owned" marker is moved. - the user could now move the start-marker of an overlay to another buffer than the end-marker - the user could now move the end-marker of an overlay before the start-marker (this can already happen but only in very specific cases, so we'd have to handle it in more cases). - ... Stefan