# HG changeset patch # User Oleksandr Gavenko # Date 1300906241 -7200 # Node ID 1c59e45f535808f97b5a0f961d98721189363932 # Parent 49c993d41d3f0193ce8871e5f273252699ea4749 split-height-threshold/split-width-threshold can not be nil in Emacs 21.x/22.x. diff -r 49c993d41d3f -r 1c59e45f5358 .emacs-my --- a/.emacs-my Wed Mar 23 20:42:13 2011 +0200 +++ b/.emacs-my Wed Mar 23 20:50:41 2011 +0200 @@ -163,8 +163,10 @@ ) ;; Prefer horizontal windows splitting. -(setq split-height-threshold nil) -(setq split-width-threshold nil) +(when (>= emacs-major-version 23) + (setq split-height-threshold nil) + (setq split-width-threshold nil) + ) (setq frame-title-format "Emacs - %b")