Andreas Schwab
6cff77fd8a
(Fwrite_region): Ignore EINVAL error from fsync.
2007-10-06 08:15:26 +00:00
Juanma Barranquero
bbe6f2aa11
(syms_of_image) <image-types>: Fix typo in docstring.
2007-10-04 16:57:53 +00:00
Juanma Barranquero
63bb3d8e60
*** empty log message ***
2007-10-04 07:29:55 +00:00
Stefan Monnier
a390930c45
(struct frame): Don't try to GC-mark menu_bar_items_used.
2007-10-03 23:18:18 +00:00
Stefan Monnier
e330de4483
(mark_terminals): Typo.
2007-10-02 22:07:41 +00:00
Stefan Monnier
d0fdb6daae
* window.h (struct window):
...
* window.c (struct save_window_data, struct saved_window):
* termhooks.h (struct terminal):
* process.h (struct Lisp_Process):
* frame.h (struct frame):
* buffer.h (struct buffer):
* lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
(struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
The size field of (pseudo)vectors is now unsigned.
(ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
2007-10-02 21:55:27 +00:00
Stefan Monnier
878f97ffed
* lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
...
Turn `count' into an integer.
* fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
(sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
* print.c (print_object) <HASH_TABLE_P>: `count' is an int.
* alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
(mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
2007-10-02 21:24:47 +00:00
Stefan Monnier
5b2f56dfa6
(mark_object): Fix typo.
2007-10-02 21:19:17 +00:00
Stefan Monnier
d2029e5b81
(allocate_pseudovector): New fun.
...
(ALLOCATE_PSEUDOVECTOR): New macro.
(allocate_window, allocate_terminal, allocate_frame)
(allocate_process): Use it.
(mark_vectorlike): New function.
(mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
(mark_terminals): Use it.
(Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
(Fmake_byte_code): Use XSETPVECTYPE.
2007-10-02 21:16:53 +00:00
Stefan Monnier
cf00e751e1
(Fget_buffer_create, init_buffer_once): Use XSETPVECTYPE.
2007-10-02 21:09:17 +00:00
Stefan Monnier
19b5e79bd5
(Fframe_parameters): Minor simplification.
2007-10-02 21:07:47 +00:00
Stefan Monnier
86a56ef373
(adjust_markers_for_insert): Generalize assertion checks.
2007-10-02 21:07:15 +00:00
Stefan Monnier
5a6891e297
(defsubr): Use XSETPVECTYPE.
2007-10-02 21:06:16 +00:00
Stefan Monnier
0754c46a89
(Fmarker_buffer): Make test for odd case into a failure.
2007-10-02 21:05:39 +00:00
Stefan Monnier
85e616ab18
(Fcurrent_window_configuration): Use XSETPVECTYPE.
2007-10-02 21:03:04 +00:00
Stefan Monnier
539b8c1c07
(ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't allow definition in m/*.h files.
...
(XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
(XSETPVECTYPE): New macro.
(XSETPSEUDOVECTOR): Use it.
2007-10-02 20:57:49 +00:00
Stefan Monnier
d6aa1876eb
* buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
...
(DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
* lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
* lread.c (defvar_per_buffer):
* abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
2007-10-02 20:51:02 +00:00
Stefan Monnier
de509a6071
(candidate_window_p): Only consider as visible frames that
...
are on the same terminal.
2007-10-02 20:43:54 +00:00
Stefan Monnier
766ec949f8
(MARKBIT): Remove unused macro.
2007-10-02 20:42:43 +00:00
Juanma Barranquero
88852d4582
(Fload): Fix typo in docstring.
2007-10-01 09:57:19 +00:00
Michaël Cadilhac
2742fe3068
(Fexpt): Manually check for overflows, so that a power
...
of a non-zero value can't yield zero.
2007-10-01 09:17:29 +00:00
Stefan Monnier
b870aa6115
(term_clear_mouse_face, term_mouse_highlight)
...
(tty_write_glyphs_with_face): Only define is HAVE_GPM.
2007-09-29 20:56:48 +00:00
Stefan Monnier
4c37a41447
(safe_debug_print): Use XHASH.
2007-09-29 20:55:28 +00:00
Stefan Monnier
b9466edba1
(DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
...
Lisp elements such as tags.
(XHASH): New macro.
(EQ): Use it.
(SREF, SSET, STRING_COPYIN): Use SDATA.
(VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
2007-09-29 20:55:05 +00:00
Stefan Monnier
9c545a5534
(enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
...
(allocate_vectorlike): Remove type argument. Adjust callers.
(live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
Only handle the one remaining MEM_TYPE_VECTORLIKE.
(mark_terminal): Remove left-over declaration.
2007-09-29 20:19:41 +00:00
Stefan Monnier
dafc79fa1b
(MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
...
to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
(xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
(lisp_align_free, make_interval, allocate_vectorlike, allocate_string_data)
(make_float, Fcons, allocate_string, Fmake_symbol, allocate_misc): Use them.
2007-09-29 20:10:22 +00:00
Stefan Monnier
ed0c79c6fd
(load_face_font, free_realized_face, clear_face_gcs):
...
Don't let signal handlers run when a GC is freed but not yet NULL'ed.
(x_free_gc): Remove BLOCK_INPUT since it's now redundant.
2007-09-29 17:50:09 +00:00
Dan Nicolaescu
3c81afd415
(lisp, shortlisp): Delete server.elc, it is not
...
loaded by default.
2007-09-28 22:12:36 +00:00
Stefan Monnier
4ce5ab773b
(Fgpm_mouse_start): Don't signal an error if already activated on this tty.
...
(Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
2007-09-28 20:07:54 +00:00
Stefan Monnier
6178ce5e8b
(mouse_face_window): Rename from Qmouse_face_window. Update all users.
...
(handle_one_term_event): Use Gpm_DrawPointer.
(Fgpm_mouse_start): Rename from Fterm_open_connection.
Signal errors instead of returning nil. Always return nil.
(Fgpm_mouse_stop): Rename from Fterm_close_connection.
Make it a noop if gpm-mouse was not activated.
(syms_of_term): Update names.
2007-09-28 19:47:02 +00:00
Stefan Monnier
75a8734b11
(narrow_foreground_group, widen_foreground_group): Static.
...
(init_sys_modes): Check that gpm_tty is the current tty.
2007-09-27 21:20:07 +00:00
Stefan Monnier
1023cbedd9
(Fterm_open_connection): Add comment.
2007-09-27 21:19:54 +00:00
Stefan Monnier
13559ee0bb
(allocate_terminal): Set the vector size to only count the Lisp fields.
...
Initialize those to nil.
(mark_object): Don't treat terminals specially.
(mark_terminal): Remove.
(mark_terminals): Use mark_object instead.
2007-09-27 19:51:39 +00:00
Stefan Monnier
ff16b87572
(struct terminal): Move all Lisp_Object fields traced by
...
the GC to the beginning.
2007-09-27 19:50:02 +00:00
Stefan Monnier
2bf3a08778
(compute_motion): Typo in last change.
2007-09-27 18:56:16 +00:00
Stefan Monnier
83155776d1
* indent.h:
...
* indent.c: Use EMACS_INT for ints coming from Elisp data.
2007-09-27 18:49:57 +00:00
Stefan Monnier
bdf5f8ef91
(Fmove_to_column): Use EMACS_INT for buffer positions.
2007-09-27 18:27:48 +00:00
Nick Roberts
1ffe7343fa
*** empty log message ***
2007-09-25 09:32:18 +00:00
Jason Rumney
ec8705b639
(make_terminal_frame): Remove special case for WINDOWSNT.
2007-09-25 08:54:10 +00:00
Jason Rumney
da6c83b1f5
(create_w32cons_output): Remove.
2007-09-25 08:53:37 +00:00
Jason Rumney
635e3b291d
(init_tty): Call init_sys_modes on WINDOWSNT also.
2007-09-25 08:53:23 +00:00
Jason Rumney
69fb5031b3
(init_sys_modes): Use set_terminal_modes_hook.
...
(reset_sys_modes): Use reset_terminal_modes_hook.
2007-09-25 08:53:03 +00:00
Stefan Monnier
7351b242ea
(do_autoload): Don't output any message.
2007-09-24 08:29:50 +00:00
Juri Linkov
16706228c1
(standard_args): Change priority of "--no-splash"
...
from 40 to 3. Add "--no-desktop" with the same priority.
2007-09-24 00:59:41 +00:00
Richard M. Stallman
3ae2e3a37f
(gc_sweep): Check cons cell mark bits word by word
...
and optimize the case where they are all 1.
2007-09-23 15:39:16 +00:00
Glenn Morris
dd1fdb7485
Fix typo.
2007-09-23 02:09:18 +00:00
Glenn Morris
096e8667db
Johannes Weiner <hannes at saeurebad.de>
...
(abs): Define if unknown.
2007-09-23 02:04:23 +00:00
Glenn Morris
7a58fb43f6
Johannes Weiner <hannes at saeurebad.de>
...
(abs): Don't define abs now it's in lisp.h.
2007-09-23 02:03:36 +00:00
Eli Zaretskii
7804808570
(DEV_TTY): New macro. Provide a definition for MS-Windows.
...
(FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
(Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
(init_tty): Use DEV_TTY instead of "/dev/tty".
[WINDOWSNT]: No need to protect from NAME arg being null.
2007-09-22 12:41:29 +00:00
Dan Nicolaescu
23d4cba5c7
* xt-mouse.el (xterm-mouse-mode): Re-enable suspend-tty-functions.
...
* term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
up the tty state.
2007-09-21 20:19:10 +00:00