]> git.eshelyaron.com Git - emacs.git/commit
Mimic behavior of 'aref' when signalling out-of-range errors.
authorPhilipp Stephani <p.stephani2@gmail.com>
Tue, 25 Mar 2025 01:56:01 +0000 (02:56 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 25 Mar 2025 18:19:49 +0000 (19:19 +0100)
commit431d18309ef71e167a0ffbe75f9e724220077e69
tree0d67edfb938542233f669b3c7b2f73199049237a
parent577b06604248f2c6c9a3d7904fc518df5e79da5f
Mimic behavior of 'aref' when signalling out-of-range errors.

The convention used by 'aref' and friends is that for
'args-out-of-range', the error data is a list (SEQ INDEX).  Use the same
convention for the vector-related module functions.

* src/emacs-module.c (check_vec_index): Use vector and index as error
data.

(cherry picked from commit 8efcdcab8658ff9537fe483e0a12875cca90a527)
src/emacs-module.c