Kenichi Handa [Fri, 13 Jun 2008 02:18:59 +0000 (02:18 +0000)]
(font_score): Delete arg alternate_families. Check only
weight, slant, width, and size.
(font_sort_entites): Adjusted for the above change. Reflect the
order of font-driver to scores.
(font_list_entities): Don't check alternate_familes here.
(font_clear_prop): Handle foundry.
(font_update_lface): Don't parse "foundry-family" form here.
Handle FONT_FOUNDRY_INDEX.
(font_find_for_lface): Likewise. Handle alternate families here.
(font_open_for_lface): Pay attention to size in ENTITY.
(font_open_by_name): Simplified by calling font_load_for_lface.
(free_font_driver_list): Delete it.
(font_update_drivers): Preserve the order of backends.
(syms_of_font): Setting of sort_shift_bits adjusted for the change
of font_score and font_sort_entites.
Stefan Monnier [Thu, 12 Jun 2008 20:25:47 +0000 (20:25 +0000)]
* character.h (CHAR_TO_BYTE_SAFE): New macro.
* character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
* regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
(WEAK_ALIAS): Simplify.
* syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
when searching a unibyte buffer.
Glenn Morris [Thu, 12 Jun 2008 03:53:47 +0000 (03:53 +0000)]
(dframe-reposition-frame-emacs): Reorder test, and use unless.
(x-display-pixel-width, x-display-pixel-height):
Define for compiler, for builds without X.
Jason Rumney [Wed, 11 Jun 2008 22:40:06 +0000 (22:40 +0000)]
(w32font_encode_char): Detect missing glyphs that are misreported as space.
(add_font_entity_to_list): Support unicode-bmp and unicode-sip
as aliases for registry iso10646-1.
Glenn Morris [Wed, 11 Jun 2008 02:57:35 +0000 (02:57 +0000)]
(diary-list-entries-2): Accept optional Gregorian date, and add it,
not the local date, to diary-entries-list.
(diary-list-entries-1): Pass Gregorian date to diary-list-entries-2.
Glenn Morris [Wed, 11 Jun 2008 02:56:03 +0000 (02:56 +0000)]
(fortran-end-of-subprogram): Check for a match before trying to move there.
(fortran-calculate-indent): When fortran-check-all-num-for-matching-do
is non-nil, indent most terminating statements like loop body.
Stefan Monnier [Wed, 11 Jun 2008 02:16:45 +0000 (02:16 +0000)]
* t-mouse.el (gpm-mouse-enable, gpm-mouse-disable): New functions.
(gpm-mouse-mode): Make it into a proper global minor mode.
* term/linux.el (terminal-init-linux): Use gpm-mouse-enable.
Stefan Monnier [Wed, 11 Jun 2008 01:47:48 +0000 (01:47 +0000)]
* emacs-lisp/map-ynp.el (map-y-or-n-p): Add support for other-window-scroll.
* files.el (save-some-buffers-action-alist): Only use recursive-edit
if the user enabled recursive-minibuffers.
Stefan Monnier [Tue, 10 Jun 2008 22:01:59 +0000 (22:01 +0000)]
(completion--merge-suffix): New function.
(completion-basic-try-completion): Use it.
(completion-pcm--find-all-completions): Add argument `filter'.
(completion-pcm--filename-try-filter, completion-pcm--merge-try): New funs.
(completion-pcm-try-completion): Use them.
Chong Yidong [Tue, 10 Jun 2008 20:56:15 +0000 (20:56 +0000)]
(xg_dialog_response_cb): Rename from xg_file_response_callback.
(pop_down_dialog): Rename from pop_down_file_dialog.
(xg_get_file_name): Callers changed.
(xg_get_font_name): New function.
Stefan Monnier [Tue, 10 Jun 2008 20:22:10 +0000 (20:22 +0000)]
* xdisp.c (underline_minimum_offset): Rename from xterm.c's
x_underline_minimum_display_offset.
(syms_of_xdisp): Declare it here rather than in xterm.c.
* dispextern.h (underline_minimum_offset): Declare it.
* w32term.c (x_draw_glyph_string): Use it.
* xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
(syms_of_xterm): Don't declare it any more.
(x_draw_glyph_string): Adjust to the new name.
* cus-start.el (underline-minimum-offset) Rename from
x-underline-minimum-display-offset.
Stefan Monnier [Tue, 10 Jun 2008 20:01:54 +0000 (20:01 +0000)]
* xterm.c (x_underline_minimum_display_offset): New var.
(x_draw_glyph_string): Use it.
(syms_of_xterm): Declare it.
* cus-start.el (x-underline-minimum-display-offset): Give it a type.
Chong Yidong [Tue, 10 Jun 2008 19:55:38 +0000 (19:55 +0000)]
(menu-set-font): New function. Bind "Set Default
Font" menu item to it. Apply selected font to all frames, and
make it savable.
(menu-bar-options-save): Save `default' font if changed.
Chong Yidong [Tue, 10 Jun 2008 19:53:37 +0000 (19:53 +0000)]
* mouse.el (mouse-select-font): New function.
* faces.el (face-spec-recalc): When the face is set using
Customize, avoid recalculating it twice.
* menu-bar.el (menu-set-font): New function. Bind "Set Default
Font" menu item to it. Apply selected font to all frames, and
make it savable.
(menu-bar-options-save): Save `default' font if changed.
Stefan Monnier [Tue, 10 Jun 2008 16:08:48 +0000 (16:08 +0000)]
* window.c (Vwindow_point_insertion_type): New var.
(set_window_buffer): Use it.
(syms_of_window): Init and export it to Lisp.
* progmodes/compile.el (compilation-mode):
Set window-point-insertion-type.
(compilation-filter): Don't use insert-before-markers any more.
* emacs-lisp/trace.el (trace-make-advice):
Set window-point-insertion-type in the trace buffer.
* startup.el (normal-top-level): Set window-point-insertion-type in
*Messages*.
* net/telnet.el (telnet-mode): Set window-point-insertion-type.
(telnet-filter): Don't use insert-before-markers any more.
* comint.el (comint-mode): Set window-point-insertion-type.
(comint-output-filter): Don't use insert-before-markers any more.
* button.el (make-text-button): Allow `start' to be a string.