Mercurial > emacs
diff lisp/subr.el @ 92032:8f2dc2bda7bc
(sit-for): Fix obsolete form for nil second argument.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Thu, 21 Feb 2008 08:12:31 +0000 |
parents | c70e45a7acfd |
children | f991f10f15ec |
line wrap: on
line diff
--- a/lisp/subr.el Thu Feb 21 07:57:06 2008 +0000 +++ b/lisp/subr.el Thu Feb 21 08:12:31 2008 +0000 @@ -1831,9 +1831,10 @@ floating point support. \(fn SECONDS &optional NODISP)" - (when (or obsolete (numberp nodisp)) - (setq seconds (+ seconds (* 1e-3 nodisp))) - (setq nodisp obsolete)) + (if (numberp nodisp) + (setq seconds (+ seconds (* 1e-3 nodisp)) + nodisp obsolete) + (if obsolete (setq nodisp obsolete))) (cond (noninteractive (sleep-for seconds)