* [BUG] completion-at-point for [[* only works at end of line [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)]
@ 2022-03-26 10:32 Ignacio Casso
2022-03-26 13:14 ` Ihor Radchenko
0 siblings, 1 reply; 3+ messages in thread
From: Ignacio Casso @ 2022-03-26 10:32 UTC (permalink / raw)
To: emacs-orgmode
Hello,
The manual says in https://orgmode.org/manual/Internal-Links.html#DOCF25
(footnote 25), that in-buffer completion can be used to insert links
targeting a headline in current buffer. So a user can type [[* and C-M-i
and all headlines in the buffer are offered for completion.
However, that only works if [[* is the last thing in the line. If there
is something after point in that line, it fails with the following message:
cl--assertion-failed: Assertion failed: (<= start (point)), #<marker at
243 in foo.org>, 242
Or if there are only whitespaces after point, with the following message
instead:
pcomplete-completions: Args out of range: "", 1, nil.
Regards,
--Ignacio
Emacs : GNU Emacs 29.0.50 (build 18, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)
of 2022-03-26
Package: Org mode version 9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] completion-at-point for [[* only works at end of line [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)]
2022-03-26 10:32 [BUG] completion-at-point for [[* only works at end of line [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)] Ignacio Casso
@ 2022-03-26 13:14 ` Ihor Radchenko
2024-01-07 15:51 ` Ihor Radchenko
0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2022-03-26 13:14 UTC (permalink / raw)
To: Ignacio Casso; +Cc: emacs-orgmode
Ignacio Casso <ignaciocasso@hotmail.com> writes:
> Hello,
>
> The manual says in https://orgmode.org/manual/Internal-Links.html#DOCF25
> (footnote 25), that in-buffer completion can be used to insert links
> targeting a headline in current buffer. So a user can type [[* and C-M-i
> and all headlines in the buffer are offered for completion.
>
> However, that only works if [[* is the last thing in the line. If there
> is something after point in that line, it fails with the following message:
>
> cl--assertion-failed: Assertion failed: (<= start (point)), #<marker at
> 243 in foo.org>, 242
Confirmed.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] completion-at-point for [[* only works at end of line [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)]
2022-03-26 13:14 ` Ihor Radchenko
@ 2024-01-07 15:51 ` Ihor Radchenko
0 siblings, 0 replies; 3+ messages in thread
From: Ihor Radchenko @ 2024-01-07 15:51 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: Ignacio Casso, emacs-orgmode
Ihor Radchenko <yantar92@gmail.com> writes:
>> However, that only works if [[* is the last thing in the line. If there
>> is something after point in that line, it fails with the following message:
>>
>> cl--assertion-failed: Assertion failed: (<= start (point)), #<marker at
>> 243 in foo.org>, 242
>
> Confirmed.
Fixed, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=97951352b
--
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>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-01-07 15:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-26 10:32 [BUG] completion-at-point for [[* only works at end of line [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)] Ignacio Casso
2022-03-26 13:14 ` Ihor Radchenko
2024-01-07 15:51 ` Ihor Radchenko
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.