Commit 08ffcab3 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(sc-read-string): Don't pass a history arg to read-string.

parent f5a131d8
...@@ -499,8 +499,9 @@ In version 18, the HISTORY argument is ignored." ...@@ -499,8 +499,9 @@ In version 18, the HISTORY argument is ignored."
"Compatibility between Emacs 18 and 19 `read-string'. "Compatibility between Emacs 18 and 19 `read-string'.
In version 18, the HISTORY argument is ignored." In version 18, the HISTORY argument is ignored."
(if (memq 'v19 sc-emacs-features) (if (memq 'v19 sc-emacs-features)
(funcall 'read-string prompt initial-contents history) ;; maybe future versions will take a `history' argument:
(funcall 'read-string prompt initial-contents))) (read-string prompt initial-contents)
(read-string prompt initial-contents)))
(defun sc-submatch (matchnum &optional string) (defun sc-submatch (matchnum &optional string)
"Returns `match-beginning' and `match-end' sub-expression for MATCHNUM. "Returns `match-beginning' and `match-end' sub-expression for MATCHNUM.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment