Git Product home page Git Product logo

Comments (10)

Gurras avatar Gurras commented on September 4, 2024 2

Running
Aquamacs 3.3 GNU Emacs 25.1.1
and
Org mode version 9.0.9,

I was able to fix this issue (and another problem) with these edits:

(defun ott/org-tree/current-property-values-from-keys (property-keys)
  "Return list of values (possibly nil) for each property in PROPERTY-KEYS."
  (mapcar
   (lambda (key)
     (assoc-default key (org-entry-properties nil 'standard))) 
     ;WAS: (assoc-default key (org-entry-properties nil 'standard key))) 
   property-keys))

(defun ott/org-tree/heading-text ()
  "Return the text contents of the current heading (the text beneath the '* Heading' itself), or '' if there isn't one."
  (org-end-of-meta-data t) 
  ;WAS: (org-end-of-meta-data-and-drawers)
  ;; include leading empty lines
  (while (looking-back "[\n ]+\n")
    (backward-char)
    (beginning-of-line))

  (let* ((beg (point))
         (end (if (org-at-heading-p)
                  (point)
                  (save-excursion (outline-next-heading) (point))))
         )
    (buffer-substring-no-properties beg end)
    )
  )


from emacs-org-transform-tree-table.

jplindstrom avatar jplindstrom commented on September 4, 2024 2

Hi guys, sorry for being absent for so long.
I've fixed these things now, so if you're still interested please try again. It's on melpa now.
Tested with Emacs 25 and latest org mode.

from emacs-org-transform-tree-table.

Moanrisy avatar Moanrisy commented on September 4, 2024 1

@mohammadanton Is it still working for you?

If so: org- and emacs-versions?

I didn't use it anymore, I think it still working.

from emacs-org-transform-tree-table.

Gurras avatar Gurras commented on September 4, 2024 1

from emacs-org-transform-tree-table.

coyotespike avatar coyotespike commented on September 4, 2024

Apparently this message means that the function expects at least 0 and up to 2 arguments, but instead got 3 arguments.

With toggle-debug-on-error, I get:

Debugger entered--Lisp error: (wrong-number-of-arguments (0 . 2) 3)
  org-entry-properties(nil standard "ACCESS")
  #f(compiled-function (key) #<bytecode 0x16d18b1>)("ACCESS")
  mapcar(#f(compiled-function (key) #<bytecode 0x16d18b1>) ("ACCESS" "LOGIN" "COLOR" "COST" "COLUMNS"))
  ott/org-tree/current-property-values-from-keys(("ACCESS" "LOGIN" "COLOR" "COST" "COLUMNS"))
  #f(compiled-function () #<bytecode 0x3027919>)()
  org-scan-tags(#f(compiled-function () #<bytecode 0x3027919>) t nil nil)
  org-map-entries(#f(compiled-function () #<bytecode 0x3027919>) nil tree)
  ott/org-tree/map-entries(#f(compiled-function () #<bytecode 0x3027919>))
  ott/org-tree/row-col-property-values(("ACCESS" "LOGIN" "COLOR" "COST" "COLUMNS"))
  ott/org-tree/parse-rows-cols()
  org-transform-tree/csv-buffer-from-outline()
  funcall-interactively(org-transform-tree/csv-buffer-from-outline)
  call-interactively(org-transform-tree/csv-buffer-from-outline record nil)
  command-execute(org-transform-tree/csv-buffer-from-outline record)
  helm-M-x(nil #("org-transform-tree/csv-buffer-from-outline" 0 42 (match-part "org-transform-tree/csv-buffer-from-outline")))
  funcall-interactively(helm-M-x nil #("org-transform-tree/csv-buffer-from-outline" 0 42 (match-part "org-transform-tree/csv-buffer-from-outline")))
  call-interactively(helm-M-x nil nil)
  command-execute(helm-M-x)

I'm not sure what this error message tells us.

from emacs-org-transform-tree-table.

coyotespike avatar coyotespike commented on September 4, 2024

In the meantime, C-c C-x i will insert a table from column view in the same outline. So we can still export with more-or-less the same concepts.

from emacs-org-transform-tree-table.

Moanrisy avatar Moanrisy commented on September 4, 2024

Running
Aquamacs 3.3 GNU Emacs 25.1.1
and
Org mode version 9.0.9,

I was able to fix this issue (and another problem) with these edits:

(defun ott/org-tree/current-property-values-from-keys (property-keys)
  "Return list of values (possibly nil) for each property in PROPERTY-KEYS."
  (mapcar
   (lambda (key)
     (assoc-default key (org-entry-properties nil 'standard))) 
     ;WAS: (assoc-default key (org-entry-properties nil 'standard key))) 
   property-keys))

(defun ott/org-tree/heading-text ()
  "Return the text contents of the current heading (the text beneath the '* Heading' itself), or '' if there isn't one."
  (org-end-of-meta-data t) 
  ;WAS: (org-end-of-meta-data-and-drawers)
  ;; include leading empty lines
  (while (looking-back "[\n ]+\n")
    (backward-char)
    (beginning-of-line))

  (let* ((beg (point))
         (end (if (org-at-heading-p)
                  (point)
                  (save-excursion (outline-next-heading) (point))))
         )
    (buffer-substring-no-properties beg end)
    )
  )

Thanks, this is working

from emacs-org-transform-tree-table.

Jonta avatar Jonta commented on September 4, 2024

@mohammadanton Is it still working for you?

If so: org- and emacs-versions?

from emacs-org-transform-tree-table.

Jonta avatar Jonta commented on September 4, 2024

@mohammadanton Thanks for the reply. Do you recall which org- and emacs-versions this last worked with for you?

@Gurras & @jplindstrom If you're still around, I'd like your input. =)

from emacs-org-transform-tree-table.

Jonta avatar Jonta commented on September 4, 2024

Hooray!

Thank you. I already had grand plans to accelerate my elisp-learning and everything

Works in GNU Emacs 26.3, org 9.3.6

from emacs-org-transform-tree-table.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.