Hi,
We have a lot of org-table specific functions bound in org-mode-map whether or not the point is actually in an org table.
Reference[1].
Is there a specific reason to have those bindings available globally in an org mode buffer?
To prevent that, I have come up with this[2].
The idea is to use context-aware key mapping[3]. Also the info node: "(elisp) Extended Menu Items".
Here is what binding "C-c SPC" looks like when using the bind-keys macro from bind-key.el[4].
(bind-keys
:map org-mode-map
:filter (org-at-table-p)
("C-c SPC" . org-table-blank-field))
Below is the same without bind-key.el dependency:
(define-key org-mode-map (kbd "C-c SPC")
'(menu-item "" nil :filter
(lambda (&optional _)
(when (org-at-table-p)
'org-table-blank-field))))