Subject: bug#12579: Emacs 24.2 crashes or freezes

From: Stefan Monnier <[email-masked]>
Date: Wed, 21 Nov 2012 13:49:56 -0500

>   (defconst windows-program-files-dir
>     (concat (getenv "PROGRAMFILES") "/")
>     "Defines the default Windows Program Files folder.")

>   (defvar sumatrapdf-command
>     (concat windows-program-files-dir "SumatraPDF/SumatraPDF.exe")
>     "Path to the SumatraPDF executable.")

If you replace (concat windows-program-files-dir "SumatraPDF/SumatraPDF.exe")
with (expand-file-name "SumatraPDF/SumatraPDF.exe" windows-program-files-dir)
it should work properly (and you can even just use (getenv
"PROGRAMFILES") for windows-program-files-dir, because expand-file-name
will add a slash if necessary).

        Stefan