aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2006-01-23 04:05:59 +0000
committerStefan Monnier2006-01-23 04:05:59 +0000
commit0a4871997c099bcc11efeb29593f0907ad1cefe7 (patch)
treee566e1624c63d6a336f50599015769d170edf447
parent5badc98d737395cbd96188dbbb044ab8dc4da88f (diff)
downloademacs-0a4871997c099bcc11efeb29593f0907ad1cefe7.tar.gz
emacs-0a4871997c099bcc11efeb29593f0907ad1cefe7.zip
(clone-buffer): Don't show the new buffer in the same window.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/simple.el9
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3293681e248..98cf5842e52 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * simple.el (clone-buffer): Don't show the new buffer in the same window.
4
12006-01-23 Juri Linkov <juri@jurta.org> 52006-01-23 Juri Linkov <juri@jurta.org>
2 6
3 * faces.el (link, link-visited): New faces based on default values 7 * faces.el (link, link-visited): New faces based on default values
diff --git a/lisp/simple.el b/lisp/simple.el
index 346a242c042..db040afcae9 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1,7 +1,7 @@
1;;; simple.el --- basic editing commands for Emacs 1;;; simple.el --- basic editing commands for Emacs
2 2
3;; Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3;; Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4;; 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 4;; 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
5 5
6;; Maintainer: FSF 6;; Maintainer: FSF
7;; Keywords: internal 7;; Keywords: internal
@@ -5244,7 +5244,12 @@ after it has been set up properly in other respects."
5244 ;; Run any hooks (typically set up by the major mode 5244 ;; Run any hooks (typically set up by the major mode
5245 ;; for cloning to work properly). 5245 ;; for cloning to work properly).
5246 (run-hooks 'clone-buffer-hook)) 5246 (run-hooks 'clone-buffer-hook))
5247 (if display-flag (pop-to-buffer new)) 5247 (if display-flag
5248 ;; Presumably the current buffer is shown in the selected frame, so
5249 ;; we want to display the clone elsewhere.
5250 (let ((same-window-regexps nil)
5251 (same-window-buffer-names))
5252 (pop-to-buffer new)))
5248 new)) 5253 new))
5249 5254
5250 5255