diff options
| author | Juri Linkov | 2010-06-17 00:33:54 +0300 |
|---|---|---|
| committer | Juri Linkov | 2010-06-17 00:33:54 +0300 |
| commit | e020fb59a3a7df1c47ef6bdae4b49eef4bab6c1b (patch) | |
| tree | 1d8d7c990a85363c44f020879c2d65d36674c0bf | |
| parent | 49b2e83db4e53168cfdef4caf0c9ea975397e044 (diff) | |
| download | emacs-e020fb59a3a7df1c47ef6bdae4b49eef4bab6c1b.tar.gz emacs-e020fb59a3a7df1c47ef6bdae4b49eef4bab6c1b.zip | |
* lisp/facemenu.el (list-colors-display): Call `pop-to-buffer' before
`list-colors-print'. (Bug#6332)
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/facemenu.el | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 18c99d4ebf0..b59e5f2708c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-06-16 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * facemenu.el (list-colors-display): Call `pop-to-buffer' before | ||
| 4 | `list-colors-print'. (Bug#6332) | ||
| 5 | |||
| 1 | 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * emacs-lisp/macroexp.el (macroexpand-all-1): Don't handle `lambda' | 8 | * emacs-lisp/macroexp.el (macroexpand-all-1): Don't handle `lambda' |
diff --git a/lisp/facemenu.el b/lisp/facemenu.el index 19b5967215a..20b86676ea9 100644 --- a/lisp/facemenu.el +++ b/lisp/facemenu.el | |||
| @@ -600,9 +600,11 @@ You can change the color sort order by customizing `list-colors-sort'." | |||
| 600 | (with-current-buffer buf | 600 | (with-current-buffer buf |
| 601 | (erase-buffer) | 601 | (erase-buffer) |
| 602 | (setq truncate-lines t) | 602 | (setq truncate-lines t) |
| 603 | ;; Display buffer before generating content to allow | ||
| 604 | ;; `list-colors-print' to get the right window-width. | ||
| 605 | (pop-to-buffer buf) | ||
| 603 | (list-colors-print list callback) | 606 | (list-colors-print list callback) |
| 604 | (set-buffer-modified-p nil)) | 607 | (set-buffer-modified-p nil))) |
| 605 | (pop-to-buffer buf)) | ||
| 606 | (if callback | 608 | (if callback |
| 607 | (message "Click on a color to select it."))) | 609 | (message "Click on a color to select it."))) |
| 608 | 610 | ||