diff options
| author | Stefan Monnier | 2010-09-19 11:53:28 +0200 |
|---|---|---|
| committer | Stefan Monnier | 2010-09-19 11:53:28 +0200 |
| commit | e2c3f530ff6fff5f5276ebc4db1e93a967eca351 (patch) | |
| tree | 3ef36245a0465d5ab12eddf0536e6c63917e0216 | |
| parent | 37c0347eb5a2e197c747a6a11e452041acbe28b3 (diff) | |
| download | emacs-e2c3f530ff6fff5f5276ebc4db1e93a967eca351.tar.gz emacs-e2c3f530ff6fff5f5276ebc4db1e93a967eca351.zip | |
* lisp/frame.el (make-frame-names-alist): Don't list frames on other displays.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/frame.el | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f53ca2b8f3c..912626f5863 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2010-09-19 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2010-09-19 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * frame.el (make-frame-names-alist): Don't list frames on other displays. | ||
| 4 | |||
| 3 | * fringe.el (fringe-styles): New var. | 5 | * fringe.el (fringe-styles): New var. |
| 4 | (fringe-mode, fringe-query-style): Use it. | 6 | (fringe-mode, fringe-query-style): Use it. |
| 5 | 7 | ||
diff --git a/lisp/frame.el b/lisp/frame.el index 7a12c9fc2e0..44ac5c0e81d 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -907,15 +907,16 @@ Calls `suspend-emacs' if invoked from the controlling tty device, | |||
| 907 | (t (suspend-emacs))))) | 907 | (t (suspend-emacs))))) |
| 908 | 908 | ||
| 909 | (defun make-frame-names-alist () | 909 | (defun make-frame-names-alist () |
| 910 | ;; Only consider the frames on the same display. | ||
| 910 | (let* ((current-frame (selected-frame)) | 911 | (let* ((current-frame (selected-frame)) |
| 911 | (falist | 912 | (falist |
| 912 | (cons | 913 | (cons |
| 913 | (cons (frame-parameter current-frame 'name) current-frame) nil)) | 914 | (cons (frame-parameter current-frame 'name) current-frame) nil)) |
| 914 | (frame (next-frame nil t))) | 915 | (frame (next-frame nil 0))) |
| 915 | (while (not (eq frame current-frame)) | 916 | (while (not (eq frame current-frame)) |
| 916 | (progn | 917 | (progn |
| 917 | (setq falist (cons (cons (frame-parameter frame 'name) frame) falist)) | 918 | (push (cons (frame-parameter frame 'name) frame) falist) |
| 918 | (setq frame (next-frame frame t)))) | 919 | (setq frame (next-frame frame 0)))) |
| 919 | falist)) | 920 | falist)) |
| 920 | 921 | ||
| 921 | (defvar frame-name-history nil) | 922 | (defvar frame-name-history nil) |