Dan Nicolaescu
db87892598
* dispnew.c (window_change_signal): Don't try to get the size of a
...
suspended tty frame.
* term.c (Fresume_tty): Resize if the size has changed while the
tty was suspended.
2009-01-30 23:45:27 +00:00
Dan Nicolaescu
4d18a7a28e
(mark_stack): Properly conditionalize previous change.
2009-01-30 23:43:20 +00:00
Juanma Barranquero
8984df7cbd
* w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
...
* w32term.c (w32_read_socket) [SYNC_INPUT]:
Remove; this code is not used on Windows.
2009-01-30 18:01:40 +00:00
Eli Zaretskii
75f4f1ac04
(detect_eol, decode_eol): Handle text with DOS-style EOLs that also has
...
stray ^M characters.
2009-01-30 15:46:03 +00:00
Juanma Barranquero
07a1e79441
* atimer.c (run_timers, alarm_signal_handler):
...
* keyboard.c (pending_signals, handle_async_input, init_keyboard):
* w32inevt.c (w32_console_read_socket):
* w32term.c (w32_read_socket):
* xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
2009-01-30 13:06:07 +00:00
Chong Yidong
f92d51d84e
(Vtemp_file_name_pattern): Remove DEFVAR_LISP.
...
Initialize it as a relative filename pattern.
(init_callproc): Don't initialize Vtemp_file_name_pattern here.
(Fcall_process_region): Simplify temp file creation using
temporary-file-directory.
2009-01-30 05:17:33 +00:00
Chong Yidong
a8b11cc93b
* callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
...
Initialize it as a relative filename pattern.
(init_callproc): Don't initialize Vtemp_file_name_pattern here.
(Fcall_process_region): Simplify temp file creation using
temporary-file-directory.
2009-01-30 05:15:34 +00:00
Eli Zaretskii
c279587b96
Rename pending_signals to msdos_pending_signals.
...
(sig_suspender, sigprocmask): Adjust.
2009-01-29 19:23:24 +00:00
Chong Yidong
5037fb74bf
Fix last log entry: blockinput.h was not changed.
2009-01-29 14:38:34 +00:00
Chong Yidong
26f1ab2426
(QUIT): Check pending_signals instead of interrupt_input_pending. Use
...
process_pending_signals.
2009-01-29 14:35:25 +00:00
Chong Yidong
cf0d293c40
(w32_console_read_socket): Update pending_signals.
2009-01-29 14:35:14 +00:00
Chong Yidong
6324e138b3
(w32_read_socket): Update pending_signals.
2009-01-29 14:35:04 +00:00
Chong Yidong
6fc23b6ccd
(XTread_socket): Update pending_signals.
2009-01-29 14:34:52 +00:00
Chong Yidong
c3eff1b099
(wait_reading_process_output): Use process_pending_signals.
2009-01-29 14:34:38 +00:00
Chong Yidong
ceb1882706
(pending_signals): New var.
...
(poll_for_input, input_available_signal, init_keyboard): Set it.
(process_pending_signals): New function.
2009-01-29 14:34:16 +00:00
Chong Yidong
325530dec7
(run_timers, alarm_signal_handler): Update pending_signals.
2009-01-29 14:33:14 +00:00
Chong Yidong
55310b94eb
(emacs_write): Use process_pending_signals.
2009-01-29 14:32:49 +00:00
Chong Yidong
a8fe324231
* keyboard.c (pending_signals): New var.
...
(poll_for_input, input_available_signal, init_keyboard): Set it.
(process_pending_signals): New function.
* lisp.h (QUIT): Check pending_signals instead of
interrupt_input_pending. Use process_pending_signals.
* atimer.c (run_timers, alarm_signal_handler): Update
pending_signals.
* process.c (wait_reading_process_output): Use
process_pending_signals.
* sysdep.c (emacs_write): Use process_pending_signals.
* xterm.c (XTread_socket): Update pending_signals.
* w32term.c (w32_read_socket): Update pending_signals.
* w32inevt.c (w32_console_read_socket): Update pending_signals.
* blockinput.h: Add declaration for pending_signals.
2009-01-29 14:32:21 +00:00
Kenichi Handa
6570a1c427
(xftfont_has_char): New function.
...
(syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
2009-01-29 12:13:59 +00:00
Adrian Robert
d72a4afa74
* nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
...
under GNUstep.
(ns_query_color): New declaration.
* nsterm.m (ns_confirm_quit): New variable.
(ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
(EmacsApp-applicationShouldTerminate:): Use it.
(EmacsPrefsController): Let user set it.
(ns_query_color): New function.
(ns_defined_color): Use it.
(ns_initialize): Drop.
(ns_term_init): Add two lines from ns_initialize(), and set
input_interrupt_mode to nil.
* image.c (svg_load_image): Don't right-shift background RGB when
obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
2009-01-29 10:38:16 +00:00
Adrian Robert
d7e008d06f
* image.c (svg_load_image): Don't right-shift background RGB when
...
obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
2009-01-29 10:36:49 +00:00
Adrian Robert
fc7a54a9b8
* nsterm.m (ns_confirm_quit): New variable.
...
(ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
(EmacsApp-applicationShouldTerminate:): Use it.
(EmacsPrefsController): Let user set it.
(ns_query_color): New function.
(ns_defined_color): Use it.
(ns_initialize): Drop.
(ns_term_init): Add two lines from ns_initialize(), and set
input_interrupt_mode to nil.
2009-01-29 10:36:22 +00:00
Adrian Robert
5e1dedc1ec
* nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
...
under GNUstep.
(ns_query_color): New declaration.
2009-01-29 10:35:55 +00:00
Adrian Robert
689a4b3303
add parens in a defined statement
2009-01-28 15:13:18 +00:00
Kenichi Handa
f088b05476
(font_for_char): Use assq_no_quit, not assoc_no_quit.
...
(fontset_get_font_group): Remember that no font-group is specified
for C.
2009-01-28 11:50:18 +00:00
Kenichi Handa
9fe788041c
(font_for_char): Use assq_no_quit, not assoc_no_quit.
2009-01-28 06:45:07 +00:00
Chong Yidong
0f75abdf76
(concat): Check for string overflow (bug#1787).
2009-01-27 21:16:32 +00:00
Chong Yidong
930600e981
* fns.c (concat): Check for string overflow (bug#1787).
2009-01-27 21:16:14 +00:00
Chong Yidong
2159bd0652
(undo_limit, undo_strong_limit, Vundo_outer_limit): Quadruple undo
...
limits (bug#1501).
2009-01-27 20:57:47 +00:00
Chong Yidong
fa57de3694
* undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
...
Quadruple undo limits (bug#1501).
2009-01-27 20:57:07 +00:00
Kenichi Handa
7179ce7b35
(ftfont_has_char): If the arg FONT is a font-object,
...
directly use GT_Get_Char_index.
2009-01-27 05:10:08 +00:00
Kenichi Handa
b0c25608cd
(struct xftfont_info): New member `index'.
2009-01-27 05:08:40 +00:00
Kenichi Handa
50b426eb1e
(struct font_driver): Fix comment for has_char.
2009-01-27 05:08:00 +00:00
Kenichi Handa
a124bbb629
(font_for_char): Use assq_no_quit, not assoc_no_quit.
...
(Ffontset_font): Adjusted for the change of fontset entry.
2009-01-27 05:07:04 +00:00
Chong Yidong
bf86d09c11
(fontset_find_font): Fix handling of non-cons return
...
value of fontset_get_font_group.
(fontset_font): Revert last change.
2009-01-26 15:50:43 +00:00
Chong Yidong
5be8fcc0d2
* fontset.c (fontset_find_font): Fix handling of non-cons return
...
value of fontset_get_font_group.
(fontset_font): Revert last change.
2009-01-26 15:50:18 +00:00
Jason Rumney
19ae3e619f
(w32font_list_internal): Return quickly if registry is
...
unknown. Simplify final return.
(add_font_entity_to_list): Break complex logic down into more
manageable chunks. Move unknown registry check to
w32font_list_internal.
2009-01-26 14:32:34 +00:00
Juanma Barranquero
64cc3cf608
Add bug references.
2009-01-25 22:58:22 +00:00
Juanma Barranquero
d8038940d1
Add bug references.
2009-01-25 22:22:59 +00:00
Adrian Robert
8612b71a44
Changes to remove Feval calls from GUI under NS.
...
* nsterm.h: Move KEY_NS_... definitions here from nsterm.m. Add
NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
* nsterm.m: Move KEY_NS_... definitions to nsterm.h.
(EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
(EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
instead of NON_ASCII_KEYSTROKE_EVENT.
(EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
(EmacsApp-applicationShouldTerminate:): Query user.
(EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
instead of Feval.
* termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
* keyboard.c (kbd_buffer_get_event): Check for it.
(keys_of_keyboard): Define lispy keys for
ns-put/unput-working-text.
* nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
versions.
(EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
2009-01-25 19:43:31 +00:00
Chong Yidong
707ea971f2
(buffer_posn_from_coords): Use Fset_buffer instead of setting
...
current_buffer directly.
2009-01-25 17:00:55 +00:00
Chong Yidong
6288ae552a
* dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
...
setting current_buffer directly.
2009-01-25 17:00:25 +00:00
Chong Yidong
8657206e1d
(fontset_font): If we know there is no font, don't do any work.
2009-01-24 22:42:02 +00:00
Chong Yidong
5ce8730828
* fontset.c (fontset_font): If we know there is no font, don't do any
...
work.
2009-01-24 22:41:46 +00:00
Chong Yidong
e39280819e
(font_parse_xlfd): Handle patterns of length < 2.
2009-01-24 03:17:42 +00:00
Chong Yidong
289e7f8fbe
* font.c (font_parse_xlfd): Handle patterns of length < 2.
2009-01-24 03:17:32 +00:00
Adrian Robert
cfa6accb56
fix comments in last change
2009-01-23 14:53:11 +00:00
Adrian Robert
27521ca69b
* nsterm.m (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change of 2008-11-15 to other terms. (Bug#615)
2009-01-23 14:32:47 +00:00
Adrian Robert
e0d2e69ae3
* nsimage.m (setPixmapData:): Set to ignore image DPI.
2009-01-23 14:08:24 +00:00
Adrian Robert
d900b2af45
* nsterm.m (EmacsView-readSelectionFromPasteboard:) (writeSelectionToPasteboard:types:): New stubbed-out methods for NSServicesRequests protocol. (Bug#1435)
2009-01-23 10:31:54 +00:00