# HG changeset patch # User Oleksandr Gavenko # Date 1421498126 -7200 # Node ID fd26eef91bf62e70fa412652bf3fa0bcf5c7f31a # Parent 33fd66648b2a22c0eb9a6dc39a73bfbf0bcfcc85 Fix: if: Wrong type argument: stringp, nil. diff -r 33fd66648b2a -r fd26eef91bf6 .emacs-my --- a/.emacs-my Sat Jan 17 14:24:45 2015 +0200 +++ b/.emacs-my Sat Jan 17 14:35:26 2015 +0200 @@ -821,7 +821,7 @@ (modify-coding-system-alist 'process ".*" 'utf-8-unix) ) ((eq system-type 'cygwin) - (when (string-match "1251\\'" (getenv "LANG")) + (when (and (getenv "LANG") (string-match "1251\\'" (getenv "LANG"))) (prefer-coding-system 'cp1251-unix) (prefer-coding-system 'utf-8-unix) (modify-coding-system-alist 'process ".*" 'cp1251-unix)