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

websocket-test.el: ‘flet’ is an obsolete macro (as of [emacs] 24.3) #71

Closed
sten0 opened this issue Jul 25, 2020 · 3 comments
Closed

Comments

@sten0
Copy link
Contributor

sten0 commented Jul 25, 2020

Hi,

Prioritise this however you'd like. I'm only reporting it because someday the obsolete macro may be removed.

websocket-test.el: ‘flet’ is an obsolete macro (as of 24.3); use either ‘cl-flet’ or ‘cl-letf’; use either ‘cl-flet’ or ‘cl-letf’. It seems like it work be orthogonal to converting websocket-functional-test.el and websocket-test.el to also use lexical-binding.

P.S. I'm also curious why you're using explicit dynamic binding by using defvar instead of setq. To be fair, my bias is "use lexical, whenever possible" ;-)

Thanks,
Nicholas

@ahyatt
Copy link
Owner

ahyatt commented Aug 1, 2020

Thanks for reminding me, I fixed this just now, in commit 341ec2b.

As to why I use dynamic scope with letf in the first place, it's useful for unit tests. I'm not sure which defvar you are mentioning, though.

@ahyatt ahyatt closed this as completed Aug 1, 2020
@sten0
Copy link
Contributor Author

sten0 commented Aug 14, 2020 via email

@sten0
Copy link
Contributor Author

sten0 commented Aug 16, 2020

P.S. There may also be upstream pressure to transition https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-27.1#n326 and I suspect that might be the cause of the CI regressions I've noted in various packages that use dynamic binding. We'll soon switch to Emacs 27.1 in Debian, but hopefully my worries are unfounded ;-)

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