r/emacs • • 19h ago

Question Is auto completion a real security risk?

21 Upvotes

Completion menu on point in buffer showing automatically on typing e.g. functions is useful because it usually saves a lot keystrokes (not just completing the function name but even just triggering it with e.g. TAB key). There's a warning to enable this on corfu:

Auto completion is disabled by default for safety and unobtrusiveness. Note that completion can be vulnerable to arbitrary code execution. Auto completion can be enabled by setting corfu-auto to t. Only enable auto completion locally in trusted buffers or globally if you edit trusted files only.

That warning is repeated in this post which also mentions performance concerns using the setting.

Is the security (and to a lesser extent performance) concern a practical risk or is the warning just conservative? Does typical Emacs usage involve added risk when enabling this? I feel like if one uses any third-party packages (practically every user) all of these risks already exist in general unless they are reading all the source code. Could one still use this feature reasonably safely e.g. with tips to harden it?

Coming from Neovim, I've never heard of any these risks associated with auto completion enabled--not sure how they implement it or maybe these same risks are implied and/or reasonably acceptable?


r/emacs • • 6h ago

I think I will get back to Emacs more often like before from now on

8 Upvotes

Since my last post on this subreddit, it appears obvious that I missed the heavy usage of Emacs a lot because I've noticed some repeating "if only" in my comments.

This weekend, I finally had enough and decided to build the tool I expeced to exists within Emacs instead of waiting: A node canvas for Emacs. Pretty similar to React Flow.

I called it RARY and it's public on github: https://donovan-ratefison.github.io/rary/

I've written an article too if you want to check out https://donovan-ratefison.mg/2026/11/29/Meet-Rary/

It's the foundation layer of everything that I intend to build inside Emacs later on.

I'd like to know your thought about this tool.
Is it of any use to you? What features could be interesting to have? What could be build on top of it, etc...
Feel free to put your crazy ideas

Edit: added a video


r/emacs • • 5h ago

Code reflection

2 Upvotes

Hello, i'm just an emacs user and currently an humble student, not programmer.

After some school stuff about c,java,swing,bash, something came to mind: i saw what java is doing with code reflection,hat,project babylon, why not have emacs copy the same idea and use it for other stuff but wrote in elisp to build stuff like swing does with java?(i don't know elisp personally), would it help create stuff in elisp and have them running on a gpu in opencl/sycle/cuda/opengl with async or make writing emacs gui easier and emacs the ide for it?. Probably the idea came up because i've never tried writing emacs packages and/ or gui in emacs and i just changed some stuff here and there in my config, what do you think about it?, could the same approach be used to write the parts needed all in elisp and run them in the language you need?.

With the help of ai could be done but i would like to know your opinion on this.