aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2010-11-17 22:54:14 -0500
committerStefan Monnier2010-11-17 22:54:14 -0500
commit4a47c2757309e338321da1e7a2f6d399a306ce7d (patch)
treede441bac2c90c3302459c5f0ffe9c53ec4b31c2f /src
parent8bbb7dd8a6d08540a81a7a2baa2274d8e6d65c92 (diff)
parentb916cbefa481920a49eac03c7025693f38afc882 (diff)
downloademacs-4a47c2757309e338321da1e7a2f6d399a306ce7d.tar.gz
emacs-4a47c2757309e338321da1e7a2f6d399a306ce7d.zip
Merge from emacs-23
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog21
-rw-r--r--src/config.in3
-rw-r--r--src/keyboard.c10
-rw-r--r--src/lread.c4
-rw-r--r--src/xsettings.c2
5 files changed, 40 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 43a38c6a728..70e646e343d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,24 @@
12010-11-18 Jan Djärv <jan.h.d@swipnet.se>
2
3 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
4
5 * config.in (HAVE_G_TYPE_INIT): New symbol.
6
72010-11-18 Eli Zaretskii <eliz@gnu.org>
8
9 * lread.c (Fload): Mention `load-in-progress' and
10 `load-file-name'. (Bug#7346)
11
12 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
13 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
14 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
15 subprocesses. Use buffer_free only ifdef subprocesses.
16
17 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
18 the subprocesses version, not in the non-subprocesses one.
19
20 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
21
12010-11-17 Eli Zaretskii <eliz@gnu.org> 222010-11-17 Eli Zaretskii <eliz@gnu.org>
2 23
3 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty 24 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
diff --git a/src/config.in b/src/config.in
index 8ccda972395..8d254cefff5 100644
--- a/src/config.in
+++ b/src/config.in
@@ -294,6 +294,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
294/* Define to 1 if you have the `gtk_widget_set_has_window' function. */ 294/* Define to 1 if you have the `gtk_widget_set_has_window' function. */
295#undef HAVE_GTK_WIDGET_SET_HAS_WINDOW 295#undef HAVE_GTK_WIDGET_SET_HAS_WINDOW
296 296
297/* Define to 1 if you have the `g_type_init' function. */
298#undef HAVE_G_TYPE_INIT
299
297/* Define to 1 if netdb.h declares h_errno. */ 300/* Define to 1 if netdb.h declares h_errno. */
298#undef HAVE_H_ERRNO 301#undef HAVE_H_ERRNO
299 302
diff --git a/src/keyboard.c b/src/keyboard.c
index d048404e856..0a6831750de 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -3601,6 +3601,7 @@ event_to_kboard (struct input_event *event)
3601 return FRAME_KBOARD (XFRAME (frame)); 3601 return FRAME_KBOARD (XFRAME (frame));
3602} 3602}
3603 3603
3604#ifdef subprocesses
3604/* Return the number of slots occupied in kbd_buffer. */ 3605/* Return the number of slots occupied in kbd_buffer. */
3605 3606
3606static int 3607static int
@@ -3613,6 +3614,7 @@ kbd_buffer_nr_stored (void)
3613 : ((kbd_buffer + KBD_BUFFER_SIZE) - kbd_fetch_ptr 3614 : ((kbd_buffer + KBD_BUFFER_SIZE) - kbd_fetch_ptr
3614 + (kbd_store_ptr - kbd_buffer))); 3615 + (kbd_store_ptr - kbd_buffer)));
3615} 3616}
3617#endif /* subprocesses */
3616 3618
3617Lisp_Object Vthrow_on_input; 3619Lisp_Object Vthrow_on_input;
3618 3620
@@ -3734,6 +3736,7 @@ kbd_buffer_store_event_hold (register struct input_event *event,
3734 { 3736 {
3735 *kbd_store_ptr = *event; 3737 *kbd_store_ptr = *event;
3736 ++kbd_store_ptr; 3738 ++kbd_store_ptr;
3739#ifdef subprocesses
3737 if (kbd_buffer_nr_stored () > KBD_BUFFER_SIZE/2 && ! kbd_on_hold_p ()) 3740 if (kbd_buffer_nr_stored () > KBD_BUFFER_SIZE/2 && ! kbd_on_hold_p ())
3738 { 3741 {
3739 /* Don't read keyboard input until we have processed kbd_buffer. 3742 /* Don't read keyboard input until we have processed kbd_buffer.
@@ -3745,6 +3748,7 @@ kbd_buffer_store_event_hold (register struct input_event *event,
3745#endif 3748#endif
3746 stop_polling (); 3749 stop_polling ();
3747 } 3750 }
3751#endif /* subprocesses */
3748 } 3752 }
3749 3753
3750 /* If we're inside while-no-input, and this event qualifies 3754 /* If we're inside while-no-input, and this event qualifies
@@ -3905,6 +3909,7 @@ kbd_buffer_get_event (KBOARD **kbp,
3905 register int c; 3909 register int c;
3906 Lisp_Object obj; 3910 Lisp_Object obj;
3907 3911
3912#ifdef subprocesses
3908 if (kbd_on_hold_p () && kbd_buffer_nr_stored () < KBD_BUFFER_SIZE/4) 3913 if (kbd_on_hold_p () && kbd_buffer_nr_stored () < KBD_BUFFER_SIZE/4)
3909 { 3914 {
3910 /* Start reading input again, we have processed enough so we can 3915 /* Start reading input again, we have processed enough so we can
@@ -3916,6 +3921,7 @@ kbd_buffer_get_event (KBOARD **kbp,
3916#endif /* SIGIO */ 3921#endif /* SIGIO */
3917 start_polling (); 3922 start_polling ();
3918 } 3923 }
3924#endif /* subprocesses */
3919 3925
3920 if (noninteractive 3926 if (noninteractive
3921 /* In case we are running as a daemon, only do this before 3927 /* In case we are running as a daemon, only do this before
@@ -7058,10 +7064,12 @@ tty_read_avail_input (struct terminal *terminal,
7058 int n_to_read, i; 7064 int n_to_read, i;
7059 struct tty_display_info *tty = terminal->display_info.tty; 7065 struct tty_display_info *tty = terminal->display_info.tty;
7060 int nread = 0; 7066 int nread = 0;
7067#ifdef subprocesses
7061 int buffer_free = KBD_BUFFER_SIZE - kbd_buffer_nr_stored () - 1; 7068 int buffer_free = KBD_BUFFER_SIZE - kbd_buffer_nr_stored () - 1;
7062 7069
7063 if (kbd_on_hold_p () || buffer_free <= 0) 7070 if (kbd_on_hold_p () || buffer_free <= 0)
7064 return 0; 7071 return 0;
7072#endif /* subprocesses */
7065 7073
7066 if (!terminal->name) /* Don't read from a dead terminal. */ 7074 if (!terminal->name) /* Don't read from a dead terminal. */
7067 return 0; 7075 return 0;
@@ -7143,9 +7151,11 @@ tty_read_avail_input (struct terminal *terminal,
7143#endif 7151#endif
7144#endif 7152#endif
7145 7153
7154#ifdef subprocesses
7146 /* Don't read more than we can store. */ 7155 /* Don't read more than we can store. */
7147 if (n_to_read > buffer_free) 7156 if (n_to_read > buffer_free)
7148 n_to_read = buffer_free; 7157 n_to_read = buffer_free;
7158#endif /* subprocesses */
7149 7159
7150 /* Now read; for one reason or another, this will not block. 7160 /* Now read; for one reason or another, this will not block.
7151 NREAD is set to the number of chars read. */ 7161 NREAD is set to the number of chars read. */
diff --git a/src/lread.c b/src/lread.c
index f1c1bcd44c0..945808c6e5a 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -966,6 +966,10 @@ Loading a file records its definitions, and its `provide' and
966`require' calls, in an element of `load-history' whose 966`require' calls, in an element of `load-history' whose
967car is the file name loaded. See `load-history'. 967car is the file name loaded. See `load-history'.
968 968
969While the file is in the process of being loaded, the variable
970`load-in-progress' is non-nil and the variable `load-file-name'
971is bound to the file's name.
972
969Return t if the file exists and loads successfully. */) 973Return t if the file exists and loads successfully. */)
970 (Lisp_Object file, Lisp_Object noerror, Lisp_Object nomessage, Lisp_Object nosuffix, Lisp_Object must_suffix) 974 (Lisp_Object file, Lisp_Object noerror, Lisp_Object nomessage, Lisp_Object nosuffix, Lisp_Object must_suffix)
971{ 975{
diff --git a/src/xsettings.c b/src/xsettings.c
index b3f3cb61541..83ca87ed0bd 100644
--- a/src/xsettings.c
+++ b/src/xsettings.c
@@ -627,7 +627,9 @@ init_gconf (void)
627#if defined (HAVE_GCONF) && defined (HAVE_XFT) 627#if defined (HAVE_GCONF) && defined (HAVE_XFT)
628 char *s; 628 char *s;
629 629
630#ifdef HAVE_G_TYPE_INIT
630 g_type_init (); 631 g_type_init ();
632#endif
631 gconf_client = gconf_client_get_default (); 633 gconf_client = gconf_client_get_default ();
632 s = gconf_client_get_string (gconf_client, SYSTEM_MONO_FONT, NULL); 634 s = gconf_client_get_string (gconf_client, SYSTEM_MONO_FONT, NULL);
633 if (s) 635 if (s)