Does Emacs Lisp consider functions like make-hash-table side-effect-free?
Pierre Rouleau <[email protected]> Thu, 4 Jun 2026 07:58:48 -0400
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <CALTqLiaGF-iApY7QE6twA0nfqZw+_W-t2t1u4M4PK-ZojVq4EQ@mail.gmail.com> |
Hi all, I am writing a specialized linter for my Emacs Lisp project and one of the things it attempts to do is to detect if each defun can have a declare form that identifies whether the defun is pure, side-effect-free and/or error-free. It's a parsing code and it's specialized because it has to know about all the macros my code uses (at least as it stands now). I am searching to see whether the allocating functions like list and make-hash-table are considered by Emacs Lisp as side-effect-free. Is it? -- /Pierre