From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: [org-element, FR] make secondary-string midnight compatible Date: Sat, 21 Mar 2015 00:41:08 +0100 Message-ID: <87r3sjxmnf.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZ6XZ-0002ws-7x for emacs-orgmode@gnu.org; Fri, 20 Mar 2015 19:41:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZ6XW-0003jJ-1t for emacs-orgmode@gnu.org; Fri, 20 Mar 2015 19:41:21 -0400 Received: from plane.gmane.org ([80.91.229.3]:35219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZ6XV-0003j4-Qy for emacs-orgmode@gnu.org; Fri, 20 Mar 2015 19:41:17 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YZ6XU-0007lF-6A for emacs-orgmode@gnu.org; Sat, 21 Mar 2015 00:41:16 +0100 Received: from 46.166.188.240 ([46.166.188.240]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Mar 2015 00:41:16 +0100 Received: from rasmus by 46.166.188.240 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Mar 2015 00:41:16 +0100 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 Hi, As is evident from the git log, I have made the following mistake at least twice: (org-element-parse-secondary-string nil restrictions) I wish this would just return nil instead of an error. In particular, in ox files you have to do (org-element-parse-secondary-string (or whatever "") restrictions) Which is a bit noisy. For me the confusion arise because (org-export-data nil info) does not throw an error. Note, I have no idea if the error behavior is needed elsewhere, so it don't know how feasible this request is or if it's heretic for that matter. —Rasmus -- The right to be left alone is a human right