branch: externals/org
commit e740e74136424012b18d61f23f13c716b3543a4c
Author: Ihor Radchenko <[email protected]>
Commit: Ihor Radchenko <[email protected]>
org-table-beginning-of-field, org-table-end-of-field: Fix argument list
* lisp/org-table.el (org-table-beginning-of-field):
(org-table-end-of-field): Mark argument as non-optional, to be
consistent with what the code expects.
Reported-by: Greg Minshall <[email protected]>
Link: https://orgmode.org/list/945737.1771355014@archlinux
---
lisp/org-table.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/org-table.el b/lisp/org-table.el
index ebec41f900..ba33f6724a 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -1108,7 +1108,7 @@ Before doing so, re-align the table if necessary."
(when (looking-at "| ?")
(goto-char (match-end 0))))
-(defun org-table-beginning-of-field (&optional n)
+(defun org-table-beginning-of-field (n)
"Move to the beginning of the current table field.
If already at or before the beginning, move to the beginning of the
previous field.
@@ -1124,7 +1124,7 @@ With numeric argument N, move N-1 fields backward first."
(and (looking-at " ") (forward-char 1)))
(when (>= (point) pos) (org-table-beginning-of-field 2))))
-(defun org-table-end-of-field (&optional n)
+(defun org-table-end-of-field (n)
"Move to the end of the current table field.
If already at or after the end, move to the end of the next table field.
With numeric argument N, move N-1 fields forward first."