emacs/lisp/emacs-lisp
Alan Mackenzie 3023e7ca3d Remove the remnants of old position mechanism from scratch/correct-warning-pos
Also correct one or two positions in macroexp-warn-and-return invocations.

* lisp/emacs-lisp/bytecomp.el (byte-compile-read-position)
(byte-compile-last-position, byte-compile-set-symbol-position): Remove.
(byte-compile-warning-prefix, byte-compile-function-warn)
(byte-compile-emit-callargs-warn, byte-compile-arglist-warn)
(byte-compile-warn-about-unresolved-functions, compile-defun)
(byte-compile-from-buffer, byte-compile-from-buffer)
(byte-compile-file-form-defmumble, byte-compile-check-lambda-list)
(byte-compile-lambda, byte-compile-form, byte-compile-normal-call)
(byte-compile-check-variable, byte-compile-push-constant)
(byte-compile-subr-wrong-args, byte-compile-negation-optimizer)
(byte-compile-condition-case, byte-compile-defvar, byte-compile-autoload)
(byte-compile-lambda-form): Remove the remnants of the old warning position
mechanism.
(byte-compile-function-warn): Replace byte-compile-last-position by a
symbol-with-pos-pos call.
(compile-defun): Use local variable start-read-position to fulfil purpose of
old byte-compile-read-position.  Push the just read FORM onto
byte-compile-form-stack.

* lisp/emacs-lisp/eieio.el (defclass): New mechanism to get the correct
source warning position to macroexp-warn-and-return.

* lisp/emacs-lisp/macroexp (macroexp--unfold-lambda): Correct the position
argument given to macroexp-warn-and-return.
2022-01-15 17:36:12 +00:00
..
advice.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
autoload.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
avl-tree.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
backquote.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
backtrace.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
benchmark.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
bindat.el Merge branch 'master' into scratch/correct-warning-pos 2022-01-11 21:57:54 +00:00
byte-opt.el Merge branch 'master' into scratch/correct-warning-pos 2022-01-11 21:57:54 +00:00
byte-run.el Commit fixes and enhancements to the scratch/correct-warning-pos branch 2022-01-14 19:06:04 +00:00
bytecomp.el Remove the remnants of old position mechanism from scratch/correct-warning-pos 2022-01-15 17:36:12 +00:00
cconv.el Revert "Fix closure-conversion of shadowed captured lambda-lifted vars" 2022-01-12 20:23:09 +01:00
chart.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
check-declare.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
checkdoc.el Merge from origin/emacs-28 2022-01-05 06:30:39 +01:00
cl-extra.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cl-generic.el Merge branch 'master' into scratch/correct-warning-pos 2022-01-11 21:57:54 +00:00
cl-indent.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cl-lib.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
cl-macs.el Commit fixes and enhancements to the scratch/correct-warning-pos branch 2022-01-14 19:06:04 +00:00
cl-preloaded.el * lisp/emacs-lisp/cl-preloaded.el: Fix the format of props in slot-descs 2021-06-24 17:32:20 -04:00
cl-print.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cl-seq.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
comp-cstr.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
comp.el Commit fixes and enhancements to the scratch/correct-warning-pos branch 2022-01-14 19:06:04 +00:00
copyright.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
crm.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
cursor-sensor.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
debug.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
derived.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
disass.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
easy-mmode.el Merge branch 'master' into scratch/correct-warning-pos 2022-01-14 19:28:07 +00:00
easymenu.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
edebug.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
eieio-base.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
eieio-core.el Merge branch 'master' into scratch/correct-warning-pos 2022-01-11 21:57:54 +00:00
eieio-custom.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
eieio-datadebug.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
eieio-opt.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
eieio-speedbar.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
eieio.el Remove the remnants of old position mechanism from scratch/correct-warning-pos 2022-01-15 17:36:12 +00:00
eldoc.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
elint.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
elp.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
ert-x.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
ert.el Make ert explainers work on function aliases 2022-01-13 09:49:19 +01:00
ewoc.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
faceup.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
find-func.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
float-sup.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
generator.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
generic.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
gv.el Merge branch 'master' into scratch/correct-warning-pos 2022-01-11 21:57:54 +00:00
helper.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
hierarchy.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
inline.el Fix Edebug specification for inline functions (Bug#53068). 2022-01-13 13:52:40 +01:00
let-alist.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
lisp-mnt.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
lisp-mode.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
lisp.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
macroexp.el Remove the remnants of old position mechanism from scratch/correct-warning-pos 2022-01-15 17:36:12 +00:00
map-ynp.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
map.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
memory-report.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
multisession.el ; Add 2022 to copyright years. 2022-01-01 07:07:15 -05:00
nadvice.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
package-x.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
package.el Merge remote-tracking branch 'origin/emacs-28' into trunk 2022-01-10 22:34:55 -05:00
pcase.el Merge branch 'master' into scratch/correct-warning-pos 2022-01-11 21:57:54 +00:00
pp.el Improve pp-emacs-lisp-code for #' 2022-01-04 15:51:04 +01:00
radix-tree.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
re-builder.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
regexp-opt.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
regi.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ring.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
rmc.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
rx.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
seq.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
shadow.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
shortdoc.el Add a `shortdoc' convenience alias 2022-01-14 10:51:15 +01:00
shorthands.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
smie.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
subr-x.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
syntax.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
tabulated-list.el Merge remote-tracking branch 'origin/emacs-28' into trunk 2022-01-10 22:34:55 -05:00
tcover-ses.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
testcover.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
text-property-search.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
thunk.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
timer-list.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
timer.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
tq.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
trace.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
unsafep.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
warnings.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00