emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] in `org-element-table-interpreter' docstring
@ 2014-08-24 17:49 Thorsten Jolitz
  2014-08-24 19:30 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Jolitz @ 2014-08-24 17:49 UTC (permalink / raw)
  To: emacs-orgmode


Hi List, 

the docstring should rather say something like:

"CONTENTS is nil if type is 'table.el', non-nil otherwise. 

#+BEGIN_SRC emacs-lisp
(defun org-element-table-interpreter (table contents)
  "Interpret TABLE element as Org syntax.
CONTENTS is nil."
  (if (eq (org-element-property :type table) 'table.el)
      (org-remove-indentation (org-element-property :value table))
    (concat (with-temp-buffer (insert contents) [...]))))
                                      ^^^^^^^^
#+END_SRC

-- 
cheers,
Thorsten

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

* Re: [BUG] in `org-element-table-interpreter' docstring
  2014-08-24 17:49 [BUG] in `org-element-table-interpreter' docstring Thorsten Jolitz
@ 2014-08-24 19:30 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2014-08-24 19:30 UTC (permalink / raw)
  To: Thorsten Jolitz; +Cc: emacs-orgmode

Hello,

Thorsten Jolitz <tjolitz@gmail.com> writes:

> the docstring should rather say something like:
>
> "CONTENTS is nil if type is 'table.el', non-nil otherwise. 
>
> #+BEGIN_SRC emacs-lisp
> (defun org-element-table-interpreter (table contents)
>   "Interpret TABLE element as Org syntax.
> CONTENTS is nil."
>   (if (eq (org-element-property :type table) 'table.el)
>       (org-remove-indentation (org-element-property :value table))
>     (concat (with-temp-buffer (insert contents) [...]))))

Fixed. Thank you.


Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2014-08-24 19:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-24 17:49 [BUG] in `org-element-table-interpreter' docstring Thorsten Jolitz
2014-08-24 19:30 ` 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).