From 01f1a9fd22c24dde4c5ddae595779f29fb4fa2d8 Mon Sep 17 00:00:00 2001 From: Paul Pogonyshev Date: Wed, 19 Dec 2018 22:33:09 +0100 Subject: [PATCH] Make byte compiler accept single-argument `substring' invocations Those are supported by function implementation since commit fbc87aeaaf. --- lisp/emacs-lisp/bytecomp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 0b8f8824b4..4f05f48aaa 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -3514,7 +3514,7 @@ byte-defop-compiler-1 (byte-defop-compiler (>= byte-geq) 2-and) (byte-defop-compiler get 2) (byte-defop-compiler nth 2) -(byte-defop-compiler substring 2-3) +(byte-defop-compiler substring 1-3) (byte-defop-compiler (move-marker byte-set-marker) 2-3) (byte-defop-compiler set-marker 2-3) (byte-defop-compiler match-beginning 1) -- 2.18.0