partial-completion-mode cause bug in read-file-name with Emacs v22.3.1 (but not with v23.1).
read-file-name used in rgrep, so I disable partial-completion-mode.
;; DO NOT EDIT COMMENT! TAG: nsis-mode
(when (eq window-system 'w32)
(define-generic-mode 'nsis-generic-mode
(list ?\;)
'("Section" "SectionEnd" "Function" "FunctionEnd" "Call" "Goto")
'(("!\\([A-Za-z]+\\)" (1 'font-lock-builtin-face))
("$[({]?\\([A-Za-z0-9_]+\\)[)}]?" (1 'font-lock-variable-name-face))
)
(list "\\.\\(nsi\\|nsh\\)$")
nil
"Generic mode for nsis files."))