emacs24port: fix deprecated function. (maintained retrocompability)