emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/compat 156b5f5 27/99: Ensure substring is passed two ar


From: ELPA Syncer
Subject: [elpa] externals/compat 156b5f5 27/99: Ensure substring is passed two arguments in string-width advise
Date: Sun, 17 Oct 2021 05:57:51 -0400 (EDT)

branch: externals/compat
commit 156b5f5201d14642f73bef36d376cf453d25a0d5
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Ensure substring is passed two arguments in string-width advise
---
 compat-28.1.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compat-28.1.el b/compat-28.1.el
index 50e93bf..f63a3c6 100644
--- a/compat-28.1.el
+++ b/compat-28.1.el
@@ -133,7 +133,7 @@ continuing as if the error did not occur."
 
 Optional arguments FROM and TO specify the substring of STRING to
 consider, and are interpreted as in `substring'."
-  (funcall oldfun (substring string from to)))
+  (funcall oldfun (substring string (or from 0) to)))
 
 ;;;; Defined in dired.c
 



reply via email to

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