Commit 7ea8834e authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(flymake-float-time): Instead of with-no-warnings, test for xemacs.

(flymake-replace-regexp-in-string): Test fboundp of replace-in-string
to avoid warning.
parent d25dfeed
2005-07-06 Richard M. Stallman <rms@gnu.org>
* progmodes/flymake.el (flymake-float-time): Instead of
with-no-warnings, test for xemacs.
(flymake-replace-regexp-in-string): Test fboundp of replace-in-string
to avoid warning.
2005-07-06 Juanma Barranquero <lekktu@gmail.com>
 
* w32-vars.el (w32-fixed-font-alist): Fix typo in `defcustom' tag.
......
......@@ -64,15 +64,15 @@
(defalias 'flymake-float-time
(if (fboundp 'float-time)
'float-time
(with-no-warnings
(lambda ()
(multiple-value-bind (s0 s1 s2) (current-time)
(+ (* (float (ash 1 16)) s0) (float s1) (* 0.0000001 s2)))))))
(if (featurep 'xemacs)
(lambda ()
(multiple-value-bind (s0 s1 s2) (current-time)
(+ (* (float (ash 1 16)) s0) (float s1) (* 0.0000001 s2)))))))
(defsubst flymake-replace-regexp-in-string (regexp rep str)
(if (fboundp 'replace-regexp-in-string)
(replace-regexp-in-string regexp rep str)
(replace-in-string str regexp rep)))
(if (fboundp 'replace-in-string)
(replace-in-string str regexp rep)
(replace-regexp-in-string regexp rep str)))
(defun flymake-split-string (str pattern)
"Split STR into a list of substrings bounded by PATTERN.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment