diff options
| author | Kenichi Handa | 2010-01-13 10:33:19 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2010-01-13 10:33:19 +0900 |
| commit | d1bf28dc12ef1a0f3cecbf78f38795db27b38574 (patch) | |
| tree | f7030cdefb9d5d8423619e7d70273ae98c011821 /src | |
| parent | dc954cb273234237b615b93b6368d4adbdea31c4 (diff) | |
| parent | ca22a44072c65a233af5b4c12256dc5fd266cb85 (diff) | |
| download | emacs-d1bf28dc12ef1a0f3cecbf78f38795db27b38574.tar.gz emacs-d1bf28dc12ef1a0f3cecbf78f38795db27b38574.zip | |
merge trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 14 | ||||
| -rw-r--r-- | src/emacs.c | 6 | ||||
| -rw-r--r-- | src/keyboard.c | 12 |
3 files changed, 28 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 55e69ff9340..6e3fc4ff1c5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -16,6 +16,20 @@ | |||
| 16 | * composite.c (composition_reseat_it): Don't check PT if STRING is | 16 | * composite.c (composition_reseat_it): Don't check PT if STRING is |
| 17 | non nil. | 17 | non nil. |
| 18 | 18 | ||
| 19 | 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 20 | |||
| 21 | * keyboard.c (read_char): Don't apply previous change when current | ||
| 22 | buffer is unchanged by command execution. | ||
| 23 | |||
| 24 | 2010-01-12 Jan Djärv <jan.h.d@swipnet.se> | ||
| 25 | |||
| 26 | * keyboard.c (read_char): Return after executing from special map. | ||
| 27 | |||
| 28 | 2010-01-12 Glenn Morris <rgm@gnu.org> | ||
| 29 | |||
| 30 | * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to | ||
| 31 | bug-gnu-emacs rather than emacs-pretest-bug. | ||
| 32 | |||
| 19 | 2010-01-11 Chong Yidong <cyd@stupidchicken.com> | 33 | 2010-01-11 Chong Yidong <cyd@stupidchicken.com> |
| 20 | 34 | ||
| 21 | * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before | 35 | * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before |
diff --git a/src/emacs.c b/src/emacs.c index 8b88985969b..dc19c13e8a8 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* Fully extensible Emacs, running on Unix, intended for GNU. | 1 | /* Fully extensible Emacs, running on Unix, intended for GNU. |
| 2 | Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1997, 1998, 1999, | 2 | Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1997, 1998, 1999, |
| 3 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 | 3 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, |
| 4 | Free Software Foundation, Inc. | 4 | 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 7 | 7 | ||
| @@ -747,7 +747,7 @@ void (*__malloc_initialize_hook) () = malloc_initialize_hook; | |||
| 747 | 747 | ||
| 748 | 748 | ||
| 749 | #define REPORT_EMACS_BUG_ADDRESS "bug-gnu-emacs@gnu.org" | 749 | #define REPORT_EMACS_BUG_ADDRESS "bug-gnu-emacs@gnu.org" |
| 750 | #define REPORT_EMACS_BUG_PRETEST_ADDRESS "emacs-pretest-bug@gnu.org" | 750 | #define REPORT_EMACS_BUG_PRETEST_ADDRESS "bug-gnu-emacs@gnu.org" |
| 751 | 751 | ||
| 752 | /* This function is used to determine an address to which bug report should | 752 | /* This function is used to determine an address to which bug report should |
| 753 | be sent. */ | 753 | be sent. */ |
diff --git a/src/keyboard.c b/src/keyboard.c index 13d13cd3276..3b57c6e470f 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -3155,6 +3155,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu, end_time) | |||
| 3155 | 3155 | ||
| 3156 | if (!NILP (tem)) | 3156 | if (!NILP (tem)) |
| 3157 | { | 3157 | { |
| 3158 | struct buffer *prev_buffer = current_buffer; | ||
| 3158 | #if 0 /* This shouldn't be necessary anymore. --lorentey */ | 3159 | #if 0 /* This shouldn't be necessary anymore. --lorentey */ |
| 3159 | int was_locked = single_kboard; | 3160 | int was_locked = single_kboard; |
| 3160 | int count = SPECPDL_INDEX (); | 3161 | int count = SPECPDL_INDEX (); |
| @@ -3178,7 +3179,16 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu, end_time) | |||
| 3178 | unbind_to (count, Qnil); | 3179 | unbind_to (count, Qnil); |
| 3179 | #endif | 3180 | #endif |
| 3180 | 3181 | ||
| 3181 | goto retry; | 3182 | if (current_buffer != prev_buffer) |
| 3183 | { | ||
| 3184 | /* The command may have changed the keymaps. Pretend there | ||
| 3185 | is input in another keyboard and return. This will | ||
| 3186 | recalculate keymaps. */ | ||
| 3187 | c = make_number (-2); | ||
| 3188 | goto exit; | ||
| 3189 | } | ||
| 3190 | else | ||
| 3191 | goto retry; | ||
| 3182 | } | 3192 | } |
| 3183 | 3193 | ||
| 3184 | /* Handle things that only apply to characters. */ | 3194 | /* Handle things that only apply to characters. */ |