# HG changeset patch # User Miles Bader # Date 1203898917 0 # Node ID 049a396d6d9dcec31c7788d7aece5f891bef3199 # Parent 16d35e75634b3646bad4d27c6117311acb985f6f# Parent 5193aeec5a421e6da4827db7aed6a3abb0183cd0 Merge from emacs--rel--22 Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1081 diff -r 16d35e75634b -r 049a396d6d9d lisp/ChangeLog --- a/lisp/ChangeLog Mon Feb 25 00:01:54 2008 +0000 +++ b/lisp/ChangeLog Mon Feb 25 00:21:57 2008 +0000 @@ -1,3 +1,7 @@ +2008-02-25 Jason Rumney + + * files.el (file-name-invalid-regexp): Fix octal/decimal confusion. + 2008-02-25 Juri Linkov * isearch.el (isearch-fail): Use "RosyBrown1" for a light diff -r 16d35e75634b -r 049a396d6d9d lisp/ChangeLog.12 --- a/lisp/ChangeLog.12 Mon Feb 25 00:01:54 2008 +0000 +++ b/lisp/ChangeLog.12 Mon Feb 25 00:21:57 2008 +0000 @@ -2595,7 +2595,7 @@ * bookmark.el (bookmark-buffer-file-name): Abbreviate the bookmark path. Rewrite function in `cond' style for readability. - Suggested by: Stephen Eglen . + Suggested by Stephen Eglen . (The path shortening, that is, not the rearrangement.) 2007-01-15 YAMAMOTO Mitsuharu diff -r 16d35e75634b -r 049a396d6d9d lisp/files.el --- a/lisp/files.el Mon Feb 25 00:01:54 2008 +0000 +++ b/lisp/files.el Mon Feb 25 00:21:57 2008 +0000 @@ -226,12 +226,12 @@ (cond ((and (eq system-type 'ms-dos) (not (msdos-long-file-names))) (concat "^\\([^A-Z[-`a-z]\\|..+\\)?:\\|" ; colon except after drive "[+, ;=|<>\"?*]\\|\\[\\|\\]\\|" ; invalid characters - "[\000-\031]\\|" ; control characters + "[\000-\037]\\|" ; control characters "\\(/\\.\\.?[^/]\\)\\|" ; leading dots "\\(/[^/.]+\\.[^/.]*\\.\\)")) ; more than a single dot ((memq system-type '(ms-dos windows-nt cygwin)) (concat "^\\([^A-Z[-`a-z]\\|..+\\)?:\\|" ; colon except after drive - "[|<>\"?*\000-\031]")) ; invalid characters + "[|<>\"?*\000-\037]")) ; invalid characters (t "[\000]")) "Regexp recognizing file names which aren't allowed by the filesystem.") diff -r 16d35e75634b -r 049a396d6d9d src/ChangeLog --- a/src/ChangeLog Mon Feb 25 00:01:54 2008 +0000 +++ b/src/ChangeLog Mon Feb 25 00:21:57 2008 +0000 @@ -1,3 +1,7 @@ +2008-02-25 Jason Rumney + + * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode. + 2008-02-24 Dan Nicolaescu * s/vms4-0.h: diff -r 16d35e75634b -r 049a396d6d9d src/w32fns.c --- a/src/w32fns.c Mon Feb 25 00:01:54 2008 +0000 +++ b/src/w32fns.c Mon Feb 25 00:21:57 2008 +0000 @@ -6063,6 +6063,12 @@ && lpef->logfont.lfCharSet == DEFAULT_CHARSET && strcmp (charset, w32_to_x_charset (DEFAULT_CHARSET, NULL)) != 0) return 1; + + /* Reject raster fonts if we are looking for a unicode font. */ + if (charset + && FontType == RASTER_FONTTYPE + && strncmp (charset, "iso10646", 8) == 0) + return 1; } if (charset) @@ -6079,6 +6085,12 @@ Lisp_Object this_charset = Fcar (charset_list); charset = SDATA (this_charset); + /* Don't list raster fonts as unicode. */ + if (charset + && FontType == RASTER_FONTTYPE + && strncmp (charset, "iso10646", 8) == 0) + continue; + enum_font_maybe_add_to_list (lpef, &(lplf->elfLogFont), charset, width);