jcfk / org-sliced-images

Smoother scrolling with sliced images in org-mode
MIT License
22 stars 2 forks source link

Symbol's function definition is void: org-element--property #3

Open Ypot opened 8 months ago

Ypot commented 8 months ago

Hi

I have installed and tried it, but I receive these messages:

org-display-inline-images: Symbol’s function definition is void: org-element--property org-sliced-images-display-inline-images: Symbol’s function definition is void: org-element--property

OS: Windows 10 GNU Emacs 29.2 (build 2, x86_64-w64-mingw32) of 2024-01-18 Org mode version 9.6.15

jcfk commented 8 months ago

That's weird. Can you do toggle-debug-on-error and try again and provide the output? Thanks.

Ypot commented 8 months ago

Of course:

Debugger entered--Lisp error: (void-function org-element--property) org-element--property(:type (link (:type "attachment" :path "UNED_2015_PsicologiaAprendizaje-Thorndike-Caja-pro..." :format bracket :raw-link "attachment:UNED_2015_PsicologiaAprendizaje-Thorndi..." :application nil :search-option nil :begin 1921188 :end 1921267 :contents-begin nil :contents-end nil :post-blank 0 :parent (paragraph (:begin 1920432 :end 1921329 :contents-begin 1920432 :contents-end 1921327 :post-blank 2 :post-affiliated 1920432 :mode nil :granularity element :cached t :parent (section (:begin 1918475 :end 2419879 :contents-begin 1918475 :contents-end 2419879 :robust-begin 1918475 :robust-end 2419877 :post-blank 0 :post-affiliated 1918475 :mode section :granularity element :cached t :parent (headline ...) :org-element--cache-sync-key (97 . 1918474))) :org-element--cache-sync-key (97 . 1920399))))) nil nil) org-sliced-images-display-inline-images(nil) funcall-interactively(org-sliced-images-display-inline-images nil) command-execute(org-sliced-images-display-inline-images record) execute-extended-command(nil "org-sliced-images-display-inline-images" nil) funcall-interactively(execute-extended-command nil "org-sliced-images-display-inline-images" nil) command-execute(execute-extended-command)

jcfk commented 7 months ago

This seems to be a version issue. There are going to be changes in an upcoming org-mode (9.7?) such that org-element-property is now an inline function that calls org-element--property, and this latter does not exist in older versions of org, such as yours.

It appears that your version of org-sliced-images was built against the more advanced version of org. How did you install the package?