These commits fix the following warnings when running M-x byte-compile-file on M2.el:
In M2-dynamic-complete-symbol:
M2.el:309:15:Warning: ‘comint-dynamic-simple-complete’ is an obsolete function
(as of 24.1); use ‘completion-in-region’ instead.
M2.el:403:1:Warning: Unused lexical variable ‘db’
In M2--send-to-program-helper:
M2.el:411:27:Warning: Use ‘with-current-buffer’ rather than
save-excursion+set-buffer
M2.el:515:1:Warning: Unused lexical variable ‘height’
M2.el:515:1:Warning: Unused lexical variable ‘width’
In M2-demo:
M2.el:536:30:Warning: ‘make-variable-buffer-local’ not called at toplevel
M2.el:538:34:Warning: Use ‘with-current-buffer’ rather than
save-excursion+set-buffer
In M2-this-line-indent-amount:
M2.el:577:12:Warning: ‘previous-line’ is for interactive use only; use
‘forward-line’ with negative argument instead.
M2.el:620:1:Warning: Use ‘with-current-buffer’ rather than
save-excursion+set-buffer
These commits fix the following warnings when running
M-x byte-compile-file
onM2.el
: