From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mikael Fornius Subject: [PATCH] org-table: reference to free variable `line' Date: Thu, 25 Mar 2010 12:20:22 +0100 Message-ID: <87d3ysd4w9.fsf@eee.lan> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nul2u-0002RX-Cz for emacs-orgmode@gnu.org; Thu, 25 Mar 2010 07:16:16 -0400 Received: from [140.186.70.92] (port=39258 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nul2s-0002RP-Td for emacs-orgmode@gnu.org; Thu, 25 Mar 2010 07:16:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nul2p-0004ov-PW for emacs-orgmode@gnu.org; Thu, 25 Mar 2010 07:16:14 -0400 Received: from violet.abc.se ([62.80.200.155]:32944) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nul2p-0004ob-G5 for emacs-orgmode@gnu.org; Thu, 25 Mar 2010 07:16:11 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= As I compiled org-mode today I noticed a free variable and I think this change fixes it. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=org-table-free-variable-line.patch Content-Description: org-table-free-variable diff --git a/lisp/org-table.el b/lisp/org-table.el index 670edcb..9614608 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -1043,8 +1043,8 @@ Return t when the line exists, nil if it does not exist." (goto-char (org-table-begin)) (let ((end (org-table-end)) (cnt 0)) (while (and (re-search-forward org-table-dataline-regexp end t) - (< (setq cnt (1+ cnt)) line))) - (= cnt line))) + (< (setq cnt (1+ cnt)) N))) + (= cnt N))) (defun org-table-blank-field () "Blank the current table field or active region." --=-=-= -- Mikael Fornius --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--