help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `looking-back' strange warning


From: Tassilo Horn
Subject: Re: `looking-back' strange warning
Date: Thu, 01 Oct 2015 08:25:59 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

> M-x `byte-compile-file' warns:
>
> ... Warning: looking-back called with 1 argument, but
>     requires 2-3
>
> While its definition:
>
> (defun looking-back (regexp &optional limit greedy)
>
> Docu bug?

No, its definition contains

  (declare
   (advertised-calling-convention (regexp limit &optional greedy) "25.1"))

and that's what creates the warnings.  You can still use it without
LIMIT but you should not.  This probably means that in Emacs 33, LIMIT
will become a mandatory argument.

Bye,
Tassilo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]