-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
Export lem-base::*current-buffer*? #1152
Comments
I believe that active use of dynamic scopes should be avoided except in a few cases, such as testing. |
I agree with you from language design view point, that one should pass buffer as argument (conveniently packaged in point objects) in favor of The concrete use case is that I'm writing a compatibility layer to run Emacs Lisp directly on lem. I have got surprisingly far! Lem design seems to follow very closely to that of Emacs. (I'm not familiar with the design process of lem, is this intended?) I've ported quite a few Emacs functions relying on |
I see. |
Export with-current-buffer and with-buffer-point, close #1152
What is the current way to temporarily change
(current-buffer)
(likewith-current-buffer
in Emacs)? Although setter tocurrent-buffer
is exported, implementingwith-current-buffer
using the setter is not thread-safe. The best way seems to be just bind*current-buffer*
, however currently it is internal tolem-base
which suggest it is only used for internal implementation. Can we export this symbol instead?The text was updated successfully, but these errors were encountered: