From: Ihor Radchenko <yantar92@posteo.net>
To: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Cc: Psionic K <psionik@positron.solutions>, emacs-orgmode@gnu.org
Subject: [TASK] Rewriting org-pcomplete into capf backend (was: Completions Registry)
Date: Fri, 27 Dec 2024 17:17:05 +0000 [thread overview]
Message-ID: <87bjwx59m6.fsf@localhost> (raw)
In-Reply-To: <8734ianvxo.fsf@gmail.com>
Karthik Chikmagalur <karthikchikmagalur@gmail.com> writes:
> 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)
> ...
> "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.
Yup.
We may simply define a new special variable like,
(defvar org-babel-header-arg-docs:sqlite
'((db "...."
(header "....")
...))
"Description of sqlite-specific header arguments.")
and global
(defvar org-babel-header-args-docs ...)
As I said during the meetup, this design is (hopefully) temporary.
Sooner or later, I hope to switch things to ox.el-like backend
definition like `org-export-define-backend'. But that may or may not
happen, so we should not wait for it.
It would also be nice to add documentation for export options, just
like for header arguments. That documentation could also be used in the
completion. (for #+EXPORT_KEYWORD and #+OPTIONS: foo:val)
--
Ihor Radchenko // yantar92,
Org mode maintainer,
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>
next prev parent reply other threads:[~2024-12-27 17:16 UTC|newest]
Thread overview: 7+ 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
2024-12-27 17:17 ` Ihor Radchenko [this message]
2024-12-28 3:55 ` [TASK] Rewriting org-pcomplete into capf backend (was: Completions Registry) Karthik Chikmagalur
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bjwx59m6.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=karthikchikmagalur@gmail.com \
--cc=psionik@positron.solutions \
/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 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.