
Before this patch doing: rm lisp/calendar/calendar.elc make lisp/calendar/cal-hebrew.elc would spew out lots of spurious such warnings about a `date` argument, pointing to code which has no `date` argument in sight. This was because that code had calls to inlinable functions (taking a `date` argument) defined in `calendar.el`, and while `date` is a normal lexical var at the site of those functions' definitions, it was declared as dynbound at the call site. * lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand): Don't impose our local context onto the inlined function. * test/lisp/emacs-lisp/bytecomp-tests.el: Add matching test.
6 lines
110 B
EmacsLisp
6 lines
110 B
EmacsLisp
;; -*- lexical-binding: t; -*-
|
|
|
|
(defsubst foo-inlineable (foo-var)
|
|
(+ foo-var 2))
|
|
|
|
(provide 'foo-inlinable)
|