diff options
| author | Juanma Barranquero | 2011-10-18 16:31:27 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2011-10-18 16:31:27 +0200 |
| commit | 343a34ff0b237779f41c9164dd4eeb3454d59703 (patch) | |
| tree | 612aa3f430ebb08989c1879c41b851a6eeda6069 | |
| parent | 97d0a92c79a5190291ae46dac668b0031ce6fe64 (diff) | |
| download | emacs-343a34ff0b237779f41c9164dd4eeb3454d59703.tar.gz emacs-343a34ff0b237779f41c9164dd4eeb3454d59703.zip | |
lisp/facemenu.el (list-colors-duplicates): Detect more duplicates on Windows.
Fixes: debbugs:9722
| -rw-r--r-- | lisp/ChangeLog | 12 | ||||
| -rw-r--r-- | lisp/facemenu.el | 11 |
2 files changed, 18 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 615ba7711ec..e058f387a93 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-10-18 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * facemenu.el (list-colors-duplicates): On Windows, detect more | ||
| 4 | duplicates by assuming that only colors matching "^System" are | ||
| 5 | special "system colors". (Bug#9722) | ||
| 6 | |||
| 1 | 2011-10-18 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2011-10-18 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 8 | ||
| 3 | * vc/log-edit.el (log-edit): Add "Author:" header to encourage people | 9 | * vc/log-edit.el (log-edit): Add "Author:" header to encourage people |
| @@ -26,7 +32,7 @@ | |||
| 26 | 32 | ||
| 27 | * font-lock.el (font-lock-maximum-size): Mark as obsolete. | 33 | * font-lock.el (font-lock-maximum-size): Mark as obsolete. |
| 28 | 34 | ||
| 29 | 2011-10-17 Ryan Barrett <emacs@ryanb.org> (tiny change) | 35 | 2011-10-17 Ryan Barrett <emacs@ryanb.org> (tiny change) |
| 30 | 36 | ||
| 31 | * dirtrack.el (dirtrack): Support shell buffers with path | 37 | * dirtrack.el (dirtrack): Support shell buffers with path |
| 32 | prefixes, e.g. tramp-based remote shells. (Bug#9647) | 38 | prefixes, e.g. tramp-based remote shells. (Bug#9647) |
| @@ -465,8 +471,8 @@ | |||
| 465 | 471 | ||
| 466 | * net/newst-reader.el (newsticker-html-renderer) | 472 | * net/newst-reader.el (newsticker-html-renderer) |
| 467 | (newsticker-show-news): Automatically | 473 | (newsticker-show-news): Automatically |
| 468 | load html rendering package if newsticker-html-renderer is | 474 | load html rendering package if newsticker-html-renderer is set. |
| 469 | set. Fixes "Warning: defvar ignored because w3m-fill-column is | 475 | Fixes "Warning: defvar ignored because w3m-fill-column is |
| 470 | let-bound" and the error "Symbol's value as variable is void: | 476 | let-bound" and the error "Symbol's value as variable is void: |
| 471 | w3m-fill-column". | 477 | w3m-fill-column". |
| 472 | 478 | ||
diff --git a/lisp/facemenu.el b/lisp/facemenu.el index a18b892efe8..54b17d58f33 100644 --- a/lisp/facemenu.el +++ b/lisp/facemenu.el | |||
| @@ -639,8 +639,15 @@ a list of colors that the current display can handle." | |||
| 639 | (l list)) | 639 | (l list)) |
| 640 | (while (cdr l) | 640 | (while (cdr l) |
| 641 | (if (and (facemenu-color-equal (car (car l)) (car (car (cdr l)))) | 641 | (if (and (facemenu-color-equal (car (car l)) (car (car (cdr l)))) |
| 642 | (not (if (fboundp 'w32-default-color-map) | 642 | ;; On MS-Windows, there are logical colors that might have |
| 643 | (not (assoc (car (car l)) (w32-default-color-map)))))) | 643 | ;; the same value but different names and meanings. For |
| 644 | ;; example, `SystemMenuText' (the color w32 uses for the | ||
| 645 | ;; text in menu entries) and `SystemWindowText' (the default | ||
| 646 | ;; color w32 uses for the text in windows and dialogs) may | ||
| 647 | ;; be the same display color and be adjacent in the list. | ||
| 648 | ;; This makes them different to any other color. Bug#9722 | ||
| 649 | (not (and (eq system-type 'windows-nt) | ||
| 650 | (string-match-p "^System" (car (car l)))))) | ||
| 644 | (progn | 651 | (progn |
| 645 | (setcdr (car l) (cons (car (car (cdr l))) (cdr (car l)))) | 652 | (setcdr (car l) (cons (car (car (cdr l))) (cdr (car l)))) |
| 646 | (setcdr l (cdr (cdr l)))) | 653 | (setcdr l (cdr (cdr l)))) |