Mercurial > hg > xemacs-beta
diff lisp/itimer.el @ 2303:0da64f4bd0bc
[xemacs-hg @ 2004-09-22 22:14:47 by james]
Do not uniquify names in set-itimer-name, as requested by Kyle.
author | james |
---|---|
date | Wed, 22 Sep 2004 22:14:51 +0000 |
parents | 13a418960a88 |
children | d8c340c9adb6 |
line wrap: on
line diff
--- a/lisp/itimer.el Wed Sep 22 21:54:47 2004 +0000 +++ b/lisp/itimer.el Wed Sep 22 22:14:51 2004 +0000 @@ -222,15 +222,12 @@ (defun set-itimer-name (itimer name) "Set the name of ITIMER to be NAME. -NAME is an identifier for the itimer. It must be a string. If an itimer -already exists with this name, NAME will be modified slightly to make it -unique." +NAME is an identifier for the itimer. It must be a string. If an active +itimer already exists with this name, an error is signaled." (check-string name) - (let ((oname name) - (num 2)) - (while (get-itimer name) - (setq name (format "%s<%d>" oname num)) - (itimer-increment num))) + (and (itimer-live-p itimer) + (get-itimer name) + (error "itimer named \"%s\" already existing and activated" name)) (setcar itimer name)) (defun set-itimer-value (itimer value)