From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Beck Subject: [BUG] org-table-beginning/end-of-field Date: Mon, 08 Sep 2014 07:37:55 +0200 Message-ID: <87mwaaekp8.fsf@sophokles.streitblatt.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36436) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQrec-0003L3-35 for emacs-orgmode@gnu.org; Mon, 08 Sep 2014 01:38:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XQreV-0008Ex-Qn for emacs-orgmode@gnu.org; Mon, 08 Sep 2014 01:38:18 -0400 Received: from plane.gmane.org ([80.91.229.3]:52455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQreV-0008Et-K5 for emacs-orgmode@gnu.org; Mon, 08 Sep 2014 01:38:11 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XQreU-0007ne-8j for emacs-orgmode@gnu.org; Mon, 08 Sep 2014 07:38:10 +0200 Received: from ip-109-43-136-220.web.vodafone.de ([109.43.136.220]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Sep 2014 07:38:10 +0200 Received: from fb by ip-109-43-136-220.web.vodafone.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Sep 2014 07:38:10 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hi, The argument of `org-table-beginning-of-field' and `org-table-end-of-field' is in fact not optional. -- Florian Beck --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Remove-optional-argument-spec.patch >From d1d12380a1c260bef7a2137831434614f7d9ec1f Mon Sep 17 00:00:00 2001 From: Florian Beck Date: Mon, 8 Sep 2014 07:34:56 +0200 Subject: [PATCH] Remove &optional argument spec * lisp/org-table.el (org-table-beginning-of-field): fix argument (org-table-end-of-field): fix argument --- 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 547f933..a17e95a 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -1061,7 +1061,7 @@ Before doing so, re-align the table if necessary." (if (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 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." @@ -1076,7 +1076,7 @@ With numeric argument N, move N-1 fields forward first." (and (looking-at " ") (forward-char 1))) (if (>= (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 beginning of the current table field. If already at or before the beginning, move to the beginning of the previous field. -- 1.9.1 --=-=-=--