From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Overlay insertion types, markers, etc. Date: Wed, 20 Nov 2019 11:17:04 -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> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="31539"; mail-complaints-to="usenet@blaine.gmane.org" Cc: eliz@gnu.org, emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 20 17:17:20 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 1iXSfQ-0007pI-2y for ged-emacs-devel@m.gmane.org; Wed, 20 Nov 2019 17:17:20 +0100 Original-Received: from localhost ([::1]:60080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXSfO-00079R-Rz for ged-emacs-devel@m.gmane.org; Wed, 20 Nov 2019 11:17:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42694) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXSfE-00078k-79 for emacs-devel@gnu.org; Wed, 20 Nov 2019 11:17:10 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iXSfD-0001e9-LV; Wed, 20 Nov 2019 11:17:07 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1iXSfA-0003iI-SE; Wed, 20 Nov 2019 11:17:06 -0500 In-Reply-To: <29c934d3-712c-414e-b4aa-9ed8f3c609a2@default> (message from Drew Adams on 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] 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:242495 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > 1. Why, if you pass markers [to `make-overlay], > isn't the default to use the insertion types of > those markers? I don't think I ever thought about the question back then. Did pointers even have insertion types, back when overlays were first introduced? However, the function calling convention would have to bec omplex to give you three options: yes, no, or inherit from the marker. > 2. Why isn't there (or is there?) a simple way to > change the "marker insertion types" of an > existing overlay? I never thought of adding it. > 3. Why, if you pass markers to `make-overlay', and > you don't pass arg BUFFER, isn't the default to > use the buffer of those markers? I never thought about it. > 4. Can you retrieve the markers that are "used by" > an overlay, i.e., as markers? If you could get at them, you could change their buffer positions. I think that would mess up the overlay sort order and cause bugs. You could also put them in another buffer and cause even worse trouble. -- Dr Richard Stallman Founder, Free Software Foundation (https://gnu.org, https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)