aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoakim Verona2012-12-26 10:46:21 +0100
committerJoakim Verona2012-12-26 10:46:21 +0100
commit899ca8176f7d38daeed5456f82717a6deb6560f9 (patch)
tree4f640f3ba0883c6b534abf60e68261483c9c441e /src
parent33d58dfa55bce32831a0b88f41f0fd9a0449fd17 (diff)
parent4b298d5a3e0d5fb75f66c48598e80122669cef8b (diff)
downloademacs-899ca8176f7d38daeed5456f82717a6deb6560f9.tar.gz
emacs-899ca8176f7d38daeed5456f82717a6deb6560f9.zip
auto upstream
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog13
-rw-r--r--src/coding.c3
-rw-r--r--src/frame.c4
-rw-r--r--src/frame.h3
-rw-r--r--src/keyboard.c38
-rw-r--r--src/terminal.c2
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 @@
12012-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
12012-12-26 Paul Eggert <eggert@cs.ucla.edu> 142012-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
302static Lisp_Object Qcoding_system, Qeol_type; 302static Lisp_Object Qcoding_system, Qeol_type;
303static Lisp_Object Qcoding_aliases; 303static Lisp_Object Qcoding_aliases;
304Lisp_Object Qunix, Qdos; 304Lisp_Object Qunix, Qdos, Qmac;
305Lisp_Object Qbuffer_file_coding_system; 305Lisp_Object Qbuffer_file_coding_system;
306static Lisp_Object Qpost_read_conversion, Qpre_write_conversion; 306static Lisp_Object Qpost_read_conversion, Qpre_write_conversion;
307static Lisp_Object Qdefault_char; 307static 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;
60Lisp_Object Qframep, Qframe_live_p; 60Lisp_Object Qframep, Qframe_live_p;
61Lisp_Object Qicon, Qmodeline; 61Lisp_Object Qicon, Qmodeline;
62Lisp_Object Qonly, Qnone; 62Lisp_Object Qonly, Qnone;
63Lisp_Object Qx, Qw32, Qmac, Qpc, Qns; 63Lisp_Object Qx, Qw32, Qpc, Qns;
64Lisp_Object Qvisible; 64Lisp_Object Qvisible;
65Lisp_Object Qdisplay_type; 65Lisp_Object Qdisplay_type;
66static Lisp_Object Qbackground_mode; 66static 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;
1178extern Lisp_Object Qleft_fringe, Qright_fringe; 1177extern Lisp_Object Qleft_fringe, Qright_fringe;
1179extern Lisp_Object Qheight, Qwidth; 1178extern Lisp_Object Qheight, Qwidth;
1180extern Lisp_Object Qminibuffer, Qmodeline; 1179extern Lisp_Object Qminibuffer, Qmodeline;
1181extern Lisp_Object Qx, Qw32, Qmac, Qpc, Qns; 1180extern Lisp_Object Qx, Qw32, Qpc, Qns;
1182extern Lisp_Object Qvisible; 1181extern Lisp_Object Qvisible;
1183extern Lisp_Object Qdisplay_type; 1182extern Lisp_Object Qdisplay_type;
1184 1183
diff --git a/src/keyboard.c b/src/keyboard.c
index 5316ee98692..74c3d156c78 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -6719,37 +6719,35 @@ get_input_pending (int flags)
6719void 6719void
6720record_asynch_buffer_change (void) 6720record_asynch_buffer_change (void)
6721{ 6721{
6722 struct input_event event;
6723 Lisp_Object tem;
6724 EVENT_INIT (event);
6725
6726 event.kind = BUFFER_SWITCH_EVENT;
6727 event.frame_or_window = Qnil;
6728 event.arg = Qnil;
6729
6730 /* We don't need a buffer-switch event unless Emacs is waiting for input. 6722 /* We don't need a buffer-switch event unless Emacs is waiting for input.
6731 The purpose of the event is to make read_key_sequence look up the 6723 The purpose of the event is to make read_key_sequence look up the
6732 keymaps again. If we aren't in read_key_sequence, we don't need one, 6724 keymaps again. If we aren't in read_key_sequence, we don't need one,
6733 and the event could cause trouble by messing up (input-pending-p). 6725 and the event could cause trouble by messing up (input-pending-p).
6734 Note: Fwaiting_for_user_input_p always returns nil when async 6726 Note: Fwaiting_for_user_input_p always returns nil when async
6735 subprocesses aren't supported. */ 6727 subprocesses aren't supported. */
6736 tem = Fwaiting_for_user_input_p (); 6728 if (!NILP (Fwaiting_for_user_input_p ()))
6737 if (NILP (tem)) 6729 {
6738 return; 6730 struct input_event event;
6731
6732 EVENT_INIT (event);
6733 event.kind = BUFFER_SWITCH_EVENT;
6734 event.frame_or_window = Qnil;
6735 event.arg = Qnil;
6739 6736
6740 /* Make sure no interrupt happens while storing the event. */ 6737 /* Make sure no interrupt happens while storing the event. */
6741#ifdef USABLE_SIGIO 6738#ifdef USABLE_SIGIO
6742 if (interrupt_input) 6739 if (interrupt_input)
6743 kbd_buffer_store_event (&event); 6740 kbd_buffer_store_event (&event);
6744 else 6741 else
6745#endif 6742#endif
6746 { 6743 {
6747 stop_polling (); 6744 stop_polling ();
6748 kbd_buffer_store_event (&event); 6745 kbd_buffer_store_event (&event);
6749 start_polling (); 6746 start_polling ();
6747 }
6750 } 6748 }
6751} 6749}
6752 6750
6753/* Read any terminal input already buffered up by the system 6751/* Read any terminal input already buffered up by the system
6754 into the kbd_buffer, but do not wait. 6752 into the kbd_buffer, but do not wait.
6755 6753
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: