From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: [External] : Inspecting behaviour of `make-overlay', is this expected? Date: Sat, 24 Dec 2022 16:39:55 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36039"; mail-complaints-to="usenet@ciao.gmane.io" To: Jean Louis , Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 24 17:40:18 2022 Return-path: Envelope-to: geh-help-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 1p97ZI-0009DT-QB for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 24 Dec 2022 17:40:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p97Z8-0004hD-1l; Sat, 24 Dec 2022 11:40:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p97Z6-0004gf-3P for help-gnu-emacs@gnu.org; Sat, 24 Dec 2022 11:40:04 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p97Z4-0003EC-7Z for help-gnu-emacs@gnu.org; Sat, 24 Dec 2022 11:40:03 -0500 Original-Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BO5RWsm031080; Sat, 24 Dec 2022 16:39:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=aa34FBX41ky0SKUrh0z5rzqYJAJcFNxKbRIilfQWBTo=; b=cLGP6/8+8luzU+PaAdi/gtHLX26ubWJ2JWCJY+pbBoL/dqY/vpFI6mEDNUAENOQ8QcaY sU2+ub4zJpKkMO6+irMIF5Xf2VGCsMJjy55Z/D0o+RDWRXk+ltExFlEZ3ujh1n4u2wDV 3spJMD6UpMe0k4jKtb6OBb8jokQho9pjyjyMMI8xtEGSdWMmo68azW5X2bU4qqeZpWS4 dpYm/osHA/bFM0Z3vc1QVvMjy48rlL5YK5O1v3rRmR/+WxLOTOq8Ffr7OK/PR5OPxU6A q8XY9LehYsNocTB4XVhMRxrc1a4Aww/nKoa87j0OQ3bOQ6EKSJntZ+whf4T64KE17S8q Jg== Original-Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3mnsaa0mxy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 24 Dec 2022 16:39:59 +0000 Original-Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 2BOCIagZ008543; Sat, 24 Dec 2022 16:39:58 GMT Original-Received: from nam04-mw2-obe.outbound.protection.outlook.com (mail-mw2nam04lp2173.outbound.protection.outlook.com [104.47.73.173]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3mnqv2qf11-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 24 Dec 2022 16:39:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dBId7ubxzltYTHu/VSTvoHXoW52xG80JEUeoJnkYCykjV9NwYyZLk4cAL3YT/N3P4kGYw6BsPBVNo2Qy3REl+KPuRrLFZnrkjDKYjfO5j/3EzKfoCL0IrYEPcgqmj2KNKIzUygLWfEK9BzOxUfFpc+Iox//wjjUuGN4eBlEAdtFGjU8bndHysR2snPBxNv7ZQzmlgT4wJCJsZg4CJxIB53xzfTLNIr24dJRhYjVDBNYHFjGAJ+V5lx8Gc9f1ifCHqufwtyb2DbREbhSrFKj3tbLnfA12Ec0ijBRPkLRpfjQEYANtKp9kwPK/Y+R4gFjhyRO0c6b3CqSVaksXI1O6lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aa34FBX41ky0SKUrh0z5rzqYJAJcFNxKbRIilfQWBTo=; b=jJF4L6CAFS4eQXCpf1pQuGdrVWnRpbd1WYo3kasU/Xg2GPxgC7ZsEqjuxHs96YC6TFFRlRpciqRD9gwnIUsuvSgkLS3Xs5hxPfFNU6etOiDQxk9q0FnSVv2rtHHT59y/qSO2VQCey73JY+/VH150hPcu5v/T/ZKs+6kDb4V+1jYj3pxCOmauvpGIBOOABSXVrkwqTSM0pszYQamlHVDR96wodklo3UB8FDiR83Wo9xfTMUtyJy2PmvCcc4jqqDjXhd88D73ISGN+AQ4GrpInYsTfQilNr1tC/1RAwUMQc6SZwpTC2ixUh71h5vZ0wu6ASyPpjTiGjaA3XqJPBUbQEw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aa34FBX41ky0SKUrh0z5rzqYJAJcFNxKbRIilfQWBTo=; b=yFAiFJekq8LycQ91RxX++n/qtjI4hq8SP7a02iZWiwRILkwP0TwuuGGbf0759vT00tEjct0vvHEbt2L+imoGykCOff/teaHXY+ZEJjKYCS7YLfokP4kPv76ZpVpZtMkz0C6dTMg1xjBw2xKjeY5xTdkAKhl9tIj4NuqE8txFD5I= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BL3PR10MB6140.namprd10.prod.outlook.com (2603:10b6:208:3bb::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.13; Sat, 24 Dec 2022 16:39:56 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3c:e53d:5276:ef29]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3c:e53d:5276:ef29%6]) with mapi id 15.20.5944.012; Sat, 24 Dec 2022 16:39:55 +0000 Thread-Topic: [External] : Inspecting behaviour of `make-overlay', is this expected? Thread-Index: AQHZF2z9ayYXpeCxyEmfHfdTrDFUW659OlcggAAB2IA= In-Reply-To: Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|BL3PR10MB6140:EE_ x-ms-office365-filtering-correlation-id: e099f062-9eb4-45ff-19bd-08dae5cd7d30 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0UwzUHLoP+NV5XxqaFBX/ff5AWEimy8go5OcbFXLC0Z8IUun/7FZdxA1cufOMLmURcPMIflUxBvE3JJ6VR0K4rbFb7Lr/oPVvgIZ8DgAjpvbH/Iykl8DC718HpXeTxbXWdwv/DSKHDYs3AFUf96GM9wOe0Ar9JWi7izXMhyyAwcUED7XBQOZHpcF6pkLUSaixmeos4dMxbZ9dSx6bCZ4ujpB4CLiHXJ1rdL2FxEHGxgriOaiNcRLrM/85QTHOg3AtMl8QyCxLyIHNcMeu5k8Wsfn8f0P5vv0IAEi5iTjHozH56NzPmBPp0NncWSqAuRza4BEIqX2e8SAIu3qu6+v4im22NQGw1uU5Kmzc9AF/Hi7GkxISYqH78R8KkKvshw/4S4TNUpZUJYowb90AMrnM1x6MYzhZEEjJYugNCnfcMlWuOWjgCY2INFzAAFB+52AWbw34yqg1a94kYghBPPstuzMJPzSkYgsdJuqTJKLELC8AZ1W6ENA9K/ufxgWscbkCpa1aXlFjaINXN9a3GWdg8PkQ0V6MDh09juWOoTOOsch/XFu1vdsG1AsK3vBDyH/BJbNZ6eGNwV/mGWVa25IJ8Dl2+YqldmYR4G3oiceK4PUhtkH4bgShWuwqGvA5qnTEPsTvRdOlRRwFX+YO/TLuB5mh8QjMr3gLDx1l4opwnsG+G+0JNNeAfSRRtvJaLRiHfp56h5inYGepY6UQ/lbk1AloPxR9Cdum/XSxt51+bw= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(396003)(346002)(376002)(136003)(39860400002)(366004)(451199015)(2906002)(4744005)(44832011)(5660300002)(8936002)(76116006)(64756008)(66946007)(8676002)(66476007)(41300700001)(66556008)(38070700005)(38100700002)(316002)(110136005)(122000001)(55016003)(33656002)(478600001)(66446008)(7696005)(52536014)(6506007)(2940100002)(86362001)(9686003)(186003)(26005)(71200400001)(83380400001)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?e6uwiSRt2yALDaNp1UqfmRiA17hpaES7lmUe9xKsXq/rjTuwU8bGlifZ/ql6?= =?us-ascii?Q?ymXtYhl8EO/noR+Q1ITjLBKoWi2x4efgdoY2luCWSRToyecEM3kVH9/NzCoZ?= =?us-ascii?Q?cQ6YUpmzokd5iQoReKEsq4GCW+78AUy5mvGfgEDdmFPJiJBKk5kH6oEu+dTB?= =?us-ascii?Q?X0SaLdprdv1waZf5KLtCEcPQvFurJ1qIqo7d9tUcykbrte4nmva6Q4sgHDVF?= =?us-ascii?Q?ccrA/HMJK4YTOeImWJJXigJbnqCSUdC4cs/tL6tkLYOyfMdlM2o+N4y9PZYX?= =?us-ascii?Q?PZDOcJqxPmYfZYHFw5433aTGULUWfdmcE2eh3hrma5nU0YFccyKI8Q7weaFo?= =?us-ascii?Q?yuE9SLwh/WYoMFw5W2xkSnnNah59cZbF+m/NBPN7PG7CyawgStKHv8a0aEmY?= =?us-ascii?Q?0WPXvZD918bJEA64stek/HcvcltkcQDRDS9S7l5HIKoxZvoEh/DTDungGoHy?= =?us-ascii?Q?RVS9h5MC1Kokspfurt1+gmVjMkpCRDCWOqXaU7sogZjN1+AD6MYxVIXd1P4u?= =?us-ascii?Q?gzVNexTTRyqYQuTzC91rQuwfvKysUb3cFrO5Yls9gNo1uMb7wjrnroZegvwf?= =?us-ascii?Q?igkcTXpungVffMyPg7Iu19YTM+6RL/cF6BClDuX9rppLuYxDPCvua21T7Ao8?= =?us-ascii?Q?Jx X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e099f062-9eb4-45ff-19bd-08dae5cd7d30 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Dec 2022 16:39:55.7237 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: eUBnN9roRefLS8eif93V0v4yuNAyOHInMIzdsp253Ey9FJ7TAnJJuYUTh3uI+rQokL2Nlny6iwJBQwtwlv959w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR10MB6140 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-24_08,2022-12-23_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 mlxlogscore=718 phishscore=0 bulkscore=0 suspectscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2212240141 X-Proofpoint-GUID: RtBKaHd3uXjbkpsBv8w5f6oVN2UTFhjb X-Proofpoint-ORIG-GUID: RtBKaHd3uXjbkpsBv8w5f6oVN2UTFhjb Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141929 Archived-At: > > XXXXXXXXXX > > ^ > > | position 0 in buffer >=20 > Position 1. Buffer positions start with 1. >=20 > Try (make-overlay 1 11). You _can_ pass 0 to `make-overlay', but it creates the overlay starting at position 1. E.g. (make-overlay 0 10) creates an overlay from the first position, 1, through the 9th (as Eli mentioned). As (elisp) `Managing Overlays' tells you: Function: make-overlay start end &optional buffer front-advance rear-advance This function creates and returns an overlay that belongs to BUFFER and ranges from START to END. Both START and END must specify buffer positions; they may be integers or markers You can use `overlay-start' and `overlay-end' to see the limits of your overlay.