1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-12-17 09:55:55 +00:00

Make `org-table-current-column' an interactive command

* lisp/org-table.el (org-table-current-column): Add interactive to turn
this into a command.
This commit is contained in:
Carsten Dominik 2010-09-30 08:29:37 +02:00
parent 3b1c72ae9f
commit ae6d203a4b

View File

@ -1151,11 +1151,14 @@ is always the old value."
(defun org-table-current-column ()
"Find out which column we are in."
(interactive)
(if (interactive-p) (org-table-check-inside-data-field))
(save-excursion
(let ((cnt 0) (pos (point)))
(beginning-of-line 1)
(while (search-forward "|" pos t)
(setq cnt (1+ cnt)))
(if (interactive-p) (message "In table column %d" cnt))
cnt)))
(defun org-table-current-dline ()