bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive fun


From: Stefan Monnier
Subject: bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions
Date: Sun, 18 Aug 2013 22:59:51 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> This StackOverflow entry suggested that the Emacs-Lisp byte compiler be
> able to warn about the use of functions that are destructive, i.e., can
> modify data structures in place:
> http://stackoverflow.com/questions/17610046/elisp-destructive-operation-warning
> Attached is a patch that provides this, at least a start.

All of those functions are used on a regular basis in perfectly
correct code.  So just flagging every call is not going to fly.  We need
to have some further analysis so that we don't flag all calls, but only
those that "could be dangerous".

As it stands, your code would just flood you with false positives,
so it wouldn't really help you find the problematic uses.


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]