aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2007-11-11 00:03:33 +0000
committerMiles Bader2007-11-11 00:03:33 +0000
commita457417ee5ba797ab1c91d35ee957bb7a7f8d4b6 (patch)
tree8b8959bb53189d0b80817375f9368a2e8bc0f444
parent06f5c483ca5f328f40e329e52f84794f1b5a9040 (diff)
parentd83e029983704d68b3257a678c79916177296271 (diff)
downloademacs-a457417ee5ba797ab1c91d35ee957bb7a7f8d4b6.tar.gz
emacs-a457417ee5ba797ab1c91d35ee957bb7a7f8d4b6.zip
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-927
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/faces.el25
-rw-r--r--lisp/w32-fns.el13
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xdisp.c2
5 files changed, 22 insertions, 32 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f0b8f759878..e7d1daf2096 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,13 @@
12007-11-10 Jason Rumney <jasonr@gnu.org>
2
3 * w32-fns.el: Sync charset names with setup-default-fontset.
4 Append "-1" where second part missing.
5
62007-11-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7
8 * faces.el (face-normalize-spec): Remove function.
9 (frame-set-background-mode): Undo last change.
10
12007-11-10 Juri Linkov <juri@jurta.org> 112007-11-10 Juri Linkov <juri@jurta.org>
2 12
3 * isearch.el (isearch-mode-end-hook, isearch-mode-end-hook-quit): 13 * isearch.el (isearch-mode-end-hook, isearch-mode-end-hook-quit):
diff --git a/lisp/faces.el b/lisp/faces.el
index 5c51f7ba823..88b0c54039a 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -1516,28 +1516,6 @@ If there is neither a user setting nor a default for FACE, return nil."
1516 (get face 'saved-face) 1516 (get face 'saved-face)
1517 (face-default-spec face))) 1517 (face-default-spec face)))
1518 1518
1519(defsubst face-normalize-spec (spec)
1520 "Return a normalized face-spec of SPEC."
1521 (let (normalized-spec)
1522 (while spec
1523 (let ((attribute (car spec))
1524 (value (car (cdr spec))))
1525 ;; Support some old-style attribute names and values.
1526 (case attribute
1527 (:bold (setq attribute :weight value (if value 'bold 'normal)))
1528 (:italic (setq attribute :slant value (if value 'italic 'normal)))
1529 ((:foreground :background)
1530 ;; Compatibility with 20.x. Some bogus face specs seem to
1531 ;; exist containing things like `:foreground nil'.
1532 (if (null value) (setq value 'unspecified)))
1533 (t (unless (assq attribute face-x-resources)
1534 (setq attribute nil))))
1535 (when attribute
1536 (push attribute normalized-spec)
1537 (push value normalized-spec)))
1538 (setq spec (cdr (cdr spec))))
1539 (nreverse normalized-spec)))
1540
1541 1519
1542;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1520;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1543;;; Frame-type independent color support. 1521;;; Frame-type independent color support.
@@ -1819,8 +1797,7 @@ according to the `background-mode' and `display-type' frame parameters."
1819 ;; be unmodified, so we can avoid consing in the common case. 1797 ;; be unmodified, so we can avoid consing in the common case.
1820 (dolist (face (face-list)) 1798 (dolist (face (face-list))
1821 (when (not (face-spec-match-p face 1799 (when (not (face-spec-match-p face
1822 (face-normalize-spec 1800 (face-user-default-spec face)
1823 (face-user-default-spec face))
1824 (selected-frame))) 1801 (selected-frame)))
1825 (push face locally-modified-faces))) 1802 (push face locally-modified-faces)))
1826 ;; Now change to the new frame parameters 1803 ;; Now change to the new frame parameters
diff --git a/lisp/w32-fns.el b/lisp/w32-fns.el
index dc4a83df85b..d9257475447 100644
--- a/lisp/w32-fns.el
+++ b/lisp/w32-fns.el
@@ -382,9 +382,9 @@ bit output with no translation."
382(w32-add-charset-info "jisx0201-latin" 'w32-charset-shiftjis 932) 382(w32-add-charset-info "jisx0201-latin" 'w32-charset-shiftjis 932)
383(w32-add-charset-info "jisx0201-katakana" 'w32-charset-shiftjis 932) 383(w32-add-charset-info "jisx0201-katakana" 'w32-charset-shiftjis 932)
384(w32-add-charset-info "jisx0208-sjis" 'w32-charset-shiftjis 932) 384(w32-add-charset-info "jisx0208-sjis" 'w32-charset-shiftjis 932)
385(w32-add-charset-info "ksc5601.1987" 'w32-charset-hangeul 949) 385(w32-add-charset-info "ksc5601.1989-1" 'w32-charset-hangeul 949)
386(w32-add-charset-info "big5" 'w32-charset-chinesebig5 950) 386(w32-add-charset-info "big5-1" 'w32-charset-chinesebig5 950)
387(w32-add-charset-info "gb2312" 'w32-charset-gb2312 936) 387(w32-add-charset-info "gb2312.1980-1" 'w32-charset-gb2312 936)
388(w32-add-charset-info "ms-symbol" 'w32-charset-symbol nil) 388(w32-add-charset-info "ms-symbol" 'w32-charset-symbol nil)
389(w32-add-charset-info "ms-oem" 'w32-charset-oem 437) 389(w32-add-charset-info "ms-oem" 'w32-charset-oem 437)
390(w32-add-charset-info "ms-oemlatin" 'w32-charset-oem 850) 390(w32-add-charset-info "ms-oemlatin" 'w32-charset-oem 850)
@@ -400,12 +400,11 @@ bit output with no translation."
400 (w32-add-charset-info "iso8859-13" 'w32-charset-baltic 1257) 400 (w32-add-charset-info "iso8859-13" 'w32-charset-baltic 1257)
401 (w32-add-charset-info "koi8-r" 'w32-charset-russian 20866) 401 (w32-add-charset-info "koi8-r" 'w32-charset-russian 20866)
402 (w32-add-charset-info "iso8859-5" 'w32-charset-russian 28595) 402 (w32-add-charset-info "iso8859-5" 'w32-charset-russian 28595)
403 (w32-add-charset-info "tis620" 'w32-charset-thai 874) 403 (w32-add-charset-info "tis620-1" 'w32-charset-thai 874)
404 (w32-add-charset-info "ksc5601.1992" 'w32-charset-johab 1361) 404 (w32-add-charset-info "ksc5601.1992-1" 'w32-charset-johab 1361)
405 (w32-add-charset-info "mac" 'w32-charset-mac nil))) 405 (w32-add-charset-info "mac-latin" 'w32-charset-mac nil)))
406(if (boundp 'w32-unicode-charset-defined) 406(if (boundp 'w32-unicode-charset-defined)
407 (progn 407 (progn
408 (w32-add-charset-info "unicode" 'w32-charset-unicode t)
409 (w32-add-charset-info "iso10646-1" 'w32-charset-unicode t)) 408 (w32-add-charset-info "iso10646-1" 'w32-charset-unicode t))
410 ;; If unicode windows charset is not defined, use ansi fonts. 409 ;; If unicode windows charset is not defined, use ansi fonts.
411 (w32-add-charset-info "iso10646-1" 'w32-charset-ansi t)) 410 (w32-add-charset-info "iso10646-1" 'w32-charset-ansi t))
diff --git a/src/ChangeLog b/src/ChangeLog
index 9cf85ff8929..4cf00fc3c30 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
4
12007-11-09 Jason Rumney <jasonr@gnu.org> 52007-11-09 Jason Rumney <jasonr@gnu.org>
2 6
3 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define. 7 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
diff --git a/src/xdisp.c b/src/xdisp.c
index ed8d54cfaef..eb0fda1fa91 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -4906,7 +4906,7 @@ load_overlay_strings (it, charpos)
4906 j = it->current.overlay_string_index; 4906 j = it->current.overlay_string_index;
4907 while (i < OVERLAY_STRING_CHUNK_SIZE && j < n) 4907 while (i < OVERLAY_STRING_CHUNK_SIZE && j < n)
4908 { 4908 {
4909 it->overlay_strings[i++] = entries[j++].string; 4909 it->overlay_strings[i] = entries[j].string;
4910 it->string_overlays[i++] = entries[j++].overlay; 4910 it->string_overlays[i++] = entries[j++].overlay;
4911 } 4911 }
4912 4912