From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Strey Subject: [PATCH] org.el: Fix bug from switch to lexical binding Date: Fri, 08 Apr 2016 14:47:06 +0200 Message-ID: <8737qwi7xx.fsf@strey.biz> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoVoi-00065Q-Tm for emacs-orgmode@gnu.org; Fri, 08 Apr 2016 08:47:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoVof-0000NH-Ir for emacs-orgmode@gnu.org; Fri, 08 Apr 2016 08:47:16 -0400 Received: from mx1.supremebox.com ([198.23.53.39]:45493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoVof-0000N1-CG for emacs-orgmode@gnu.org; Fri, 08 Apr 2016 08:47:13 -0400 Received: from [93.132.179.75] (helo=localhost) by mx1.supremebox.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1aoVoa-0005o3-Hi for emacs-orgmode@gnu.org; Fri, 08 Apr 2016 12:47:09 +0000 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" To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Please check carefully before applying! I do not understand what I have done here but it worked for me without side effects. -- Michael Strey _ mailto:mstrey@strey.biz http://www.strey.biz * https://twitter.com/michaelstrey --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-org.el-Fix-bug-from-switch-to-lexical-binding.patch Content-Description: Patch >From b76d6ef5975e1ba0b5ad4317246e1084d43ff446 Mon Sep 17 00:00:00 2001 From: Michael Strey Date: Fri, 8 Apr 2016 14:03:30 +0200 Subject: [PATCH] org.el: Fix bug from switch to lexical binding * lisp/org.el (org-check-dates-range): Fix a bug introduces with the switch to lexical binding in commit 1f49e9fdfd8b527377b5592bd65ad3be6abb9e6a. This change fixed the following bug: C-c \ D leads to error message "Symbol's value as variable is void: start-date". TINYCHANGE --- lisp/org.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 4f60c7f..b6d1c2d 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -17489,12 +17489,12 @@ both scheduled and deadline timestamps." (let ((case-fold-search nil) (regexp (org-re-timestamp org-ts-type)) (callback - `(lambda () + (lambda () (let ((match (match-string 1))) (and - ,(if (memq org-ts-type '(active inactive all)) - '(eq (org-element-type (org-element-context)) 'timestamp) - '(org-at-planning-p)) + (if (memq org-ts-type '(active inactive all)) + (eq (org-element-type (org-element-context)) 'timestamp) + (org-at-planning-p)) (not (time-less-p (org-time-string-to-time match) (org-time-string-to-time start-date))) -- 2.7.3 --=-=-=--