[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: |
Ihor Radchenko |
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, 07 Oct 2022 15:52:05 +0800 |
Carlos Pita <carlosjosepita2@gmail.com> writes:
> 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?
And finally fixed on main using a different approach.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=1a62cd94cfc92c3ce6eadb2ffc1d6a18e8caee86
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
Fixed.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [BUG] "args out of range" on link heading completion [9.5 (9.5-gd361c7 @ /Users/carlos/.emacs.d/straight/build/org/)],
Ihor Radchenko <=