emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] "args out of range" on link heading completion [9.5 (9.5-gd361


From: 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/)]
Date: Fri, 22 Oct 2021 01:14:26 -0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (darwin)

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,
Carlos



reply via email to

[Prev in Thread] Current Thread [Next in Thread]