aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMiles Bader2007-05-15 07:17:13 +0000
committerMiles Bader2007-05-15 07:17:13 +0000
commit4ace64cc90e38c77c11546fead24782a60eb1d4d (patch)
treeefebad2b13253bfe060be37dccbbbf9603010b7a /src
parent06253b0e7aca3ca2deb2093f187bb52cee09ec5c (diff)
parent9fff44d50016108a350c90c39b68e302277080d7 (diff)
downloademacs-4ace64cc90e38c77c11546fead24782a60eb1d4d.tar.gz
emacs-4ace64cc90e38c77c11546fead24782a60eb1d4d.zip
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 726-750) - Update from CVS - Merge from emacs--rel--22 - Merge from gnus--rel--5.10 * emacs--rel--22 (patch 6-17) - Update from CVS - Update from CVS: src/xterm.c (XTread_socket): Revert last change. * gnus--rel--5.10 (patch 218-221) - Merge from emacs--devo--0, emacs--rel--22 - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-205
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog31
-rw-r--r--src/editfns.c3
-rw-r--r--src/image.c18
-rw-r--r--src/keymap.c5
4 files changed, 49 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 742bfc38249..d8d0894e2ca 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,30 @@
12007-05-14 Chong Yidong <cyd@stupidchicken.com>
2
3 * image.c (pbm_load): Check image size for monochrome pbm.
4
52007-05-13 Chong Yidong <cyd@stupidchicken.com>
6
7 * xterm.c (XTread_socket): Revert last change.
8
92007-05-12 Chong Yidong <cyd@stupidchicken.com>
10
11 * image.c (pbm_load): Correctly check image size for greyscale pbm.
12
13 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
14
152007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
16
17 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object mixup (YAILOM)
18
192007-05-07 Andreas Schwab <schwab@suse.de>
20
21 * keymap.c (Flookup_key): Fix typo in last change.
22
232007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24
25 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26 mapping for unibyte strings.
27
12007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 282007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2 29
3 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c. 30 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
@@ -62,8 +89,8 @@
62 89
632007-04-16 Chong Yidong <cyd@stupidchicken.com> 902007-04-16 Chong Yidong <cyd@stupidchicken.com>
64 91
65 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Set 92 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay):
66 garbaged flag in presence of window margins. 93 Set garbaged flag in presence of window margins.
67 (showing_window_margins_p): New function. 94 (showing_window_margins_p): New function.
68 95
69 * xdisp.c (cursor_row_p): Only end row on newline if it's a 96 * xdisp.c (cursor_row_p): Only end row on newline if it's a
diff --git a/src/editfns.c b/src/editfns.c
index 2e7e4ca235b..6cdd63f2fd1 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -4537,8 +4537,7 @@ Transposing beyond buffer boundaries is an error. */)
4537 fix_start_end_in_overlays (start1, end2); 4537 fix_start_end_in_overlays (start1, end2);
4538 } 4538 }
4539 4539
4540 signal_after_change (XINT (start1), XINT (end2 - start1), 4540 signal_after_change (start1, end2 - start1, end2 - start1);
4541 XINT (end2 - start1));
4542 return Qnil; 4541 return Qnil;
4543} 4542}
4544 4543
diff --git a/src/image.c b/src/image.c
index b8317b1e982..12b27fe359f 100644
--- a/src/image.c
+++ b/src/image.c
@@ -5730,7 +5730,17 @@ pbm_load (f, img)
5730 if (raw_p) 5730 if (raw_p)
5731 { 5731 {
5732 if ((x & 7) == 0) 5732 if ((x & 7) == 0)
5733 c = *p++; 5733 {
5734 if (p >= end)
5735 {
5736 x_destroy_x_image (ximg);
5737 x_clear_image (f, img);
5738 image_error ("Invalid image size in image `%s'",
5739 img->spec, Qnil);
5740 goto error;
5741 }
5742 c = *p++;
5743 }
5734 g = c & 0x80; 5744 g = c & 0x80;
5735 c <<= 1; 5745 c <<= 1;
5736 } 5746 }
@@ -5742,9 +5752,13 @@ pbm_load (f, img)
5742 } 5752 }
5743 else 5753 else
5744 { 5754 {
5745 if (raw_p && (p + 3 * height * width > end)) 5755 if (raw_p
5756 && ((type == PBM_GRAY)
5757 ? (p + height * width > end)
5758 : (p + 3 * height * width > end)))
5746 { 5759 {
5747 x_destroy_x_image (ximg); 5760 x_destroy_x_image (ximg);
5761 x_clear_image (f, img);
5748 image_error ("Invalid image size in image `%s'", 5762 image_error ("Invalid image size in image `%s'",
5749 img->spec, Qnil); 5763 img->spec, Qnil);
5750 goto error; 5764 goto error;
diff --git a/src/keymap.c b/src/keymap.c
index 4a5c53ca626..95534f9efa6 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -1179,7 +1179,8 @@ binding KEY to DEF is added at the front of KEYMAP. */)
1179 if (SYMBOLP (def) && !EQ (Vdefine_key_rebound_commands, Qt)) 1179 if (SYMBOLP (def) && !EQ (Vdefine_key_rebound_commands, Qt))
1180 Vdefine_key_rebound_commands = Fcons (def, Vdefine_key_rebound_commands); 1180 Vdefine_key_rebound_commands = Fcons (def, Vdefine_key_rebound_commands);
1181 1181
1182 meta_bit = VECTORP (key) ? meta_modifier : 0x80; 1182 meta_bit = (VECTORP (key) || STRINGP (key) && STRING_MULTIBYTE (key)
1183 ? meta_modifier : 0x80);
1183 1184
1184 if (VECTORP (def) && ASIZE (def) > 0 && CONSP (AREF (def, 0))) 1185 if (VECTORP (def) && ASIZE (def) > 0 && CONSP (AREF (def, 0)))
1185 { /* DEF is apparently an XEmacs-style keyboard macro. */ 1186 { /* DEF is apparently an XEmacs-style keyboard macro. */
@@ -1345,7 +1346,7 @@ recognize the default bindings, just as `read-key-sequence' does. */)
1345 c = Fevent_convert_list (c); 1346 c = Fevent_convert_list (c);
1346 1347
1347 /* Turn the 8th bit of string chars into a meta modifier. */ 1348 /* Turn the 8th bit of string chars into a meta modifier. */
1348 if (INTEGERP (c) && XINT (c) & 0x80 && STRINGP (key)) 1349 if (STRINGP (key) && XINT (c) & 0x80 && !STRING_MULTIBYTE (key))
1349 XSETINT (c, (XINT (c) | meta_modifier) & ~0x80); 1350 XSETINT (c, (XINT (c) | meta_modifier) & ~0x80);
1350 1351
1351 /* Allow string since binding for `menu-bar-select-buffer' 1352 /* Allow string since binding for `menu-bar-select-buffer'