]> git.eshelyaron.com Git - emacs.git/commitdiff
(Electric-pop-up-window): Avoid popping up a new frame.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 26 Mar 2004 15:15:07 +0000 (15:15 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 26 Mar 2004 15:15:07 +0000 (15:15 +0000)
lisp/electric.el

index 6df74eac6efac747f8a6f583447d3050f2645c1a..3d2bf140c8c9543539e3431d99a693b3045add22 100644 (file)
@@ -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
         (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))