Fix: if: Wrong type argument: stringp, nil.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 17 Jan 2015 14:35:26 +0200
changeset 1196 fd26eef91bf6
parent 1195 33fd66648b2a
child 1197 998763deda98
child 1203 2d151ab6761d
Fix: if: Wrong type argument: stringp, nil.
.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)