1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-30 09:00:31 -08:00
Commit graph

25894 commits

Author SHA1 Message Date
Jason Rumney
388c38f9b3 (w32font_text_extents): Use font's ascent and descent.
(recompute_cached_metrics): Don't set ascent and descent per char.
2008-04-04 23:05:43 +00:00
Stefan Monnier
d4417eb006 (struct frame): Give one more bit to `visible' since we use
values larger than 1 to indicate obscured frames on ttys.
2008-04-04 17:56:23 +00:00
Stefan Monnier
00f7c5edc6 * subr.el (keymap-canonicalize): New function.
* mouse.el (mouse-menu-non-singleton): Use it.
(mouse-major-mode-menu): Remove hack made unnecessary.
* keymap.c (Qkeymap_canonicalize): New var.
(Fmap_keymap_internal): New fun.
(describe_map): Use keymap-canonicalize.
2008-04-04 17:31:20 +00:00
Stefan Monnier
4591d6cbef (last_boundary_buffer, last_boundary_position): New vars.
(Fundo_boundary): Set them.
(syms_of_undo): Initialize them.
(record_point): Use them instead of last_point_position*.
(last_undo_buffer): Change type.
2008-04-04 16:59:52 +00:00
Jason Rumney
d0bfec76e4 (uniscribe_check_otf): Rearrange loop for counting features. 2008-04-04 12:08:14 +00:00
Jason Rumney
e38ac6e203 (uniscribe_check_otf): Add GC protection before consing.
Use CAR_SAFE to increment loop.
2008-04-04 11:59:09 +00:00
Jason Rumney
3187540eff (uniscribe_check_otf): Fix last change. 2008-04-04 07:59:20 +00:00
Stefan Monnier
f1a6b2163c (insert_from_buffer_1): Don't compare bytes in destination
buffer with byte-size of source buffer.
2008-04-03 20:01:31 +00:00
Chong Yidong
e5a31bbbcb (Fcall_interactively): Handle temporary region even when
shift-select-mode is off.
2008-04-03 16:36:47 +00:00
Chong Yidong
1d8dcf63aa * callint.c (Fcall_interactively): Handle temporary region even
when shift-select-mode is off.
2008-04-03 16:36:29 +00:00
Jason Rumney
6b8aa22a8a (uniscribe_check_otf): Sanity check otf_spec. 2008-04-03 15:38:29 +00:00
Jason Rumney
0c1b4ae237 (CONFIG_H): New variable. Use it to clean up
dependencies.
(w32uniscribe.$(O)): New file to build.
(FONT_OBJ): Include w32uniscribe.$(O).
(LIBS): Add uniscribe libraries.
2008-04-03 13:16:13 +00:00
Jason Rumney
cbfedb1c52 (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c. 2008-04-03 13:11:29 +00:00
Jason Rumney
56df6710a9 (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
(Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
(Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
(Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
(Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
(Qphonetic): New symbols.
(syms_of_w32font): Initialize them.
(font_supported_scripts): Use them.
(w32font_list_family): List all charsets.
(w32font_text_extents, recompute_cached_metrics): Fix metric
calculations.
(w32_enumfont_pattern_entity): Make full_type a DWORD.
Give opentype fonts their own format.
(font_matches_spec): New arguments backend and logfont.
Handle :otf spec for uniscribe backend.
(add_font_entity_to_list): Match truetype fonts in uniscribe backend.
(fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
2008-04-03 13:10:57 +00:00
Jason Rumney
97724679a1 (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c. 2008-04-03 12:37:44 +00:00
Kenichi Handa
2f3cbb326b (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
(CATEGORY_MASK_UTF_16): Likewise.
(detect_coding_utf_16): Add heuristics to reject utf-16 for a
binary file.
(detect_coding): Add null-byte detection for a binary file.
(detect_coding_system): Likewise.
2008-04-03 12:31:27 +00:00
Jason Rumney
164ce7fab3 (uniscribe_check_otf): Declare. 2008-04-03 12:28:57 +00:00
Jason Rumney
e14dc92d86 Font backend implementation for Uniscribe on Windows 2000 and later. 2008-04-03 11:56:40 +00:00
Jason Rumney
43f4f91cef (ftfont_get_open_type_spec): Check spec->script, not val. 2008-04-03 08:17:15 +00:00
Chong Yidong
12679e05b0 Restore support for the values identity' and only' for transient
mark mode, since it can't hurt.  Update comments.
2008-04-02 20:22:37 +00:00
Chong Yidong
d6b4106c61 Undo previous change:
* keyboard.c (command_loop_1): Don't change the value of
transient-mark-mode; this is now handled by handle-shift-selection.
2008-04-02 20:21:45 +00:00
Chong Yidong
e09655973f (Fscroll_up, Fscroll_down, Fscroll_left)
(Fscroll_right): Add ^ interactive spec.
2008-04-02 20:15:43 +00:00
Chong Yidong
1e9dbb5f64 (Fforward_word): Add ^ interactive spec. 2008-04-02 20:15:32 +00:00
Chong Yidong
9ae750f084 (Fforward_char, Fbackward_char, Fforward_line)
(Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
2008-04-02 20:15:21 +00:00
Chong Yidong
526c9df942 (Vtransient_mark_mode): Move docstring to simple.el to
avoid clobbering by define-minor-mode.
2008-04-02 20:15:11 +00:00
Chong Yidong
025ae9533d (Vthis_command_keys_shift_translated): New var.
(command_loop_1): Avoid running the direct display versions of
forward-char and backward-char if shift-selection may occur.
Don't change the value of transient-mark-mode; this is now handled
by handle-shift-selection.
(read_key_sequence): Set Vthis_command_keys_shift_translated if
shift-translation takes place.
2008-04-02 20:14:57 +00:00
Chong Yidong
9bdb1538a5 (Vshift_select_mode): New var.
(Finteractive): Document new ^ spec.
(Fcall_interactively): Call handle-shift-selection if the ^ spec
is present.
2008-04-02 20:14:40 +00:00
Chong Yidong
75043a7d35 * callint.c (Vshift_select_mode): New var.
(Finteractive): Document new ^ spec.
(Fcall_interactively): Call handle-shift-selection if the ^ spec
is present.

* keyboard.c (Vthis_command_keys_shift_translated): New var.
(command_loop_1): Avoid running the direct display versions of
forward-char and backward-char if shift-selection may occur.
Don't change the value of transient-mark-mode; this is now handled
by handle-shift-selection.
(read_key_sequence): Set Vthis_command_keys_shift_translated if
shift-translation takes place.

* buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
avoid clobbering by define-minor-mode.

* cmds.c (Fforward_char, Fbackward_char, Fforward_line)
(Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.

* syntax.c (Fforward_word): Add ^ interactive spec.

* window.c (Fscroll_up, Fscroll_down, Fscroll_left)
(Fscroll_right): Add ^ interactive spec.
2008-04-02 20:14:17 +00:00
Stefan Monnier
a432c0a64b (try_window_id): Don't forget to reset delta_bytes. 2008-04-01 21:27:07 +00:00
Stefan Monnier
994b75e0f4 (casify_object): Fix up int/EMACS_INT mixup. 2008-04-01 06:02:20 +00:00
Glenn Morris
bf380f53ba More fixing of what multi-tty called a ChangeLog. 2008-04-01 02:56:18 +00:00
Stefan Monnier
b2b7f29e5e (Funibyte_charset, Fset_unibyte_charset): Remove. 2008-04-01 00:54:03 +00:00
Juri Linkov
e99c780691 (Fdisplay_buffer): Reinitialize tem to nil. 2008-03-31 00:36:32 +00:00
Jan Djärv
1c9c12709b (xg_set_geometry): Fix indentation.
(xg_resize_outer_widget): Removed
(x_wm_size_hint_off): Fix indentation.
(xg_frame_set_char_size): Call flush_and_sync after
gtk_window_resize.
(x_wm_set_size_hint): Pass NULL as geometry window to
gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
Add menu bar and tool bar height to base height.
(xg_update_frame_menubar, free_frame_menubar)
(xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
(update_frame_tool_bar, free_frame_tool_bar): Change
xg_resize_outer_widget to xg_frame_set_char_size.
2008-03-30 17:38:09 +00:00
Michael Albinus
90b3fc8415 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
(Fdbus_call_method): New parameter TIMEOUT.
(dbus-send-signal): Optimize UNGCPRO call.
2008-03-30 12:38:49 +00:00
Juri Linkov
7ae6d1d10e (Fdisplay_buffer): Move call to
Vsplit_window_preferred_function out of conditions that check
if window is eligible for vertical splitting.
When Vsplit_window_preferred_function is non-nil, call it and use
its non-nil return value as window.  Otherwise, continue doing
vertical splitting using Fsplit_window with arg horflag=nil.
(syms_of_window) <Vsplit_window_preferred_function>: Change the
default value from `split-window' to nil.
2008-03-29 23:05:26 +00:00
Juri Linkov
f03f8f2cb6 (Fcall_interactively): Revert 2008-03-16 change
for interactive code letters 'b' and 'B'.
2008-03-29 22:58:43 +00:00
Eli Zaretskii
9c06a1f304 (Fexpand_file_name): Fix last change. 2008-03-29 15:28:57 +00:00
Eli Zaretskii
6d5577783e (Fexpand_file_name): Convert the value of $HOME to a multibyte string. 2008-03-29 13:53:02 +00:00
Stefan Monnier
58555d8187 * keyboard.c (pending_funcalls): New var.
(timer_check): Run it.
(syms_of_keyboard): Initialize it.
* terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
(Vdelete_terminal_functions): New vars.
(syms_of_terminal): Initialize them.
(Fdelete_terminal): Run delete-terminal-functions.
* xdisp.c (safe_eval): Rewrite.
(safe_call2): New fun.
* frame.c (Qdelete_frame_functions): New var.
(syms_of_frame): Initialize it.
(Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
* lisp.h (safe_call2, pending_funcalls): Declare.
2008-03-29 01:46:10 +00:00
Andreas Schwab
4c92f4298e (Fmove_to_column): Move declaration before statements. 2008-03-28 17:24:51 +00:00
Stefan Monnier
2806a18346 (enum fullscreen_type): Give it a name. Move it before use.
(struct frame): Use bit fields for boolean vars.
2008-03-27 21:15:21 +00:00
Stefan Monnier
eef6030820 (server_accept_connection): Simplify naming.
(emacs_get_tty_pgrp): Use SDATA.
2008-03-27 20:52:24 +00:00
Stefan Monnier
bb555731e0 (decode_coding_object): Fix last change. 2008-03-27 20:26:59 +00:00
Stefan Monnier
0154725e48 (decode_coding_object): Revert part of last change. 2008-03-27 20:24:55 +00:00
Stefan Monnier
a1567c4544 (decode_coding_object): Fix last change. 2008-03-27 20:04:37 +00:00
Jason Rumney
30076589d3 (start_hourglass): Suppress hourglass on tty frames. 2008-03-27 17:11:40 +00:00
Kenichi Handa
880820fe87 (Fdefine_charset_internal): Change the way of
registering charsets in Vcharset_order_list.
(syms_of_charset): Make the charset `eight-bit' supplementary.
2008-03-27 11:36:43 +00:00
Chong Yidong
381880b0ae (EXTEND_BUFFER): Change order of pointer addition operations, to avoid
having the difference between pointers overflow.
2008-03-26 22:54:40 +00:00
Chong Yidong
3cf8cdfbc6 * regex.c (EXTEND_BUFFER): Change order of pointer addition
operations, to avoid having the difference between pointers
overflow.
2008-03-26 22:53:47 +00:00