• Philipp Stephani's avatar
    Stop calling ‘byte-compile-log-warning’ · 7edaa77c
    Philipp Stephani authored
    For errors, use ‘byte-compile-report-error’ instead so that the error
    is registered and causes compilation to fail (Bug#24359).
    
    For warnings, use ‘byte-compile-warn’ instead so that
    ‘byte-compile-error-on-warn’ is honored (Bug#24360).
    
    * lisp/emacs-lisp/macroexp.el (macroexp--funcall-if-compiled)
    (macroexp--warn-and-return): Use ‘byte-compile-warn’ instead of
    ‘byte-compile-log-warning’.
    
    * lisp/emacs-lisp/bytecomp.el (byte-compile-form, byte-compile-unfold-bcf)
    (byte-compile-setq, byte-compile-funcall): Use
    ‘byte-compile-report-error’ instead of ‘byte-compile-log-warning’.
    (byte-compile-log-warning): Convert comment to documentation
    string.  Explain that the function shouldn’t be called directly.
    (byte-compile-report-error): Add optional FILL argument.
    
    * lisp/emacs-lisp/cconv.el (cconv-convert, cconv--analyze-use)
    (cconv--analyze-function, cconv-analyze-form): Use
    ‘byte-compile-warn’ instead of ‘byte-compile-log-warning’.
    
    * lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand): Use
    ‘byte-compile-warn’ instead of ‘byte-compile-log-warning’.
    
    * lisp/subr.el (add-to-list): Use ‘byte-compile-report-error’ instead
    of ‘byte-compile-log-warning’.
    (do-after-load-evaluation): Use ‘byte-compile-warn’ instead of
    ‘byte-compile-log-warning’.
    7edaa77c
cconv.el 32.9 KB