Mercurial > emacs
changeset 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 | 0463ecde5653 |
children | 980c5901870e |
files | lisp/subr.el |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
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)