summaryrefslogtreecommitdiff
path: root/lisp/eshell/em-hist.el
diff options
context:
space:
mode:
authorJim Porter <jporterbugs@gmail.com>2022-03-26 15:12:48 -0700
committerLars Ingebrigtsen <larsi@gnus.org>2022-03-29 16:50:48 +0200
commit283c419f9a3d8ecf2721c24d9c593a1a5f1b12a2 (patch)
treecfc0804808dd82f9272bc8e160121c69981b2eb1 /lisp/eshell/em-hist.el
parent705de330725715c355b63cf49d56aa13132a5f3c (diff)
downloademacs-283c419f9a3d8ecf2721c24d9c593a1a5f1b12a2.tar.gz
emacs-283c419f9a3d8ecf2721c24d9c593a1a5f1b12a2.tar.bz2
emacs-283c419f9a3d8ecf2721c24d9c593a1a5f1b12a2.zip
Don't use 'eshell-convert' when all we want is a number
* lisp/eshell/em-hist.el (eshell/history): Use 'string-to-number' instead of 'eshell-convert'. * lisp/eshell/em-basic.el (eshell/umask): Simplify implementation and be more careful about parsing numeric umasks to set.
Diffstat (limited to 'lisp/eshell/em-hist.el')
-rw-r--r--lisp/eshell/em-hist.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/eshell/em-hist.el b/lisp/eshell/em-hist.el
index 16abf044899..a18127a547a 100644
--- a/lisp/eshell/em-hist.el
+++ b/lisp/eshell/em-hist.el
@@ -341,7 +341,7 @@ unless a different file is specified on the command line.")
(error "No history"))
(let (length file)
(when (and args (string-match "^[0-9]+$" (car args)))
- (setq length (min (eshell-convert (car args))
+ (setq length (min (string-to-number (car args))
(ring-length eshell-history-ring))
args (cdr args)))
(and length