Works under Macintosh, WindowsXP and Debian, if Emacs version greater than 24.