[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
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Drew Adams, 2013/08/18
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Richard Stallman, 2013/08/18
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions,
Stefan Monnier <=
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Drew Adams, 2013/08/19
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Stefan Monnier, 2013/08/20
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Drew Adams, 2013/08/20
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Stefan Monnier, 2013/08/20
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Drew Adams, 2013/08/20
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Leo Liu, 2013/08/20
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Stefan Monnier, 2013/08/21
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Richard Stallman, 2013/08/21