1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 11:21:04 -08:00
emacs/lisp/cedet
Stefan Monnier 2766f9fdb9 * lisp/emacs-lisp/macroexp.el (macroexp-file-name): New function.
Yes, finally: a function that tells you the name of the file where
the code is located.  Finding this name is non-trivial in practice,
as evidenced by the "4 shift/reduce conflicts" warning when compiling
CEDET's python.el, because its `wisent-source` got it wrong in that
case, thinking the grammar came from `python.el` instead of
`python-wy.el`.

While at it, also made `macroexp-compiling-p` public, since it's
useful at various places.

(macroexp-compiling-p): Rename from `macroexp--compiling-p`.

* lisp/emacs-lisp/bytecomp.el (byte-compile-close-variables):
Bind `load-file-name` to nil so we can distinguish a load that calls
the byte compiler from a byte compilation which causes a load.

* lisp/cedet/semantic/wisent/python.el (wisent-python--expected-conflicts):
Remove; it was just a workaround.
* lisp/subr.el (do-after-load-evaluation): Avoid `byte-compile--` vars.
* lisp/cedet/semantic/fw.el (semantic-alias-obsolete):
Use `macroexp-compiling-p` and `macroexp-file-name`.
* lisp/cedet/semantic/wisent/comp.el (wisent-source): Use `macroexp-file-name`
(wisent-total-conflicts): Tighten regexp.
* lisp/emacs-lisp/cl-lib.el (cl--compiling-file): Delete function
and variable.  Use `macroexp-compiling-p` instead.
* lisp/progmodes/flymake.el (flymake-log):
* lisp/emacs-lisp/package.el (package-get-version):
* lisp/emacs-lisp/ert-x.el (ert-resource-directory):
Use `macroexp-file-name`.
2021-02-24 13:52:45 -05:00
..
ede Prefer declare over a put of list-indent-function. 2021-02-22 11:54:17 -05:00
semantic * lisp/emacs-lisp/macroexp.el (macroexp-file-name): New function. 2021-02-24 13:52:45 -05:00
srecode * lisp/cedet/srecode/semantic.el: Use lexical-binding 2021-01-04 15:34:12 -05:00
cedet-cscope.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cedet-files.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cedet-global.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cedet-idutils.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cedet.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
ChangeLog.1 Update copyright year to 2021 2021-01-01 01:13:56 -08:00
data-debug.el Move all usages of values' to values--store-value' 2021-02-09 09:04:47 +01:00
ede.el Move 'project-try-ede' to the back of 'project-find-functions' 2021-02-18 05:06:33 +02:00
inversion.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
mode-local.el Prefer defvar-local in cedet 2021-01-31 20:08:25 +01:00
pulse.el Use lexical-binding in a few more scattered files 2021-02-09 13:27:20 -05:00
semantic.el Prefer defvar-local in cedet 2021-01-31 20:08:25 +01:00
srecode.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00