aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/electric.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/electric.el b/lisp/electric.el
index 6df74eac6ef..3d2bf140c8c 100644
--- a/lisp/electric.el
+++ b/lisp/electric.el
@@ -1,6 +1,6 @@
1;;; electric.el --- window maker and Command loop for `electric' modes 1;;; electric.el --- window maker and Command loop for `electric' modes
2 2
3;; Copyright (C) 1985, 1986, 1995 Free Software Foundation, Inc. 3;; Copyright (C) 1985, 1986, 1995, 2004 Free Software Foundation, Inc.
4 4
5;; Author: K. Shane Hartman 5;; Author: K. Shane Hartman
6;; Maintainer: FSF 6;; Maintainer: FSF
@@ -144,12 +144,12 @@
144 (buf (get-buffer buffer)) 144 (buf (get-buffer buffer))
145 (one-window (one-window-p t)) 145 (one-window (one-window-p t))
146 (pop-up-windows t) 146 (pop-up-windows t)
147 (pop-up-frames nil)
147 (target-height) 148 (target-height)
148 (lines)) 149 (lines))
149 (if (not buf) 150 (if (not buf)
150 (error "Buffer %s does not exist" buffer) 151 (error "Buffer %s does not exist" buffer)
151 (save-excursion 152 (with-current-buffer buf
152 (set-buffer buf)
153 (setq lines (count-lines (point-min) (point-max))) 153 (setq lines (count-lines (point-min) (point-max)))
154 (setq target-height 154 (setq target-height
155 (min (max (if max-height (min max-height (1+ lines)) (1+ lines)) 155 (min (max (if max-height (min max-height (1+ lines)) (1+ lines))