Gerd Moellmann [Sat, 21 Aug 1999 21:47:57 +0000 (21:47 +0000)]
(resize_mini_window): Do it for truncate-lines t as
well.
(redisplay_internal): Resize mini-window only if text might
have changed.
(display_echo_area): Reset displayed echo_area_buffer to nil
at the end if we're displaying a nil message.
Gerd Moellmann [Sat, 21 Aug 1999 19:31:13 +0000 (19:31 +0000)]
Call change_frame_size and do_pending_window_change with
new parameter.
(x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
under scroll bar widget.
Gerd Moellmann [Sat, 21 Aug 1999 19:30:44 +0000 (19:30 +0000)]
Call change_frame_size and do_pending_window_change with
new parameter.
Remove conditional compilation on
NO_PROMPT_IN_BUFFER.
(get_next_display_element): Display \r as ^M.
(minibuffer_scroll_overlap): Removed because not used
anywhere.
(unwind_redisplay): Return nil.
(clear_garbaged_frames): New.
(redisplay_internal): Use it.
(echo_area_display): Ditto.
(resize_mini_window): Mew.
(display_echo_area_1): Use it to resize echo area window.
(redisplay_internal): Use it to resize active mini-window.
(echo_area_glyphs, echo_area_message,
echo_area_glyphs_length, previous_echo_glyphs,
previous_echo_area_message, previous_echo_area_glyphs_length):
Removed.
(Vmessage_stack, echo_area_buffer, echo_buffer,
display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
(message2_nolog): Use set_message and clear_message.
(message3): Rename parameter len to nbytes to make clear what
it is.
(message3_nolog): Ditto. Use set_message and clear_message.
(update_echo_area): Rewritten.
(with_echo_area_buffer): New.
(with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
(setup_echo_area_for_printing): New.
(display_echo_area, display_echo_area_1): New.
(current_message, current_message_1): New.
(push_message, restore_message, pop_message,
check_message_stack): New.
(truncate_echo_area): Rewritten.
(truncate_message_1): New.
(set_message, set_message_1, clear_message): New.
(echo_area_display): Rewritten.
(redisplay_internal): Check for needed echo area update
differently.
(redisplay_preserve_echo_area): Rewritten.
(redisplay_window): Check for mini-window displaying echo area
message differently.
(syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
Remove initialzation of removed variables.
(init_xdisp): Remove references to removed variables.
Gerd Moellmann [Sat, 21 Aug 1999 19:30:21 +0000 (19:30 +0000)]
Remove conditional compilation on `standalone'.
(glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
glyph_to_str_cpy): Remove that section because GLYPHs are no
longer used in that way.
(PRINTDECLARE): Add multibyte.
(PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
(printbufidx): Removed.
(printchar, strout): Rewritten.
Gerd Moellmann [Sat, 21 Aug 1999 19:30:16 +0000 (19:30 +0000)]
Remove conditional compilation on
NO_PROMPT_IN_BUFFER.
(Fminibuffer_prompt_end): New.
(syms_of_minibuf): Defsubr it. Remove
minibuffer-prompt-in-buffer.
(Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
Extend documentation.
(read_minibuf): Use clear_message instead of
setting echo_area_glyphs.
(Fminibuffer_completion_help): Ditto.
Gerd Moellmann [Sat, 21 Aug 1999 19:29:53 +0000 (19:29 +0000)]
Call change_frame_size and do_pending_window_change with
new parameter.
(ok_to_echo_at_next_pause): Make it a pointer to
a struct kboard.
(echo_kboard): New.
(echo_now): Set echo_kboard to the current kboard.
(cancel_echoing): Set echo_kboard to null.
(cmd_error_internal): Use clear_message, remove references
to echo_area_glyphs and echo_area_message.
(command_loop_1): Check for echo area messages differently.
(read_char): Likewise.
(record_menu_key): Use clear_message.
(Fexecute_extended_command): Check for echo area messages
differently. Use push_message, restore_message, pop_message.
Gerd Moellmann [Sat, 21 Aug 1999 19:29:32 +0000 (19:29 +0000)]
(hash_lookup): Test with EQ before calling key comparion
function.
(hash_remove): Ditto.
(cmpfn_eq): Removed.
(cmpfn_eql): Don't test with EQ.
(cmpfn_equal): Ditto.
(make_hash_table): Set comparison function for `eq' to null.
Gerd Moellmann [Sat, 21 Aug 1999 19:29:02 +0000 (19:29 +0000)]
(do_pending_window_change): Add parameter `safe'.
(change_frame_size): Ditto.
(change_frame_size_1): Ditto. Deley size changes if redisplaying
and not called from a safe place.
(window_change_signal): Call change_frame_size with new parameter.
(set_window_cursor_after_update): Do the
cursor_in_echo_area case only for a mini-window showing
a message. Don't let cursor end up after the end of a row.
(adjust_frame_message_buffer): Removed references
to echo_area_glyphs and previous_echo_glyphs.
(direct_output_for_insert): Check for mini-window displaying
echo area message differently.
(update_frame): Likewise.
(set_window_cursor_after_update): Likewise. In echo area,
don't try to set cursor on rows that aren't enabled.
Gerd Moellmann [Wed, 18 Aug 1999 12:04:53 +0000 (12:04 +0000)]
(x_window) [USE_X_TOOLKIT]: Remove test for
FRAME_X_WINDOW (f) being null at the of the function. If widgets
cannot be created we will already have crashed earlier. Call
lw_set_main_areas with a null menu-bar widget, so that we have
a reasonable default.
(Fx_create_frame): Rearranged so that Lisp errors during frame
initialization cause less damage. Initialize menu bar widget
here.
Gerd Moellmann [Tue, 17 Aug 1999 22:44:56 +0000 (22:44 +0000)]
(unwind_redisplay): New. Resets flag redisplaying_p.
(redisplay_internal): Register unwind_redisplay with
register_unwind_protect.
(try_window_reusing_current_matrix): If new start > old start,
give up if start pos of first reusable row is not equal to new
start.
Gerd Moellmann [Tue, 17 Aug 1999 22:44:47 +0000 (22:44 +0000)]
(Fcoordinates_in_window_p): Return `left-bitmap-area'
and `right-bitmap-area' if position is in the bitmap areas. This
avoids an error when clicking on the bitmap areas. Instead, they
are currently treated like clicks inside the window.
(coordinates_in_window): Return 5 and 6 for bitmap areas.
(Qleft_bitmap_area, Qright_bitmap_area): New.
(syms_of_window): Initialize new symbols.
Dave Love [Tue, 17 Aug 1999 14:31:13 +0000 (14:31 +0000)]
Remove compatibility code.
(info-lookup-guess-default*): DTRT for point st start of symbol.
(info-complete): Don't lose with point not at end of symbol.
Gerd Moellmann [Tue, 17 Aug 1999 00:46:09 +0000 (00:46 +0000)]
(Qshow_trailing_whitespace): Removed.
(Vshow_trailing_whitespace): Added.
(init_iterator): Remove initialization code for
show_trailing_whitespace_p.
(redisplay_internal): Don't try cursor movement in this_line
if showing trailing whitespace.
(redisplay_window): Likewise for cursor movement in current
matrix and try_window_id.
(try_window_reusing_current_matrix): Likewise.
(trailing_whitespace_p): Return 0 if trailing whitespace is
in front of point.
(display_line): Use Vshow_trailing_whitespace instead of
former iterator member show_trailing_whitespace_p.
(syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
Gerd Moellmann [Tue, 17 Aug 1999 00:46:01 +0000 (00:46 +0000)]
(direct_output_for_insert): Use
Vshow_trailing_whitespace instead of former iterator member
show_trailing_whitespace_p.
(direct_output_forward_char): Don't do it if hightlighting
trailing whitespace.
Carsten Dominik [Mon, 16 Aug 1999 07:38:41 +0000 (07:38 +0000)]
(reftex-pop-to-bibtex-entry): Fixed
conflict with pop-up-frames.
(reftex-special-environment-parsers): New constant.
(reftex-label-alist): car of an entry can also be a function.
(reftex-what-special-env): new function.
(reftex-label-location): Call `reftex-what-special-env'.
(reftex-compile-variables): Check for symbol in
`reftex-label-alist'.
(reftex-what-environment): fixed bug with stacked environments of
same kind (e.g. enumerate).
(reftex-process-string): Preserve default directory.
(reftex-label-alist-builtin): changed prefixes of endnote and
footnote. Also the magic words.
(reftex-reference): Interprete new option
`reftex-fref-is-default'.
(reftex-replace-prefix-escapes): Interprete new `%S' format.
(reftex-toc-mouse-view-line): Command removed (had no binding).
(reftex-everything-regexp): New function.
(reftex-nearest-match): Made better.
(reftex-toc-find-section): Use new version of
`reftex-nearest-match'.
(reftex-insert-docstruct): adapted to work with the index stuff.
(reftex-parse-from-file): Find index entries as well.
(reftex-toc-toggle-index): New function
(reftex-toc-map): `i' is now used to togle the index, File
boundaries has been moved to `F'.
(reftex-select-label-map): Toggling display of file boundaries is
now on the `F' key, for consistency with `reftex-toc-map'.
(reftex-erase-all-selection-and-index-buffers): Renamed from
`reftex-erase-all-selection-buffer'. Now also kills the index
buffers.
(reftex-viewing-cross-references): Customization group renamed
from reftex-viewing-cross-references-and-citations.
(reftex-index-macro-regexp,
reftex-find-index-entry-regexp-format): New variables
(reftex-macros-with-index): New variable
(reftex-add-index-macros): New function
(reftex-renumber-simple-labels, reftex-translate): Allow for
multiple labels in a single ref command.
(reftex-index-support): New customization group
(reftex-support-index, reftex-index-special-chars,
reftex-index-macros, reftex-index-default-macro,
reftex-index-default-tag, reftex-index-math-format,
reftex-index-section-letters, reftex-index-include-context,
reftex-index-follow-mode, reftex-index-header-face,
reftex-index-section-face, reftex-index-tag-face,
reftex-index-face): New options
(reftex-index-map, reftex-index-menu, reftex-last-index-file,
reftex-index-tag, reftex-index-return-marker,
reftex-index-restriction-indicator, reftex-index-restriction-data,
reftex-index-macro-regexp, reftex-index-level-re,
reftex-index-key-end-re, reftex-find-index-entry-regexp-format,
reftex-everything-regexp-no-index, reftex-index-re,
reftex-macros-with-index, reftex-index-macro-alist): New variables
(reftex-index-help, reftex-index-macros-builtin,
reftex-key-to-index-macro-alist, reftex-query-index-macro-prompt,
reftex-query-index-macro-help): New constants
(reftex-index-selection-or-word, reftex-index,
reftex-default-index, reftex-update-default-index,
reftex-index-complete-tag, reftex-index-select-tag,
reftex-index-complete-key, reftex-index-update-taglist,
reftex-index-globally, reftex-index-mode, reftex-index-show-entry,
reftex-display-index, reftex-insert-index,
reftex-index-insert-new-letter, reftex-get-restriction,
reftex-index-pre-command-hook, reftex-index-post-command-hook,
reftex-index-show-help, reftex-index-next, reftex-index-previous,
reftex-index-toggle-follow, reftex-index-toggle-context,
reftex-index-view-entry, reftex-index-goto-entry-and-hide,
reftex-index-goto-entry, reftex-index-mouse-goto-line-and-hide,
reftex-index-quit, reftex-index-quit-and-kill,
reftex-index-goto-toc, reftex-index-rescan, reftex-index-Rescan,
reftex-index-revert, reftex-index-switch-index-tag,
reftex-index-restrict-to-section, reftex-index-widen,
reftex-index-restriction-forward,
reftex-index-restriction-backward, reftex-index-visit-location,
reftex-index-analyze-entry, reftex-index-globalize,
reftex-index-edit, reftex-index-toggle-range-beginning,
reftex-index-toggle-range-end, reftex-index-edit-key,
reftex-index-edit-attribute, reftex-index-edit-visual,
reftex-index-edit-part, reftex-index-level-down,
reftex-index-level-up, reftex-index-kill, reftex-index-undo,
reftex-index-change-entry, reftex-index-goto-letter,
reftex-add-index-macros, reftex-ensure-index-support,
reftex-index-info-safe, reftex-index-info): New functions.
Karl Heuer [Mon, 16 Aug 1999 03:18:40 +0000 (03:18 +0000)]
(show-paren-mode): Support making show-paren-mode
a buffer-local variable. Don't check for a window system.
(show-paren-function): Check whether show-paren-function is
enabled in current buffer; do the right thing if not.
Don't check for a window system.
(show-paren-mode): Make it a user variable.
Karl Heuer [Mon, 16 Aug 1999 03:14:25 +0000 (03:14 +0000)]
(mail-unquote-printable): Make it autoload.
Optimize by calling concat just once. Handle =\n sequence.
(mail-unquote-printable-region): New command.
(mail-quote-printable): Make it autoload.
Gerd Moellmann [Sun, 15 Aug 1999 22:29:45 +0000 (22:29 +0000)]
(Vfont_list_limit): New.
(syms_of_xfaces): Make it a user-variable.
(DEFAULT_FONT_LIST_LIMIT): New.
(sorted_font_list): If Vfont_list_limit is an integer > 0, list
maximally that number of fonts, otherwise use
DEFAULT_FONT_LIST_LIMIT.
(Fx_font_family_list): Bind `font-list-limit' to higher values
until we have all fonts.
(Fxfont_list): Additionally return the full names of fonts and
their registry and encoding.
Gerd Moellmann [Sun, 15 Aug 1999 22:00:53 +0000 (22:00 +0000)]
(Qfixed_window_size): New.
(syms_of_window): Initialiaze it.
(check_all_windows): Add return type void.
(window_fixed_size_p): New. Return non-zero if window
is fixed-size.
(window_min_size_1): New.
(window_min_size): Handle fixed-size windows.
(size_window): New. Rewritten combination of set_window_height and
set_window_width that handles fixed-size windows.
(set_window_height): Call it.
(set_window_width): Call it.
(Fsplit_window): Give an error on attempt to split a fixed-size
window.
(change_window_height): Partly rewritten to handle fixed-size
windows.