From: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
To: Ihor Radchenko <yantar92@posteo.net>,
Psionic K <psionik@positron.solutions>
Cc: emacs-orgmode@gnu.org
Subject: Re: Completions Registry
Date: Thu, 26 Dec 2024 10:25:23 -0800 [thread overview]
Message-ID: <8734ianvxo.fsf@gmail.com> (raw)
In-Reply-To: <87v7v7zyn7.fsf@localhost>
>> Not just a problem for dslide but for org in general, any time a
>> package adds keys to configure blocks or properties, these do not
>> complete except through dabbrev etc.
>> ...
>
> I am sorry, but it is not clear for me from your email what concrete
> improvement you want to see.
>
> There are indeed sub-optimal historical decisions that could be improved
> in the hindsight, but we are not going to remove the existing conventions.
Maybe we can use this as a jump-off point to decide on a convention for
libraries to supply keyword/special-property/babel-header-args
documentation via Elisp? i.e. a Completions Registry.
As discussed in the last Org meetup, I would like to write a CAPF that
provides completions and annotations when typing in keywords provided by
(loaded) Org libraries. The annotations providing inline documentation
require this information to be available in the Elisp file.
My understanding is that babel header-args are available in defvars like
(defvar org-babel-header-args:sqlite
'((db . :any)
(header . :any)
(echo . :any)
(bail . :any)
(csv . :any)
(column . :any)
(html . :any)
(line . :any)
(list . :any)
(separator . :any)
(nullvalue . :any)
(readonly-p . ((yes no))))
"Sqlite specific header args.")
and that the documentation for these cannot be included in the same
variable as the cons-cell structure and the :any symbols have special
meanings.
Karthik
next prev parent reply other threads:[~2024-12-26 18:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-12 3:15 Completions Registry Psionic K
2024-12-25 13:21 ` Ihor Radchenko
2024-12-25 13:50 ` Psionic K
2024-12-25 14:05 ` Ihor Radchenko
2024-12-26 18:25 ` Karthik Chikmagalur [this message]
2024-12-27 17:17 ` [TASK] Rewriting org-pcomplete into capf backend (was: Completions Registry) Ihor Radchenko
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
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=8734ianvxo.fsf@gmail.com \
--to=karthikchikmagalur@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=psionik@positron.solutions \
--cc=yantar92@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).