[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fixing compilation and byte-compilation warnings before 25.1
From: |
Andy Moreton |
Subject: |
Re: Fixing compilation and byte-compilation warnings before 25.1 |
Date: |
Sat, 14 Nov 2015 15:23:27 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (windows-nt) |
On Fri 13 Nov 2015, daniel sutton wrote:
> Hello everyone. I'm a bit new to mucking about in the internals of emacs
> but wanted to help out with cleaning up some compiler and byte compiler
> warnings.
>
> I'm building and noticing the error
> minibuffer.el:1697:12 display-completion-list called with 2 arguments but
> accepts only 1.
>
> I'm a little confused as the this function has this signature:
> (defun display-completion-list (completions &optional common-substring) ...)
> In fact, this is a recursive call inside of the function
> display-completion-list.
>
> Can someone help me understand why we are getting a compiler warning about
> seemingly valid usage of optional arguments?
Look at the advertised-calling-convention form at the start of the
function. The calling convention has changed, and the optional argument
has been removed. See (info "(elisp) Declare Form").
AndyM
- Re: Fixing compilation and byte-compilation warnings before 25.1, (continued)
- Re: Fixing compilation and byte-compilation warnings before 25.1, Artur Malabarba, 2015/11/16
- sea-level rise of byte-compilation warnings [was: Fixing...byte-compilation warnings...], Drew Adams, 2015/11/16
- Re: sea-level rise of byte-compilation warnings [was: Fixing...byte-compilation warnings...], daniel sutton, 2015/11/16
- RE: sea-level rise of byte-compilation warnings [was: Fixing...byte-compilation warnings...], Drew Adams, 2015/11/16
- Re: sea-level rise of byte-compilation warnings [was: Fixing...byte-compilation warnings...], daniel sutton, 2015/11/16
- RE: sea-level rise of byte-compilation warnings [was: Fixing...byte-compilation warnings...], Drew Adams, 2015/11/16
- Re: sea-level rise of byte-compilation warnings [was: Fixing...byte-compilation warnings...], Artur Malabarba, 2015/11/16
- RE: sea-level rise of byte-compilation warnings [was: Fixing...byte-compilation warnings...], Drew Adams, 2015/11/16
- RE: sea-level rise of byte-compilation warnings [was: Fixing...byte-compilation warnings...], Artur Malabarba, 2015/11/16
- Re: sea-level rise of byte-compilation warnings [was: Fixing...byte-compilation warnings...], Ivan Andrus, 2015/11/16
- Re: Fixing compilation and byte-compilation warnings before 25.1,
Andy Moreton <=
Re: Fixing compilation and byte-compilation warnings before 25.1, Stephen Leake, 2015/11/14