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

buffer-string obsolete #24

Open
EdHamilton9 opened this issue Mar 29, 2023 · 0 comments
Open

buffer-string obsolete #24

EdHamilton9 opened this issue Mar 29, 2023 · 0 comments

Comments

@EdHamilton9
Copy link

Hi. Thank you for the nice package. It works well and does what I need.
I am posting this as an issue, not a pull request, because I am very new to emacs - 1 month or so. Also I do not write code and have never submitted a pull request.

I am using emacs 30.0.50.

mw-thesaurus.el will run if I load it into a buffer and evaluate the buffer.
It will not compile. The error message is mw-thesaurus.el:178:20: Warning: ‘buffer-string’ is an obsolete
generalized variable.
I Googled a few things and found this page:
https://github.com/emacs-mirror/emacs/blob/master/lisp/emacs-lisp/gv.el
lines 657 to 659 seem to say that the replacement is 'erase-buffer'.
It looks like the change happened in version 29.1

I replaced the code on your line 178 with (erase-buffer) and the package compiled and ran.

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

1 participant