diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2004-03-26 15:15:07 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2004-03-26 15:15:07 +0000 |
commit | e09dc079db34ea6a3e49eba722edc13ca76ee593 (patch) | |
tree | eee9e85fb20b762569362c4ed72a2a57ee151d68 /lisp/electric.el | |
parent | 411def8eb005f8e2b69df6dcc6bf18115815c72d (diff) | |
download | emacs-e09dc079db34ea6a3e49eba722edc13ca76ee593.tar.gz |
(Electric-pop-up-window): Avoid popping up a new frame.
Diffstat (limited to 'lisp/electric.el')
-rw-r--r-- | lisp/electric.el | 6 |
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 @@ ;;; electric.el --- window maker and Command loop for `electric' modes -;; Copyright (C) 1985, 1986, 1995 Free Software Foundation, Inc. +;; Copyright (C) 1985, 1986, 1995, 2004 Free Software Foundation, Inc. ;; Author: K. Shane Hartman ;; Maintainer: FSF @@ -144,12 +144,12 @@ (buf (get-buffer buffer)) (one-window (one-window-p t)) (pop-up-windows t) + (pop-up-frames nil) (target-height) (lines)) (if (not buf) (error "Buffer %s does not exist" buffer) - (save-excursion - (set-buffer buf) + (with-current-buffer buf (setq lines (count-lines (point-min) (point-max))) (setq target-height (min (max (if max-height (min max-height (1+ lines)) (1+ lines)) |