From 5e950a9e562871f3f33b02c179c160c36ae61ed3 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 22 Mar 2012 18:26:34 +0100 Subject: [PATCH] org-element: Remove an unused argument * contrib/lisp/org-element.el (org-element-parse-secondary-string): Remove unused optional argument. --- contrib/lisp/org-element.el | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/contrib/lisp/org-element.el b/contrib/lisp/org-element.el index 3cc5c9842..9e1143056 100644 --- a/contrib/lisp/org-element.el +++ b/contrib/lisp/org-element.el @@ -2972,17 +2972,11 @@ Assume buffer is in Org mode." ;; belongs to a section. 'section nil granularity visible-only nil)))) -(defun org-element-parse-secondary-string (string restriction &optional buffer) +(defun org-element-parse-secondary-string (string restriction) "Recursively parse objects in STRING and return structure. RESTRICTION, when non-nil, is a symbol limiting the object types -that will be looked after. - -Optional argument BUFFER indicates the buffer from where the -secondary string was extracted. It is used to determine where to -get extraneous information for an object \(i.e. when resolving -a link or looking for a footnote definition\). It defaults to -the current buffer." +that will be looked after." (with-temp-buffer (insert string) (org-element-parse-objects (point-min) (point-max) nil restriction)))