Macaulay2 / M2-emacs

Macaulay2 emacs files
GNU General Public License v3.0
5 stars 3 forks source link

Fix warnings when byte-compiling #42

Closed d-torrance closed 1 year ago

d-torrance commented 1 year ago

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