emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] fix bug: org-ascii--unique-links don't call org-element-map with correct number of arguments
@ 2013-10-14 11:42 Ryo TAKAISHI
  2013-10-14 14:17 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Ryo TAKAISHI @ 2013-10-14 11:42 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Ryo TAKAISHI

* lisp/ox-ascii.el: org-ascii--unique-links call org-element-map with correct number of arguments.

---
 lisp/ox-ascii.el |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ox-ascii.el b/lisp/ox-ascii.el
index e0a3fa9..7ad0ee1 100644
--- a/lisp/ox-ascii.el
+++ b/lisp/ox-ascii.el
@@ -812,7 +812,7 @@ is a plist used as a communication channel."
 	    (or (org-export-get-parent-headline element) element))))
     ;; Get all links in HEADLINE.
     (org-element-map headline 'link
-      (lambda (l) (funcall unique-link-p l)) info nil nil t)))
+      (lambda (l) (funcall unique-link-p l)) info nil t)))
 
 (defun org-ascii--describe-links (links width info)
   "Return a string describing a list of links.
-- 
1.7.9.6 (Apple Git-31.1)

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

* Re: [PATCH] fix bug: org-ascii--unique-links don't call org-element-map with correct number of arguments
  2013-10-14 11:42 [PATCH] fix bug: org-ascii--unique-links don't call org-element-map with correct number of arguments Ryo TAKAISHI
@ 2013-10-14 14:17 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2013-10-14 14:17 UTC (permalink / raw)
  To: Ryo TAKAISHI; +Cc: emacs-orgmode

Hello,

Ryo TAKAISHI <ryo.takaishi.0@gmail.com> writes:

> * lisp/ox-ascii.el: org-ascii--unique-links call org-element-map with correct number of arguments.
>
> ---
>  lisp/ox-ascii.el |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lisp/ox-ascii.el b/lisp/ox-ascii.el
> index e0a3fa9..7ad0ee1 100644
> --- a/lisp/ox-ascii.el
> +++ b/lisp/ox-ascii.el
> @@ -812,7 +812,7 @@ is a plist used as a communication channel."
>  	    (or (org-export-get-parent-headline element) element))))
>      ;; Get all links in HEADLINE.
>      (org-element-map headline 'link
> -      (lambda (l) (funcall unique-link-p l)) info nil nil t)))
> +      (lambda (l) (funcall unique-link-p l)) info nil t)))

I'm not sure to understand your patch. `org-element-map' signature is:

(org-element-map DATA TYPES FUN &optional INFO FIRST-MATCH NO-RECURSION WITH-AFFILIATED)

so the line you're removing seems correct.


Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2013-10-14 14:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-14 11:42 [PATCH] fix bug: org-ascii--unique-links don't call org-element-map with correct number of arguments Ryo TAKAISHI
2013-10-14 14:17 ` 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).