fix byte-compile warning
Merge pull request #3 from syohex/fix-byte-compile-warning

Fix usage of function obsolete since 23.2.