[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#66908: Exposing more public nadvice API
From: |
Stefan Monnier |
Subject: |
bug#66908: Exposing more public nadvice API |
Date: |
Sat, 04 Nov 2023 11:55:50 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> The main issue here is that this checks if a function accepts up to two
> arguments, but we are interested in the minimal number of arguments.
Ah, yes you checked the lower bound, sorry.
> I guess that turning this around should work, right:
>
> (condition-case nil
> (funcall func)
> (wrong-number-of-arguments
> (condition-case nil
> (funcall func (buffer-substring (car bound) (cdr bound)))
> (wrong-number-of-arguments
> (funcall func (car bound) (cdr bound))))))
Yup.
Stefan
- bug#66908: Exposing more public nadvice API, Philip Kaludercic, 2023/11/03
- bug#66908: Exposing more public nadvice API, Stefan Monnier, 2023/11/03
- bug#66908: Exposing more public nadvice API, Visuwesh, 2023/11/03
- bug#66908: Exposing more public nadvice API, Drew Adams, 2023/11/03
- bug#66908: Exposing more public nadvice API, Stefan Monnier, 2023/11/03
- bug#66908: Exposing more public nadvice API, Visuwesh, 2023/11/03
- bug#66908: Exposing more public nadvice API, Stefan Monnier, 2023/11/04
- bug#66908: Exposing more public nadvice API, Visuwesh, 2023/11/04
- bug#66908: Exposing more public nadvice API, Stefan Monnier, 2023/11/04
- bug#66908: Exposing more public nadvice API, Philip Kaludercic, 2023/11/04
- bug#66908: Exposing more public nadvice API,
Stefan Monnier <=