diff options
| author | Dmitry Antipov | 2012-12-26 13:40:45 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-12-26 13:40:45 +0400 |
| commit | 4b298d5a3e0d5fb75f66c48598e80122669cef8b (patch) | |
| tree | 747aaa0665af3e8d69c8ea89f043de1c32cdf5b9 /src | |
| parent | a8e1690bbde896247359c967b15b6e0b8cac1a69 (diff) | |
| download | emacs-4b298d5a3e0d5fb75f66c48598e80122669cef8b.tar.gz emacs-4b298d5a3e0d5fb75f66c48598e80122669cef8b.zip | |
* keyboard.c (record_asynch_buffer_change): Initialize an event
only if it's really needed.
* frame.h (enum output_method): Remove output_mac member since
it's a leftover from the deleted code.
* frame.c (Fframep): Adjust user here ...
* terminal.c (Fterminal_live_p): ... and here.
* coding.c (Qmac): Now here because it's only used to denote
end-of-line encoding type.
(syms_of_coding): DEFSYM it.
* frame.h (Qmac): Remove duplicated declaration.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 13 | ||||
| -rw-r--r-- | src/coding.c | 3 | ||||
| -rw-r--r-- | src/frame.c | 4 | ||||
| -rw-r--r-- | src/frame.h | 3 | ||||
| -rw-r--r-- | src/keyboard.c | 38 | ||||
| -rw-r--r-- | src/terminal.c | 2 |
6 files changed, 35 insertions, 28 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 91fa2cb5f6e..8a228214507 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,16 @@ | |||
| 1 | 2012-12-26 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | * keyboard.c (record_asynch_buffer_change): Initialize an event | ||
| 4 | only if it's really needed. | ||
| 5 | * frame.h (enum output_method): Remove output_mac member since | ||
| 6 | it's a leftover from the deleted code. | ||
| 7 | * frame.c (Fframep): Adjust user here ... | ||
| 8 | * terminal.c (Fterminal_live_p): ... and here. | ||
| 9 | * coding.c (Qmac): Now here because it's only used to denote | ||
| 10 | end-of-line encoding type. | ||
| 11 | (syms_of_coding): DEFSYM it. | ||
| 12 | * frame.h (Qmac): Remove duplicated declaration. | ||
| 13 | |||
| 1 | 2012-12-26 Paul Eggert <eggert@cs.ucla.edu> | 14 | 2012-12-26 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 15 | ||
| 3 | * window.c (select_window_1): Now static, since it's used only here. | 16 | * window.c (select_window_1): Now static, since it's used only here. |
diff --git a/src/coding.c b/src/coding.c index e42461f52a0..2c1139ec5fc 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -301,7 +301,7 @@ Lisp_Object Vcoding_system_hash_table; | |||
| 301 | 301 | ||
| 302 | static Lisp_Object Qcoding_system, Qeol_type; | 302 | static Lisp_Object Qcoding_system, Qeol_type; |
| 303 | static Lisp_Object Qcoding_aliases; | 303 | static Lisp_Object Qcoding_aliases; |
| 304 | Lisp_Object Qunix, Qdos; | 304 | Lisp_Object Qunix, Qdos, Qmac; |
| 305 | Lisp_Object Qbuffer_file_coding_system; | 305 | Lisp_Object Qbuffer_file_coding_system; |
| 306 | static Lisp_Object Qpost_read_conversion, Qpre_write_conversion; | 306 | static Lisp_Object Qpost_read_conversion, Qpre_write_conversion; |
| 307 | static Lisp_Object Qdefault_char; | 307 | static Lisp_Object Qdefault_char; |
| @@ -10303,6 +10303,7 @@ syms_of_coding (void) | |||
| 10303 | DEFSYM (Qeol_type, "eol-type"); | 10303 | DEFSYM (Qeol_type, "eol-type"); |
| 10304 | DEFSYM (Qunix, "unix"); | 10304 | DEFSYM (Qunix, "unix"); |
| 10305 | DEFSYM (Qdos, "dos"); | 10305 | DEFSYM (Qdos, "dos"); |
| 10306 | DEFSYM (Qmac, "mac"); | ||
| 10306 | 10307 | ||
| 10307 | DEFSYM (Qbuffer_file_coding_system, "buffer-file-coding-system"); | 10308 | DEFSYM (Qbuffer_file_coding_system, "buffer-file-coding-system"); |
| 10308 | DEFSYM (Qpost_read_conversion, "post-read-conversion"); | 10309 | DEFSYM (Qpost_read_conversion, "post-read-conversion"); |
diff --git a/src/frame.c b/src/frame.c index 5cefad6ca46..a52394e481c 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -60,7 +60,7 @@ Lisp_Object Qns_parse_geometry; | |||
| 60 | Lisp_Object Qframep, Qframe_live_p; | 60 | Lisp_Object Qframep, Qframe_live_p; |
| 61 | Lisp_Object Qicon, Qmodeline; | 61 | Lisp_Object Qicon, Qmodeline; |
| 62 | Lisp_Object Qonly, Qnone; | 62 | Lisp_Object Qonly, Qnone; |
| 63 | Lisp_Object Qx, Qw32, Qmac, Qpc, Qns; | 63 | Lisp_Object Qx, Qw32, Qpc, Qns; |
| 64 | Lisp_Object Qvisible; | 64 | Lisp_Object Qvisible; |
| 65 | Lisp_Object Qdisplay_type; | 65 | Lisp_Object Qdisplay_type; |
| 66 | static Lisp_Object Qbackground_mode; | 66 | static Lisp_Object Qbackground_mode; |
| @@ -225,8 +225,6 @@ See also `frame-live-p'. */) | |||
| 225 | return Qw32; | 225 | return Qw32; |
| 226 | case output_msdos_raw: | 226 | case output_msdos_raw: |
| 227 | return Qpc; | 227 | return Qpc; |
| 228 | case output_mac: | ||
| 229 | return Qmac; | ||
| 230 | case output_ns: | 228 | case output_ns: |
| 231 | return Qns; | 229 | return Qns; |
| 232 | default: | 230 | default: |
diff --git a/src/frame.h b/src/frame.h index 589b45fc0ff..74350b97122 100644 --- a/src/frame.h +++ b/src/frame.h | |||
| @@ -46,7 +46,6 @@ enum output_method | |||
| 46 | output_x_window, | 46 | output_x_window, |
| 47 | output_msdos_raw, | 47 | output_msdos_raw, |
| 48 | output_w32, | 48 | output_w32, |
| 49 | output_mac, | ||
| 50 | output_ns | 49 | output_ns |
| 51 | }; | 50 | }; |
| 52 | 51 | ||
| @@ -1178,7 +1177,7 @@ extern Lisp_Object Qalpha; | |||
| 1178 | extern Lisp_Object Qleft_fringe, Qright_fringe; | 1177 | extern Lisp_Object Qleft_fringe, Qright_fringe; |
| 1179 | extern Lisp_Object Qheight, Qwidth; | 1178 | extern Lisp_Object Qheight, Qwidth; |
| 1180 | extern Lisp_Object Qminibuffer, Qmodeline; | 1179 | extern Lisp_Object Qminibuffer, Qmodeline; |
| 1181 | extern Lisp_Object Qx, Qw32, Qmac, Qpc, Qns; | 1180 | extern Lisp_Object Qx, Qw32, Qpc, Qns; |
| 1182 | extern Lisp_Object Qvisible; | 1181 | extern Lisp_Object Qvisible; |
| 1183 | extern Lisp_Object Qdisplay_type; | 1182 | extern Lisp_Object Qdisplay_type; |
| 1184 | 1183 | ||
diff --git a/src/keyboard.c b/src/keyboard.c index e2a0e23dd4a..582c3598717 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -6700,37 +6700,35 @@ get_input_pending (int flags) | |||
| 6700 | void | 6700 | void |
| 6701 | record_asynch_buffer_change (void) | 6701 | record_asynch_buffer_change (void) |
| 6702 | { | 6702 | { |
| 6703 | struct input_event event; | ||
| 6704 | Lisp_Object tem; | ||
| 6705 | EVENT_INIT (event); | ||
| 6706 | |||
| 6707 | event.kind = BUFFER_SWITCH_EVENT; | ||
| 6708 | event.frame_or_window = Qnil; | ||
| 6709 | event.arg = Qnil; | ||
| 6710 | |||
| 6711 | /* We don't need a buffer-switch event unless Emacs is waiting for input. | 6703 | /* We don't need a buffer-switch event unless Emacs is waiting for input. |
| 6712 | The purpose of the event is to make read_key_sequence look up the | 6704 | The purpose of the event is to make read_key_sequence look up the |
| 6713 | keymaps again. If we aren't in read_key_sequence, we don't need one, | 6705 | keymaps again. If we aren't in read_key_sequence, we don't need one, |
| 6714 | and the event could cause trouble by messing up (input-pending-p). | 6706 | and the event could cause trouble by messing up (input-pending-p). |
| 6715 | Note: Fwaiting_for_user_input_p always returns nil when async | 6707 | Note: Fwaiting_for_user_input_p always returns nil when async |
| 6716 | subprocesses aren't supported. */ | 6708 | subprocesses aren't supported. */ |
| 6717 | tem = Fwaiting_for_user_input_p (); | 6709 | if (!NILP (Fwaiting_for_user_input_p ())) |
| 6718 | if (NILP (tem)) | 6710 | { |
| 6719 | return; | 6711 | struct input_event event; |
| 6712 | |||
| 6713 | EVENT_INIT (event); | ||
| 6714 | event.kind = BUFFER_SWITCH_EVENT; | ||
| 6715 | event.frame_or_window = Qnil; | ||
| 6716 | event.arg = Qnil; | ||
| 6720 | 6717 | ||
| 6721 | /* Make sure no interrupt happens while storing the event. */ | 6718 | /* Make sure no interrupt happens while storing the event. */ |
| 6722 | #ifdef USABLE_SIGIO | 6719 | #ifdef USABLE_SIGIO |
| 6723 | if (interrupt_input) | 6720 | if (interrupt_input) |
| 6724 | kbd_buffer_store_event (&event); | 6721 | kbd_buffer_store_event (&event); |
| 6725 | else | 6722 | else |
| 6726 | #endif | 6723 | #endif |
| 6727 | { | 6724 | { |
| 6728 | stop_polling (); | 6725 | stop_polling (); |
| 6729 | kbd_buffer_store_event (&event); | 6726 | kbd_buffer_store_event (&event); |
| 6730 | start_polling (); | 6727 | start_polling (); |
| 6728 | } | ||
| 6731 | } | 6729 | } |
| 6732 | } | 6730 | } |
| 6733 | 6731 | ||
| 6734 | /* Read any terminal input already buffered up by the system | 6732 | /* Read any terminal input already buffered up by the system |
| 6735 | into the kbd_buffer, but do not wait. | 6733 | into the kbd_buffer, but do not wait. |
| 6736 | 6734 | ||
diff --git a/src/terminal.c b/src/terminal.c index 854ca61f19c..5eaaeb45880 100644 --- a/src/terminal.c +++ b/src/terminal.c | |||
| @@ -398,8 +398,6 @@ possible return values. */) | |||
| 398 | return Qw32; | 398 | return Qw32; |
| 399 | case output_msdos_raw: | 399 | case output_msdos_raw: |
| 400 | return Qpc; | 400 | return Qpc; |
| 401 | case output_mac: | ||
| 402 | return Qmac; | ||
| 403 | case output_ns: | 401 | case output_ns: |
| 404 | return Qns; | 402 | return Qns; |
| 405 | default: | 403 | default: |