Timeline for How can I get the effect of buffer-local symbol plist property values?
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 6, 2020 at 8:30 | comment | added | Lassi | I am humbled by the level of elisp wizardry elicited by this question. Your discussion makes for very interesting reading. Thank you for having it. | |
Apr 6, 2020 at 8:28 | vote | accept | Lassi | ||
Apr 5, 2020 at 11:00 | comment | added | Basil | I was thinking of the latter :) You're right that uninterned symbols would be simpler and more idiomatic, but each of those symbols would have to be stored somewhere (which could be consolidated in a new obarray), and the question is about something inherently non-idiomatic. | |
Apr 5, 2020 at 10:43 | comment | added | phils |
If you mean making C-h v obarray itself buffer-local, I can imagine that doing the trick, but at the same time being a catastrophically bad idea :) An interesting idea, though. If you just mean passing the obarray argument to intern , that's clearly safer, but likely requires more of the code to be aware of the requirement, and in practice I would think that using uninterned symbols would be a better option in those cases.
|
|
Apr 5, 2020 at 9:20 | comment | added | Basil | One way to emulate buffer-local symbols is by interning them in a new obarray that is stored buffer-locally. | |
Apr 5, 2020 at 8:23 | history | edited | phils | CC BY-SA 4.0 |
added 184 characters in body
|
Apr 5, 2020 at 8:14 | history | edited | phils | CC BY-SA 4.0 |
added 184 characters in body
|
Apr 5, 2020 at 8:07 | history | answered | phils | CC BY-SA 4.0 |