From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cKziLYVatGHl/gAAgWs5BA (envelope-from ) for ; Sat, 11 Dec 2021 09:00:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cJKrKYVatGH/VwAA1q6Kng (envelope-from ) for ; Sat, 11 Dec 2021 08:00:05 +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 457C42B2E6 for ; Sat, 11 Dec 2021 09:00:05 +0100 (CET) Received: from localhost ([::1]:35896 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvxIY-0004mY-SP for larch@yhetil.org; Sat, 11 Dec 2021 03:00:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvxI6-0004mB-0l for emacs-orgmode@gnu.org; Sat, 11 Dec 2021 02:59:34 -0500 Received: from [2607:f8b0:4864:20::1030] (port=43574 helo=mail-pj1-x1030.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mvxI4-00030v-Cn for emacs-orgmode@gnu.org; Sat, 11 Dec 2021 02:59:33 -0500 Received: by mail-pj1-x1030.google.com with SMTP id nh10-20020a17090b364a00b001a69adad5ebso9373736pjb.2 for ; Fri, 10 Dec 2021 23:59:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=uywZY8RUF7Lsqk7Hvd9+42XDkcY3T+zH8if4qLBRsjM=; b=K3SFmtr78KVvMX+zz2nTULq1qMwdURWWgs/JlV9nzRYZfUSLlyW1nNYFKdcELKUoea OhZ/4liDYQ04MDShGuySlVbclag/hZyHvFAsrqhtT/5ByrM7IiU5BeIbSnCPJq3m6qDy wYzuyh/gIE8YpGqXKURN92YmAyGGk+aaeJeuylCCP33/MzpULTzF3PCfXpVWeOVBDD6k 58hyxFCXDnk3yDsmEKSDM4qwz0XSZaln/RO+AppoeOCdVKeWhUwwxSR22CrKcIcmC7AA 1EpbevSTfM7fHld7fOwxipjO9t2qx3QlzR8GJoWZS5dR1adAdLuB+cDKvlxu7U8Y9As/ dMZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=uywZY8RUF7Lsqk7Hvd9+42XDkcY3T+zH8if4qLBRsjM=; b=XI5TOxU1dNUELQE+BhyRDmmxweqABfJ34aKBuCR6/IOUnW7wGpffapLlwlaOSOroCq T40l6HuVN2tdoDIX3LE7UFy4ljxmoikv1sasgAyH036z1ruciYrhu7BXZI+QLHeBmr9W QIlzcLcaZxsgsRNz2RZ/8ofn92R4aIwJ76ikacceheKmQari/s8cuwXKieF1O5vStx37 ODlU2AhIx19sYm2UPhwfC8i5gGrQclwomglP5vF++waXxO+6nA6xxefh1rYD8+QhZZfU w7D/QeaL/kTc1VkXRT+nHOebyCDXBogbGluaBbYfoO4M5SM0WP5RugpZplZp71zb9FQP o5IA== X-Gm-Message-State: AOAM531ci7ArY8qphoNtug2EsaJwrddBd/M8DqoLpqcilwJpJtuOJemN eEIPJ/gJKOoqWgR1iMoVnlU= X-Google-Smtp-Source: ABdhPJz4uaySpDjZdEUQAkLuuCIxNlMZmZggiWQYghaTW4r1SYmXCjm6akkbiOAlP+ZpxZ4IVfzDyg== X-Received: by 2002:a17:90b:3b8d:: with SMTP id pc13mr29121122pjb.112.1639209571126; Fri, 10 Dec 2021 23:59:31 -0800 (PST) Received: from localhost ([103.125.234.111]) by smtp.gmail.com with ESMTPSA id k18sm6320565pfc.155.2021.12.10.23.59.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 23:59:30 -0800 (PST) From: Ihor Radchenko To: Carlos Pita Subject: Re: [BUG] "args out of range" on link heading completion [9.5 (9.5-gd361c7 @ /Users/carlos/.emacs.d/straight/build/org/)] In-Reply-To: References: <913858.1634788206@apollo2.minshall.org> <87r1cfvvd0.fsf@localhost> Date: Sat, 11 Dec 2021 16:00:53 +0800 Message-ID: <87lf0rin9m.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1030 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1030.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , 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=1639209605; 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=uywZY8RUF7Lsqk7Hvd9+42XDkcY3T+zH8if4qLBRsjM=; b=M80UqmII+zH7JqKM6dwT9rPEnZaoS3wNEot9oMBhib3isnO7wiSrl/3gc9rl97Tr0dCI7s oqS0+y2T/j8dJLjUO1JGHiKgnvHoJhVo9JJxcaGUutfWL3VBoYq13dZQR+ywhZ0xigh0/9 rPz+2WTOsne29Txcsb9URcSqA3Q00WMc8SOuozu9CZiven9NKWvIM7wS6GAyL33v0HFzlD uqUoTkv1MVHMGLwNsoz9BJv+l+0y5QO6I76wKQff0Zhn1QdF2RcdaG19bGKNKkOtT1EhHm nJ/CmLkCJaspXTHili0JVmVbJWWQKs6T5yVlx4iBC0jtiPI+zU7su+1YBDn8gQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639209605; a=rsa-sha256; cv=none; b=nG+jMo1/P2sARWIPWL64zWz08VMjcMuANG/TLKzj94hGksZbI+GpaGf5c5VPJ/A4wev8B/ caVJsqZsIQD+ZE9jyXMJ24kaTu/WWRZgG1dLmJVFkt/g1r1VzN0zEatzDA/mWPsqFKIcyv HseDKHJEfahLsy1u0zkMK7NbkYADL58IOGYeMrJngTZI1N76TtpjYwOzkNxp+lUCOKO+7N u6dtSOkaPrbbFchAajS1vj8e7fNuEUnPxrW7SqafxKEDGfTlaJTWe17ySXuHEP9VjD/bMj 5O7DkG6l5PGvohu2ILrl90q8r7a+BGN9zRHXDELnHQuIMRz/YR1Vi0wwUoJX3Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=K3SFmtr7; dmarc=pass (policy=none) header.from=gmail.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: -3.66 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=K3SFmtr7; dmarc=pass (policy=none) header.from=gmail.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: 457C42B2E6 X-Spam-Score: -3.66 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6FVC85I+vBa1 Carlos Pita writes: > Hi Igor, > > I believe the problem is in: > > (defun pcomplete/org-mode/searchhead () > ... > ;; When completing a bracketed link, i.e., "[[*", argument > ;; starts at the star, so remove this character. > (substring pcomplete-stub 1)))) <-- trailing ]] not removed! > > 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? I agree that the error is thrown there. However, there is nothing wrong in the pcomplete/org-mode/searchhead. It is pcomplete that is passing something strange to our completion backend. Maybe you can try to send it as Emacs bug? Best, Ihor