From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IAaBKwn1PmJhcQAAgWs5BA (envelope-from ) for ; Sat, 26 Mar 2022 12:12:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id EDDiIwn1PmIkuQAAG6o9tA (envelope-from ) for ; Sat, 26 Mar 2022 12:12:09 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1270B3D9A3 for ; Sat, 26 Mar 2022 12:12:09 +0100 (CET) Received: from localhost ([::1]:42356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nY4L1-0008Ql-Rs for larch@yhetil.org; Sat, 26 Mar 2022 07:12:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nY4KF-0008QA-PR for emacs-orgmode@gnu.org; Sat, 26 Mar 2022 07:11:21 -0400 Received: from mail-oln040092072030.outbound.protection.outlook.com ([40.92.72.30]:54350 helo=EUR03-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nY4K4-0000JC-TR for emacs-orgmode@gnu.org; Sat, 26 Mar 2022 07:11:12 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KAWIs0sCUZEDyes3jgEmJpU04Xqq+jsA3cK5Mk6+ps2Jjex+J9sjpPeEzuyXagLG3GCHf2nWQXyvx6ZkRwVbKHwddVU9qyqReg6jGGVirmA/jbzuGlaVkvSTrPBW47128Qg1ijrmldNR8JHCLAFkhDjlZH+vm1CPSQut1EygWIL1p7WY3QF2bJr1Rk47ZrGzj5spkPvUwB+O6rSt1fMOjMp96ODW7wNTNZ25Oz7W+rHVQRw2hEEatpr2Ytln4/YO4F7emXa+fXJtIS0urOpQ0MO4O13Vm2VqFESp0d1J5UaKSGUGuSKjdYqPXvOL9eIH+aQIfqrbde+gqk8yBp5sqg== 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=s8WDpjVzD25GLLKGcmH4KlpxqmXeW4fNcLTbxjwmliQ=; b=HijIJpFDIxnzDvZ9a/vi/t9NhLNVRy5X58rlxddhCBONi4wIMSUwBDV9UIFXODEomWUJ4FsM26RF2/ZrLPO0HdZ8vYnUrxfVIqaD4G7M5KhBjnJ3/SxQbtLiRGwQ7MxvwSH2CB8vB/C1JM8cbU0kOVvRh3z4gyKremZW0A8vKRseLMUIQJl4oYznJIH2qvoiF7gkOxV1RB3daIWn8Nw9XuG/VLkag70d+b2AImhqWvC18XBWN2PcLTlhl6VEKnTAyMEUCTZYYWqwRkLTTvmCexv3CzXBuUvopXxkAAGj1hjE3AXc8NXeOxcozvBQDep3V1oU/HCYlZGJEnfnUEhfog== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=s8WDpjVzD25GLLKGcmH4KlpxqmXeW4fNcLTbxjwmliQ=; b=kzKuGin9Y13MsCzGHpEi5jvL6OVIKl2BRxSeZpoPlUaolxYUugjzEOazRs4GX7y9FUC45rTGVIzvnDCOOhWyESeRSqRTyMrl+hT4h0kpjb+oV7LO931I1gAZe4qNsh1dfYamVGnzhqX2TSLhtwXBpfbpio6xjmdCHFUCOZ7SF7I38LF/urnBFJtANFiWwgV7KZPQu6sW/rm5aRHj9C1hwHLkMJIgSs0Hcg/QtOhEnFOBan0Y+9niDyCyoefW51NMACylzhEnoZGHdy8dXJ9AmNytVu71YbmQcpMgaPUZ7VyoN5/of04Yef03Zt1VN+dgiy3my8JAKRdcyj39hFGYqw== Received: from DB9PR06MB7753.eurprd06.prod.outlook.com (2603:10a6:10:258::12) by AM0PR06MB5394.eurprd06.prod.outlook.com (2603:10a6:208:106::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.16; Sat, 26 Mar 2022 10:50:52 +0000 Received: from DB9PR06MB7753.eurprd06.prod.outlook.com ([fe80::901a:3011:5a27:47e1]) by DB9PR06MB7753.eurprd06.prod.outlook.com ([fe80::901a:3011:5a27:47e1%9]) with mapi id 15.20.5102.022; Sat, 26 Mar 2022 10:50:52 +0000 User-agent: mu4e 1.6.10; emacs 29.0.50 From: Ignacio Casso To: emacs-orgmode@gnu.org Subject: [BUG] completion-at-point for [[* only works at end of line [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)] Date: Sat, 26 Mar 2022 11:32:13 +0100 Message-ID: Content-Type: text/plain X-TMN: [bQ9DWToMcGLk0PM3CS5POhdJW0Vxfflm] X-ClientProxiedBy: MR2P264CA0119.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:33::35) To DB9PR06MB7753.eurprd06.prod.outlook.com (2603:10a6:10:258::12) X-Microsoft-Original-Message-ID: <87lewxxa0p.fsf@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b8cefcd7-f2ef-46e2-36b2-08da0f167ef2 X-MS-TrafficTypeDiagnostic: AM0PR06MB5394:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: v5060/asmFLBLeJ4ymeAtlJHEuB/EZYqUTn2/3VnOXltguSXHSOdueu9BTlhtwqhz7lYuRi39HkTpKS9BSvOVEMjYvNp2K8wa2oO9A2TWR9kK7ISPLBORCkkU4uQFX47NaEVyVMxFtDm9b0eLonqST+NidrL00D5rXBOhzkiSRLcBFkUgVqUfsF2pGH8uTNAItWmfs5El2m82EeYA4YGF+NMUuhO2kimutFRj/6G2X5ykRTh5VfpC5rkcVRB2ytoLBEtHbu2RvqEkGn3SESRSzoHIgU9QwxbfW3mwevxsx/jx5/SVvBPr55JW0hRO1a/TfDmWa4OWpZF/nftTfcdDR/w2/dlRVFjPtUvORXpq9L1lzeJ5hxmTOWL66oaftoV4E+GygRIaG0mP69GiWzuOc3/pudV59SdaY4iPmRdKEuzKI1STiizLl+v5KJAF03qFeo9faWBSuhfWhwl+kBjFniKbom8ExQOLqe0msAn+lR5Z5tZb5NueJa64aHZkWICZp5rteuvbXOlrrWNao5EPPd+U3ZvRZWhJnO8N8PG8gBghJJIZ6Hx/+mheKkt9UsUuARJ+6OxZzb2T8gc6dgTchowQGTctgzRNcL2vsgMuLwEHi+apf5+E62wEyLmp5tk X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?8sqi1+zadzRl8CCiQshhedou8cXz7TcL6Vz/8G/RH0tKdVfM0eKrm6zl/umh?= =?us-ascii?Q?XckGM7o4mWtVeep+VpfJCV+Dv7/JW0L3jS6url7qpOWDMo8XkLwUOMW7qs/1?= =?us-ascii?Q?mx8Vv9lqC5NZa4JlSrKb8EOj8rre26PvRK18Lfp6FJHX3CyHUdlvoC4ENpI9?= =?us-ascii?Q?+Z6ar+VPjYz/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unGfDW0olk6eSSiPZLaWwhlJ?= =?us-ascii?Q?YTCTYc6/AC++eCO6k6Bz/jt5jM5rWIH5AqlZF6CFC7g7tek3bLjDfOk94UxL?= =?us-ascii?Q?1gYpLUfHHEEIv2asISeWcC5F2cZCyNxyPMMBrNK964OU1vvIdV2ogiLhut2r?= =?us-ascii?Q?vuHsAbuAf2B4hZrJ3nKG2ipzLDxNhzmhgJ7gl1Opa9jod3qc4Q/04JmqFGAd?= =?us-ascii?Q?8dAUxoF0pbWBn5pcdzA/fcsOi+RBo57FcZYPdeLgFh7AbQrgOl40LGqiTbSL?= =?us-ascii?Q?vjOImd7LClz7VonmCzMJVzUkFnepTYWIPTLLo2s+HHSS0f68Rf1ZP8JdeD49?= =?us-ascii?Q?sG43kHwaULWDHNaH5j0F5s+aDjbRXGW6ZMZhtH9LRALePPAVbALDE8d/1PCp?= =?us-ascii?Q?X81UyKGMX+5wrulleSd5NK39jTdjcefh?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-6e454.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: b8cefcd7-f2ef-46e2-36b2-08da0f167ef2 X-MS-Exchange-CrossTenant-AuthSource: DB9PR06MB7753.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2022 10:50:52.5157 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR06MB5394 Received-SPF: pass client-ip=40.92.72.30; envelope-from=ignaciocasso@hotmail.com; helo=EUR03-VE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648293129; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=s8WDpjVzD25GLLKGcmH4KlpxqmXeW4fNcLTbxjwmliQ=; b=Xq3W/QZafwlzxiiqprpcJdDSFNC7sjC79qve87bZlIE7x98oHcr6BUGQ6qnOkJN+qHIbdI XBmaZiDFj/lREqu6ccGN87Z5B/ZAffeLHHuc0Vf+D0ddB0EdbhUadIzlHQxYkxexm48Lz2 bCzB5DfFevQpoXle393iKuJW4kpCAwCMxCaBLMFgGyZgpNENx418uDKBtTVDn8ubuaheN5 rmQ5mzAHvIpW4Zvtm08qD7U1w8D4dBeLtv5/eZBdn730C8pkwzYhu+3J4ii9n7GsimE6eS Ij4zqO90azFbKQbFZ7fb76iiPpBocRXmHosUD9MijPpVGldNUq/eelgtCX+rug== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1648293129; a=rsa-sha256; cv=pass; b=C8sNGJmsUPAjFTqQe2bqCHzbL0RokmHGvSjoRucWVXImaHfIDHRh7v03t7iPlFdT6lK8vd LTilyp6R5tW3qJsKsSzC/AGIUJWVpz8HfIJaLHlWJ6AT/EgaRjJtJimV/0KVYE8kvBT3TG 0uHTxf1T0j1od3OFWFDvOc16Aaxp0NwQ8j0eBgnijZlmWjguZrTr6mNwyk+HrXq21gsmW0 XieZBBBFmhv0V8UzkR31kgmqWbL/jxFzoZJm3weH/2tyuw9eMJaLhyrksNSUYxBkGO2zgQ lSUxU4jXnpn4Fv0jgdst5UzLn0xrihusgKWL9IX2gX5B2B4kxyj4zAynUcHXIQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=kzKuGin9; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.38 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=kzKuGin9; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1270B3D9A3 X-Spam-Score: -6.38 X-Migadu-Scanner: scn0.migadu.com X-TUID: fPB6FmXF6upt Hello, The manual says in https://orgmode.org/manual/Internal-Links.html#DOCF25 (footnote 25), that in-buffer completion can be used to insert links targeting a headline in current buffer. So a user can type [[* and C-M-i and all headlines in the buffer are offered for completion. However, that only works if [[* is the last thing in the line. If there is something after point in that line, it fails with the following message: cl--assertion-failed: Assertion failed: (<= start (point)), #, 242 Or if there are only whitespaces after point, with the following message instead: pcomplete-completions: Args out of range: "", 1, nil. Regards, --Ignacio Emacs : GNU Emacs 29.0.50 (build 18, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2022-03-26 Package: Org mode version 9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)