replace obsolete function
modified for flymake on emacs24.4