From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CIZtHb5xcmH8dgEAgWs5BA (envelope-from ) for ; Fri, 22 Oct 2021 10:09:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wBIyGb5xcmHLRQAAB5/wlQ (envelope-from ) for ; Fri, 22 Oct 2021 08:09:34 +0000 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 B63BB29ABD for ; Fri, 22 Oct 2021 10:09:33 +0200 (CEST) Received: from localhost ([::1]:44250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdpcK-0006ND-Si for larch@yhetil.org; Fri, 22 Oct 2021 04:09:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdpbq-0006MT-Og for emacs-orgmode@gnu.org; Fri, 22 Oct 2021 04:09:02 -0400 Received: from mail-yb1-xb2c.google.com ([2607:f8b0:4864:20::b2c]:41840) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdpbp-0003TI-8K for emacs-orgmode@gnu.org; Fri, 22 Oct 2021 04:09:02 -0400 Received: by mail-yb1-xb2c.google.com with SMTP id i9so5083988ybi.8 for ; Fri, 22 Oct 2021 01:09:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hk45R8RfQ2ViRuO/YJfA22tI91QlGyONp6J3duQYNdI=; b=qFCyMkv+r4UCUKQux5GP1kXIum+rDNqbUWusMW9dw8xAzWEPyz6Q9llDkTh9IwJOS2 Yy+CLTj+D/4X8Y0JgK3kTnmyPzVoyl2rRhqdZHvAMKKfy2b5M/3G+voMu6sx+adJEST2 mxecjLNw1Uf5fd/zeEb2jhaSbcV1igMdOU2ozwPteC7C1fIIMbLsE0FR30cmb1G++atf e43S9g7a8WJ9t6jzIbjtkdH/+NcpUhms0AKRgoI47xNnxp7Pc3+vh+TsJpkDUMyx7Zss Lvnf5n291puZVBj2GoGJVPyAvanmoi+mYdpE5F85yvwH5QT9iE0qX9FnsXYoIVc5DhSm nJvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hk45R8RfQ2ViRuO/YJfA22tI91QlGyONp6J3duQYNdI=; b=dlyfOG+87E+LR7lC4DOtFt1ADhzFNqdGWn/92Sf3M2bORvoHDmlCr3HJ1DigfM+5xk GdR0i7o2O/bWbSNbm46nhkCRorRoDO4hCyv1yzZRvz0ttJuHb2eeCqdfTPYtCIhpSF5m lImkc+RPF56w8uwJhztzY4BeA5zP8RMjLzHOj7q8RYIAMc4Uw4ojCXLv6asxN6HZgN87 swlO7RbxI44DVyByln398ZBotBWsSx7aoLgcOk67l4b0HEo7i15vkOkR2U7K5IO3xzXX AuGhVRObXN/0BtDb2/Jz9GlieQGtwSL82754v3zN+R7I/UTdk6EJCWRIXqxgHNWHy2t2 Nexg== X-Gm-Message-State: AOAM5328qnF5CQ3U8HSRUWlAcd7C48UNDrSOdrDioC411djjnnhSyVp/ jVncP+heNXpgazW8Ld4s91QNZtRMiSZDTaAEii+RjDEH2v4= X-Google-Smtp-Source: ABdhPJzC+4LRmUBbUeWeL7kRaboS/40iuMJjlnYDU9C7vwgdgIJrzzHcXJJCa9ul57NMHOySUJINakgUBP83Y0BFy10= X-Received: by 2002:a25:b08:: with SMTP id 8mr1846396ybl.220.1634890140113; Fri, 22 Oct 2021 01:09:00 -0700 (PDT) MIME-Version: 1.0 References: <913858.1634788206@apollo2.minshall.org> <87r1cfvvd0.fsf@localhost> In-Reply-To: From: Carlos Pita Date: Fri, 22 Oct 2021 05:08:48 -0300 Message-ID: Subject: Re: [BUG] "args out of range" on link heading completion [9.5 (9.5-gd361c7 @ /Users/carlos/.emacs.d/straight/build/org/)] To: Ihor Radchenko Content-Type: multipart/alternative; boundary="0000000000000c5c7c05ceec861c" Received-SPF: pass client-ip=2607:f8b0:4864:20::b2c; envelope-from=carlosjosepita2@gmail.com; helo=mail-yb1-xb2c.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Greg Minshall , emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634890173; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=hk45R8RfQ2ViRuO/YJfA22tI91QlGyONp6J3duQYNdI=; b=ZsungelFdX0VbauxcXavgfKVNnah00bEAQdY7nUbmmU/84fhSaTA2YixjCcTfusvqEAD2B yCnD9JVXT0dBHIdz7qfIfyh6EsRNXiDTt9CREr0HhNSbW/1mioK9UzIegeihVONC63OFtF faVk2qJejFrqcFt/GeNNLOYW4kYwgnAOAN2U1Bp/HLhBYla0VpV8RG+jQ7txngGI0fihlk QuSyfOrOmiJE1gSgM0SOz8vRyI4FSY7i1VUjv2cVI0TFPx1DH4AwLqPnMVWiMlMEHQw4P0 Ds8V/lZr2sZjt5Yooj+MMEnPF1D/Rso8RK4ic9wu0uvnci2XCkyUMMZ42dgLUA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634890173; a=rsa-sha256; cv=none; b=lWJ2ZqM2asFblJV6ftLuAQZyuCsET24g49K5VnkmOZ1GOVgiP6OeU6IwtMJsBbHvBqWCMm JrBL3RINhQFOmBcN2/leIk9yoakvfmRVtzsbqDLdbfUrE3Q7/g+CoM8EvWCW56IEprYcck yXyk2dAQqG8llejIAnHCGWU6b/IUlTUfaYPHnbE+a1SSl/BllcmfUhvpjm88xK+SOqo3jV P8gh5jHDLpOnLW5bIx+c/2MF5cRJ059tP/sgwbrYDZJaoc8eMoRNh8mFVdb9NLmPm0xJ4I 4JxNZm7elli4Va74SVDTHaohokcJ1wvc5yq5ALyGzMgrjmH/OvojcUlI1j5Vaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=qFCyMkv+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=qFCyMkv+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: B63BB29ABD X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: XgdDhJf5yZ7c --0000000000000c5c7c05ceec861c Content-Type: text/plain; charset="UTF-8" > > !Changing the last line to (substring pcomplete-stub 1 -2) fixes it in my > example. I don't know if one is supposed to do [[*prefix]] or > [[*prefix as is implied by the code, but better to support both, > specially considering electric pairs, don't you think? > Indeed, the right limit should be the position of the point. --0000000000000c5c7c05ceec861c Content-Type: text/html; charset="UTF-8"
!Changing the last line to (substring pcomplete-stub 1 -2) fixes it in my
example. I don't know if one is supposed to do [[*prefix<c-a-p>]] or
[[*prefix<c-a-p> as is implied by the code, but better to support both,
specially considering electric pairs, don't you think?

Indeed, the right limit should be the position of the point.
--0000000000000c5c7c05ceec861c--