Byte compile warnings
I've opened up issue in the past #93 (closed). Now I'm getting more warnings in the latest version.
Some info:
-
Emacs version:
29.0.50
- OS: Windows 10 (x64)
Log
In toplevel form:
python-mode.el:1809:30: Warning: Alias for `py-python-command' should be declared before its referent
python-mode.el:2321:12: Warning: defcustom for `py-keep-windows-configuration' has syntactically odd type `'(choice (const :tag nil nil) (const :tag t t) (const :tag force 'force))'
In py--jump-to-exception:
python-mode.el:5233:10: Warning: `inhibit-point-motion-hooks' is an obsolete variable (as of 25.1); use `cursor-intangible-mode' or `cursor-sensor-mode' instead
In py-shell:
python-mode.el:6169:19: Warning: assignment to free variable `py-shell-mode-syntax-table'
python-mode.el:7915:35: Warning: reference to free variable `comint-mime-setup-script-dir'
python-mode.el:7917:25: Warning: reference to free variable `comint-mime-enabled-types'
python-mode.el:7923:9: Warning: reference to free variable `comint-mime-setup-function-alist'
python-mode.el:7923:9: Warning: assignment to free variable `comint-mime-setup-function-alist'
In py--postprocess-intern:
python-mode.el:9311:29: Warning: global/dynamic var `tempbuf' lacks a prefix
In py-update-gud-pdb-history:
python-mode.el:22047:29: Warning: reference to free variable `gud-pdb-history'
python-mode.el:22064:17: Warning: assignment to free variable `gud-pdb-history'
In py--pdbtrack-track-stack-file:
python-mode.el:22102:39: Warning: Unused lexical argument `text'
In py--pdbtrack-grub-for-buffer:
python-mode.el:22230:47: Warning: Unused lexical argument `lineno'
In py--imenu-create-index:
python-mode.el:23805:11: Warning: assignment to free variable `index-alist'
In python-mode:
python-mode.el:25766:28: Warning: assignment to free variable `autopair-handle-action-fns'
In end of data:
python-mode.el:25768:36: Warning: the function `autopair-python-triple-quote-action' is not known to be defined.
python-mode.el:25767:36: Warning: the function `autopair-default-handle-action' is not known to be defined.
python-mode.el:23844:21: Warning: the function `second' is not known to be defined.
python-mode.el:23843:23: Warning: the function `first' is not known to be defined.
python-mode.el:22025:13: Warning: the function `gud-query-cmdline' is not known to be defined.
python-mode.el:15891:32: Warning: the function `autopair-mode' is not known to be defined.
python-mode.el:13529:20: Warning: the function `py-complete' is not known to be defined.
Compiling c:/Users/JenChieh/Downloads/workspace/python-mode/python-mode-pkg.el... done
In toplevel form:
python-mode-pkg.el:1:2: Warning: `define-package' is an obsolete function (as of 29.1).
I recommend to use some testing tools like Cask, Eask, makem.sh, etc. You can use these tools in Travis/GitLab runner.