[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 47d656f: Accept 1-arg 'substring' calls in byte com
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] master 47d656f: Accept 1-arg 'substring' calls in byte compiler |
Date: |
Thu, 27 Dec 2018 23:25:57 -0500 (EST) |
branch: master
commit 47d656f6024786dfdaf53be1c6db6a47b8666b7f
Author: Paul Pogonyshev <address@hidden>
Commit: Paul Eggert <address@hidden>
Accept 1-arg 'substring' calls in byte compiler
Those have been supported by the function implementation since
commit 2014-03-31T12:06:address@hidden (Bug#33807).
* lisp/emacs-lisp/bytecomp.el: substring has 1-3 args, not 2-3.
---
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 c0a764b..43f2289 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -3534,7 +3534,7 @@ If it is nil, then the handler is
\"byte-compile-SYMBOL.\""
(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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 47d656f: Accept 1-arg 'substring' calls in byte compiler,
Paul Eggert <=