diff options
| author | Andreas Schwab | 2008-07-28 12:25:11 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2008-07-28 12:25:11 +0000 |
| commit | ddaa36e16efa267f40158baca709a58d2d748743 (patch) | |
| tree | 0f2975e0a7d7babd50c7870800120516f6ca0880 /src | |
| parent | d5875b259c24498d742b526d690abe1e59584b6c (diff) | |
| download | emacs-ddaa36e16efa267f40158baca709a58d2d748743.tar.gz emacs-ddaa36e16efa267f40158baca709a58d2d748743.zip | |
* lisp.h (init_weak_hash_tables, syms_of_font)
(xd_read_queued_messages, syms_of_dbusbind): Declare.
(remove_hash_entry): Don't declare.
* eval.c (maybe_call_debugger): Make static and move before use.
* gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
* xdisp.c: Include "gtkutil.h" if USE_GTK.
* xterm.h (x_set_frame_alpha): Declare.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/eval.c | 60 | ||||
| -rw-r--r-- | src/gtkutil.c | 3 | ||||
| -rw-r--r-- | src/lisp.h | 11 | ||||
| -rw-r--r-- | src/xdisp.c | 3 | ||||
| -rw-r--r-- | src/xterm.h | 1 |
6 files changed, 57 insertions, 31 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3bf0a6a9b13..bde16b646a8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2008-07-28 Andreas Schwab <schwab@suse.de> | ||
| 2 | |||
| 3 | * lisp.h (init_weak_hash_tables, syms_of_font) | ||
| 4 | (xd_read_queued_messages, syms_of_dbusbind): Declare. | ||
| 5 | (remove_hash_entry): Don't declare. | ||
| 6 | * eval.c (maybe_call_debugger): Make static and move before use. | ||
| 7 | * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT. | ||
| 8 | * xdisp.c: Include "gtkutil.h" if USE_GTK. | ||
| 9 | * xterm.h (x_set_frame_alpha): Declare. | ||
| 10 | |||
| 1 | 2008-07-28 Jan Djärv <jan.h.d@swipnet.se> | 11 | 2008-07-28 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 12 | ||
| 3 | * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24. | 13 | * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24. |
diff --git a/src/eval.c b/src/eval.c index 045d6090a3f..fc69f8bb807 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -1875,6 +1875,36 @@ skip_debugger (conditions, data) | |||
| 1875 | return 0; | 1875 | return 0; |
| 1876 | } | 1876 | } |
| 1877 | 1877 | ||
| 1878 | /* Call the debugger if calling it is currently enabled for CONDITIONS. | ||
| 1879 | SIG and DATA describe the signal, as in find_handler_clause. */ | ||
| 1880 | |||
| 1881 | static int | ||
| 1882 | maybe_call_debugger (conditions, sig, data) | ||
| 1883 | Lisp_Object conditions, sig, data; | ||
| 1884 | { | ||
| 1885 | Lisp_Object combined_data; | ||
| 1886 | |||
| 1887 | combined_data = Fcons (sig, data); | ||
| 1888 | |||
| 1889 | if ( | ||
| 1890 | /* Don't try to run the debugger with interrupts blocked. | ||
| 1891 | The editing loop would return anyway. */ | ||
| 1892 | ! INPUT_BLOCKED_P | ||
| 1893 | /* Does user want to enter debugger for this kind of error? */ | ||
| 1894 | && (EQ (sig, Qquit) | ||
| 1895 | ? debug_on_quit | ||
| 1896 | : wants_debugger (Vdebug_on_error, conditions)) | ||
| 1897 | && ! skip_debugger (conditions, combined_data) | ||
| 1898 | /* rms: what's this for? */ | ||
| 1899 | && when_entered_debugger < num_nonmacro_input_events) | ||
| 1900 | { | ||
| 1901 | call_debugger (Fcons (Qerror, Fcons (combined_data, Qnil))); | ||
| 1902 | return 1; | ||
| 1903 | } | ||
| 1904 | |||
| 1905 | return 0; | ||
| 1906 | } | ||
| 1907 | |||
| 1878 | /* Value of Qlambda means we have called debugger and user has continued. | 1908 | /* Value of Qlambda means we have called debugger and user has continued. |
| 1879 | There are two ways to pass SIG and DATA: | 1909 | There are two ways to pass SIG and DATA: |
| 1880 | = SIG is the error symbol, and DATA is the rest of the data. | 1910 | = SIG is the error symbol, and DATA is the rest of the data. |
| @@ -1975,36 +2005,6 @@ find_handler_clause (handlers, conditions, sig, data) | |||
| 1975 | return Qnil; | 2005 | return Qnil; |
| 1976 | } | 2006 | } |
| 1977 | 2007 | ||
| 1978 | /* Call the debugger if calling it is currently enabled for CONDITIONS. | ||
| 1979 | SIG and DATA describe the signal, as in find_handler_clause. */ | ||
| 1980 | |||
| 1981 | int | ||
| 1982 | maybe_call_debugger (conditions, sig, data) | ||
| 1983 | Lisp_Object conditions, sig, data; | ||
| 1984 | { | ||
| 1985 | Lisp_Object combined_data; | ||
| 1986 | |||
| 1987 | combined_data = Fcons (sig, data); | ||
| 1988 | |||
| 1989 | if ( | ||
| 1990 | /* Don't try to run the debugger with interrupts blocked. | ||
| 1991 | The editing loop would return anyway. */ | ||
| 1992 | ! INPUT_BLOCKED_P | ||
| 1993 | /* Does user wants to enter debugger for this kind of error? */ | ||
| 1994 | && (EQ (sig, Qquit) | ||
| 1995 | ? debug_on_quit | ||
| 1996 | : wants_debugger (Vdebug_on_error, conditions)) | ||
| 1997 | && ! skip_debugger (conditions, combined_data) | ||
| 1998 | /* rms: what's this for? */ | ||
| 1999 | && when_entered_debugger < num_nonmacro_input_events) | ||
| 2000 | { | ||
| 2001 | call_debugger (Fcons (Qerror, Fcons (combined_data, Qnil))); | ||
| 2002 | return 1; | ||
| 2003 | } | ||
| 2004 | |||
| 2005 | return 0; | ||
| 2006 | } | ||
| 2007 | |||
| 2008 | /* dump an error message; called like printf */ | 2008 | /* dump an error message; called like printf */ |
| 2009 | 2009 | ||
| 2010 | /* VARARGS 1 */ | 2010 | /* VARARGS 1 */ |
diff --git a/src/gtkutil.c b/src/gtkutil.c index 2d47068293b..65b67e3d241 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -36,6 +36,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 36 | #include "coding.h" | 36 | #include "coding.h" |
| 37 | #include <gdk/gdkkeysyms.h> | 37 | #include <gdk/gdkkeysyms.h> |
| 38 | 38 | ||
| 39 | #ifdef HAVE_XFT | ||
| 40 | #include <X11/Xft/Xft.h> | ||
| 41 | #endif | ||
| 39 | 42 | ||
| 40 | #define FRAME_TOTAL_PIXEL_HEIGHT(f) \ | 43 | #define FRAME_TOTAL_PIXEL_HEIGHT(f) \ |
| 41 | (FRAME_PIXEL_HEIGHT (f) + FRAME_MENUBAR_HEIGHT (f) + FRAME_TOOLBAR_HEIGHT (f)) | 44 | (FRAME_PIXEL_HEIGHT (f) + FRAME_MENUBAR_HEIGHT (f) + FRAME_TOOLBAR_HEIGHT (f)) |
diff --git a/src/lisp.h b/src/lisp.h index 872a8c9d99f..d7fcd0a178c 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -2350,7 +2350,7 @@ int hash_lookup P_ ((struct Lisp_Hash_Table *, Lisp_Object, unsigned *)); | |||
| 2350 | int hash_put P_ ((struct Lisp_Hash_Table *, Lisp_Object, Lisp_Object, | 2350 | int hash_put P_ ((struct Lisp_Hash_Table *, Lisp_Object, Lisp_Object, |
| 2351 | unsigned)); | 2351 | unsigned)); |
| 2352 | void hash_clear P_ ((struct Lisp_Hash_Table *)); | 2352 | void hash_clear P_ ((struct Lisp_Hash_Table *)); |
| 2353 | void remove_hash_entry P_ ((struct Lisp_Hash_Table *, int)); | 2353 | void init_weak_hash_tables P_ ((void)); |
| 2354 | extern void init_fns P_ ((void)); | 2354 | extern void init_fns P_ ((void)); |
| 2355 | EXFUN (Fsxhash, 1); | 2355 | EXFUN (Fsxhash, 1); |
| 2356 | EXFUN (Fmake_hash_table, MANY); | 2356 | EXFUN (Fmake_hash_table, MANY); |
| @@ -3285,6 +3285,9 @@ extern void fatal P_ ((const char *msgid, ...)) NO_RETURN; | |||
| 3285 | EXFUN (Fdelete_terminal, 2); | 3285 | EXFUN (Fdelete_terminal, 2); |
| 3286 | extern void syms_of_terminal P_ ((void)); | 3286 | extern void syms_of_terminal P_ ((void)); |
| 3287 | 3287 | ||
| 3288 | /* Defined in font.c */ | ||
| 3289 | extern void syms_of_font P_ ((void)); | ||
| 3290 | |||
| 3288 | #ifdef HAVE_WINDOW_SYSTEM | 3291 | #ifdef HAVE_WINDOW_SYSTEM |
| 3289 | /* Defined in fontset.c */ | 3292 | /* Defined in fontset.c */ |
| 3290 | extern void syms_of_fontset P_ ((void)); | 3293 | extern void syms_of_fontset P_ ((void)); |
| @@ -3329,6 +3332,12 @@ EXFUN (Fmsdos_downcase_filename, 1); | |||
| 3329 | /* Defined in (x|w32)fns.c... */ | 3332 | /* Defined in (x|w32)fns.c... */ |
| 3330 | extern int have_menus_p P_ ((void)); | 3333 | extern int have_menus_p P_ ((void)); |
| 3331 | #endif | 3334 | #endif |
| 3335 | |||
| 3336 | #ifdef HAVE_DBUS | ||
| 3337 | /* Defined in dbusbind.c */ | ||
| 3338 | void xd_read_queued_messages P_ ((void)); | ||
| 3339 | void syms_of_dbusbind P_ ((void)); | ||
| 3340 | #endif | ||
| 3332 | 3341 | ||
| 3333 | /* Nonzero means Emacs has already been initialized. | 3342 | /* Nonzero means Emacs has already been initialized. |
| 3334 | Used during startup to detect startup of dumped Emacs. */ | 3343 | Used during startup to detect startup of dumped Emacs. */ |
diff --git a/src/xdisp.c b/src/xdisp.c index ba8ff1b6857..88882cf1a1d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -199,6 +199,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 199 | #ifdef HAVE_NS | 199 | #ifdef HAVE_NS |
| 200 | #include "nsterm.h" | 200 | #include "nsterm.h" |
| 201 | #endif | 201 | #endif |
| 202 | #ifdef USE_GTK | ||
| 203 | #include "gtkutil.h" | ||
| 204 | #endif | ||
| 202 | 205 | ||
| 203 | #include "font.h" | 206 | #include "font.h" |
| 204 | 207 | ||
diff --git a/src/xterm.h b/src/xterm.h index 581f8ca23c3..36438834020 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -385,6 +385,7 @@ extern Lisp_Object Vx_pixel_size_width_font_regexp; | |||
| 385 | 385 | ||
| 386 | extern struct x_display_info *x_display_info_for_display P_ ((Display *)); | 386 | extern struct x_display_info *x_display_info_for_display P_ ((Display *)); |
| 387 | extern struct x_display_info *x_display_info_for_name P_ ((Lisp_Object)); | 387 | extern struct x_display_info *x_display_info_for_name P_ ((Lisp_Object)); |
| 388 | extern void x_set_frame_alpha P_ ((struct frame *)); | ||
| 388 | 389 | ||
| 389 | extern struct x_display_info *x_term_init P_ ((Lisp_Object, char *, char *)); | 390 | extern struct x_display_info *x_term_init P_ ((Lisp_Object, char *, char *)); |
| 390 | extern int x_display_ok P_ ((const char *)); | 391 | extern int x_display_ok P_ ((const char *)); |