aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2011-02-05 14:30:14 -0800
committerGlenn Morris2011-02-05 14:30:14 -0800
commit233ba4d924933cb56129bd7511e6137b7c0b8e3e (patch)
tree741044a058b02f007a55e1fdbe8ac480feba0ada /src
parent827b77e90f4f3a86abfc82a07a8319f5f4cfb3d3 (diff)
parenta60287ff994ec4d07779128f0df5500bed1b3cf9 (diff)
downloademacs-233ba4d924933cb56129bd7511e6137b7c0b8e3e.tar.gz
emacs-233ba4d924933cb56129bd7511e6137b7c0b8e3e.zip
Merge from emacs-23; up to 2010-05-26T14:19:15Z!monnier@iro.umontreal.ca.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog20
-rw-r--r--src/editfns.c3
-rw-r--r--src/ftfont.c6
-rw-r--r--src/window.c2
-rw-r--r--src/xfaces.c4
-rw-r--r--src/xftfont.c6
6 files changed, 36 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 02644342d46..d757a89836d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,23 @@
12011-02-05 Glenn Morris <rgm@gnu.org>
2
3 * xfaces.c (Finternal_set_lisp_face_attribute):
4 Try to clarify some error messages. (Bug#2659)
5
62011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
7
8 * editfns.c (save_restriction_restore): Don't forget to invalidate the
9 current_column cache (bug#7946).
10
112011-02-05 Kenichi Handa <handa@m17n.org>
12
13 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
14
15 * xftfont.c (xftfont_open): Likewise.
16
172011-02-05 Andreas Schwab <schwab@linux-m68k.org>
18
19 * window.c (Fselect_window): Add missing return value.
20
12011-02-05 Paul Eggert <eggert@cs.ucla.edu> 212011-02-05 Paul Eggert <eggert@cs.ucla.edu>
2 22
3 xstrcasecmp: conform to C89 pointer rules 23 xstrcasecmp: conform to C89 pointer rules
diff --git a/src/editfns.c b/src/editfns.c
index 1733580ee32..f70b3312a69 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -3256,6 +3256,9 @@ save_restriction_restore (Lisp_Object data)
3256 } 3256 }
3257 } 3257 }
3258 3258
3259 /* Changing the buffer bounds invalidates any recorded current column. */
3260 invalidate_current_column ();
3261
3259 if (cur) 3262 if (cur)
3260 set_buffer_internal (cur); 3263 set_buffer_internal (cur);
3261 3264
diff --git a/src/ftfont.c b/src/ftfont.c
index 576bc42a6ff..db6b29421dc 100644
--- a/src/ftfont.c
+++ b/src/ftfont.c
@@ -1240,7 +1240,11 @@ ftfont_open (FRAME_PTR f, Lisp_Object entity, int pixel_size)
1240 spacing = XINT (AREF (entity, FONT_SPACING_INDEX)); 1240 spacing = XINT (AREF (entity, FONT_SPACING_INDEX));
1241 else 1241 else
1242 spacing = FC_PROPORTIONAL; 1242 spacing = FC_PROPORTIONAL;
1243 if (spacing != FC_PROPORTIONAL && spacing != FC_DUAL) 1243 if (spacing != FC_PROPORTIONAL
1244#ifdef FC_DUAL
1245 && spacing != FC_DUAL
1246#endif /* FC_DUAL */
1247 )
1244 font->min_width = font->average_width = font->space_width 1248 font->min_width = font->average_width = font->space_width
1245 = (scalable ? ft_face->max_advance_width * size / upEM 1249 = (scalable ? ft_face->max_advance_width * size / upEM
1246 : ft_face->size->metrics.max_advance >> 6); 1250 : ft_face->size->metrics.max_advance >> 6);
diff --git a/src/window.c b/src/window.c
index 41eed893d6a..abf01758c3f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3589,7 +3589,7 @@ Note that the main editor command loop selects the buffer of the
3589selected window before each command. */) 3589selected window before each command. */)
3590 (register Lisp_Object window, Lisp_Object norecord) 3590 (register Lisp_Object window, Lisp_Object norecord)
3591{ 3591{
3592 select_window (window, norecord, 0); 3592 return select_window (window, norecord, 0);
3593} 3593}
3594 3594
3595static Lisp_Object 3595static Lisp_Object
diff --git a/src/xfaces.c b/src/xfaces.c
index e4f9f317b8e..82ad0b9aeb6 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -2899,7 +2899,7 @@ FRAME 0 means change the face on all frames, and change the default
2899 { 2899 {
2900 /* The default face must have an absolute size. */ 2900 /* The default face must have an absolute size. */
2901 if (!INTEGERP (value) || XINT (value) <= 0) 2901 if (!INTEGERP (value) || XINT (value) <= 0)
2902 signal_error ("Invalid default face height", value); 2902 signal_error ("Default face height not absolute and positive", value);
2903 } 2903 }
2904 else 2904 else
2905 { 2905 {
@@ -2909,7 +2909,7 @@ FRAME 0 means change the face on all frames, and change the default
2909 make_number (10), 2909 make_number (10),
2910 Qnil); 2910 Qnil);
2911 if (!INTEGERP (test) || XINT (test) <= 0) 2911 if (!INTEGERP (test) || XINT (test) <= 0)
2912 signal_error ("Invalid face height", value); 2912 signal_error ("Face height does not produce a positive integer", value);
2913 } 2913 }
2914 } 2914 }
2915 2915
diff --git a/src/xftfont.c b/src/xftfont.c
index e7eabc47c39..084ca735171 100644
--- a/src/xftfont.c
+++ b/src/xftfont.c
@@ -411,7 +411,11 @@ xftfont_open (FRAME_PTR f, Lisp_Object entity, int pixel_size)
411 ascii_printable[i] = ' ' + i; 411 ascii_printable[i] = ' ' + i;
412 } 412 }
413 BLOCK_INPUT; 413 BLOCK_INPUT;
414 if (spacing != FC_PROPORTIONAL && spacing != FC_DUAL) 414 if (spacing != FC_PROPORTIONAL
415#ifdef FC_DUAL
416 && spacing != FC_DUAL
417#endif /* FC_DUAL */
418 )
415 { 419 {
416 font->min_width = font->average_width = font->space_width 420 font->min_width = font->average_width = font->space_width
417 = xftfont->max_advance_width; 421 = xftfont->max_advance_width;