emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carlos Pita <carlosjosepita2@gmail.com>
To: Ihor Radchenko <yantar92@gmail.com>
Cc: Greg Minshall <minshall@umich.edu>, emacs-orgmode@gnu.org
Subject: Re: [BUG] "args out of range" on link heading completion [9.5 (9.5-gd361c7 @ /Users/carlos/.emacs.d/straight/build/org/)]
Date: Fri, 22 Oct 2021 01:14:26 -0300	[thread overview]
Message-ID: <m2wnm566hp.fsf@gmail.com> (raw)
In-Reply-To: <87r1cfvvd0.fsf@localhost> (Ihor Radchenko's message of "Thu, 21 Oct 2021 12:45:47 +0800")

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<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?

Best regards,

  reply	other threads:[~2021-10-22  4:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-20 23:09 [BUG] "args out of range" on link heading completion [9.5 (9.5-gd361c7 @ /Users/carlos/.emacs.d/straight/build/org/)] Carlos Pita
2021-10-21  3:50 ` Greg Minshall
2021-10-21  4:07   ` Carlos Pita
2021-10-21  4:45     ` Ihor Radchenko
2021-10-22  4:14       ` Carlos Pita [this message]
2021-10-22  8:08         ` Carlos Pita
2021-12-11  8:00         ` Ihor Radchenko
2022-10-07  7:52         ` Ihor Radchenko
2021-10-21 15:22     ` Greg Minshall
  -- strict thread matches above, loose matches on Subject: below --
2021-10-20  8:36 Carlos Pita

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2wnm566hp.fsf@gmail.com \
    --to=carlosjosepita2@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=minshall@umich.edu \
    --cc=yantar92@gmail.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).