ergoemacs / ergoemacs-mode

ergoemacs-mode
ergoemacs.github.io/
GNU General Public License v3.0
293 stars 35 forks source link

Remove some dead code and address various compiler warnings #525

Closed mattfidler closed 8 months ago

mattfidler commented 8 months ago

The original goal was to remove the remaining use of defadvice (in ergoemacs-advice) but that proved to be dead code, and then I checked the resulting compiler warnings, etc...

Prefer #' to quote function names. Remove dummy unwind-protect without any unwind forms. Avoid deprecated point-at-bol/eol. Fix some uses of ' in docstrings.

Also fix a misunderstanding: inhibit-point-motion-hooks is not used by the command loop's point adjustment code, it's only used by the low-level point-motion hooks (those implemented deep inside the C code of goto-char and friends, and which have been deprecated since Emacs-25 because running arbitrary ELisp code from within goto-char is too problematic).