X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/c96ec15a58817ac97db5348187e2d8695f609cb5..380874900ca183ec2fdce91949d841328852d7a8:/lisp/eshell/esh-opt.el diff --git a/lisp/eshell/esh-opt.el b/lisp/eshell/esh-opt.el index d2f4f76cf4..5d6e582102 100644 --- a/lisp/eshell/esh-opt.el +++ b/lisp/eshell/esh-opt.el @@ -195,7 +195,7 @@ switch is unrecognized." (setq extcmd (eshell-search-path (cadr extcmd))) (if extcmd (throw 'eshell-ext-command extcmd) - (if (char-valid-p switch) + (if (characterp switch) (error "%s: unrecognized option -%c" name switch) (error "%s: unrecognized option --%s" name switch))))))))