Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symbol’s function definition is void: buttonize #1

Open
mirkov opened this issue Jul 16, 2023 · 6 comments
Open

Symbol’s function definition is void: buttonize #1

mirkov opened this issue Jul 16, 2023 · 6 comments

Comments

@mirkov
Copy link

mirkov commented Jul 16, 2023

Hello,

This is on a Mac &. Spacemacs. I load the .el file using "load-file". (that may be a mistake on my part. I will try with use-package as per the documentation)

I get this error when I set a lisp file buffer mode to jpt-apl-mode:

Symbol’s function definition is void: buttonize

I tried setting jpt-apl-use-header to nil, but that did not help.

As matter of fact, I don't see where jpt-apl-use-header is used in the code.

Thanks,

Mirko

@jthing
Copy link
Owner

jthing commented Jul 16, 2023

(customize-set-variable 'jpt-apl-use-header nil) should now turn off the header bar without disabeling the keyboard cords.
Not sure why buttonize is not working in your config, but I am looking into it.

@mirkov
Copy link
Author

mirkov commented Jul 16, 2023 via email

@mirkov
Copy link
Author

mirkov commented Jul 16, 2023

I am reasonably certain that I am loading the package correctly. I now load it with use-package like so:

(use-package jpt-apl-mode :load-path "~/.emacs.d/private/apl-mode")

Therefore, I now suspect that the missing buttonize is not due to package not being loaded properly.

I did not yet pull your changes to jpt-apl-use-header. Will do it later.

@jthing
Copy link
Owner

jthing commented Jul 17, 2023

buttonize is in ./emacs//lisp/button.el and part of the lisp library. Which version of emacs are you using? Seems to have been introduced in emacs 28.

@mirkov
Copy link
Author

mirkov commented Jul 17, 2023

My emacs is

GNU Emacs 28.2 (build 1, aarch64-apple-darwin21.1.0, NS appkit-2113.00 Version 12.0.1 (Build 21A559)) of 2022-09-12

My Emacs It has the file button.el. Searching for buttonize I only find button-buttonize:

(defun button-buttonize (string callback &optional data)
  "Make STRING into a button and return it.
When clicked, CALLBACK will be called with the DATA as the
function argument.  If DATA isn't present (or is nil), the button
itself will be used instead as the function argument."
  (propertize string
              'face 'button
              'button t
              'follow-link t
              'category t
              'button-data data
              'keymap button-map
              'action callback))

I just pulled your commit. Just as FYI, I can insert APL's characters. I have not been able to toggle the header line on and off (it is off, despite jpt-apl-use-header being nil). I will play with that later.

@mirkov
Copy link
Author

mirkov commented Jul 18, 2023

I replaced buttonize with button-buttonize, just to see what would happen. I then evaluated the function.

I then called jpl-insert-header. I got a next error:

(void-function string-split)

My Emacs has split-string.

I am wondering if you have some additional packages installed when you are developing in Elisp. Or, vice versa, that my distribution is somehow different.

I am running this on a Mac. I will try tomorrow on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants