emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [org-element, FR] make secondary-string midnight compatible
@ 2015-03-20 23:41 Rasmus
  2015-03-21  8:45 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Rasmus @ 2015-03-20 23:41 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-21  8:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-20 23:41 [org-element, FR] make secondary-string midnight compatible Rasmus
2015-03-21  8:45 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).