Gerd Moellmann [Mon, 16 Oct 2000 21:05:03 +0000 (21:05 +0000)]
(set_iterator_to_next): Reset box start and flags of the
iterator at the beginning, so that they can be set later on, for
instance in reseat_at_next_visible_line_start without being
overwritten.
Gerd Moellmann [Mon, 16 Oct 2000 19:57:04 +0000 (19:57 +0000)]
(pbm_format): Add :foreground and :background keywords.
(PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
(xbm_load): Recoghnize foreground and background color
specifications.
Eli Zaretskii [Mon, 16 Oct 2000 19:16:20 +0000 (19:16 +0000)]
(IT_set_face): Compare highlighted face with the default
face, and invert colors if these faces' colors are identical.
(Fmsdos_remember_default_colors): Don't swap foreground and
background colors in initial_colors[].
(IT_set_frame_parameters): Don't swap frame's foreground and
background pixels. If ALIST includes "(reverse . t)", swap
foreground-color and background-color properties in frame's
param_alist. If the original frame's param_alist doesn't specify
the colors, store unspecified-fg and unspecified-bg, reversed if
required.
Eli Zaretskii [Mon, 16 Oct 2000 19:15:09 +0000 (19:15 +0000)]
(Fframe_parameters): If a tty's frame's param_alist says
the colors are unspecified and reversed, reverse fore- and back-
ground in the returned value.
(Fframe_parameter): Ditto.
Gerd Moellmann [Mon, 16 Oct 2000 15:39:59 +0000 (15:39 +0000)]
(find_last_unchanged_at_beg_row): Renamed from
get_last_unchanged_at_beg_row.
(find_first_unchanged_at_end_row): Renamed from
get_first_unchanged_at_end_row.
(find_first_unchanged_at_end_row): Convert assertions to
unconditional tests which abort. When looking for a row in
unchanged text, don't go further back than first_text_row.
Gerd Moellmann [Mon, 16 Oct 2000 13:56:12 +0000 (13:56 +0000)]
(try_scrolling) <cursor in scroll margin at the bottom>:
Don't add in the last line's height when deciding if the new
position is below the scroll margin.
Stefan Monnier [Sun, 15 Oct 2000 21:42:41 +0000 (21:42 +0000)]
(Fstring_to_syntax): New function extracted from Fmodify_syntax_entry.
(Fmodify_syntax_entry): Use it and document the ! and | fences.
(skip_chars, Fforward_comment): Remove unused variables.
(syms_of_syntax): Add defsubr for string-to-syntax.
Stefan Monnier [Sun, 15 Oct 2000 05:18:48 +0000 (05:18 +0000)]
* pcvs.el (cvs-make-cvs-buffer, cvs-run-process):
Don't need make-local-hook any more.
(cvs-addto-collection): Return the new tin.
(cvs-mode-insert): Jump to the new line.
Stefan Monnier [Sun, 15 Oct 2000 04:51:57 +0000 (04:51 +0000)]
(font-lock-syntactically-fontified): New var.
(font-lock-fontify-syntactic-keywords-region): Use it.
(font-lock-mode): Fix docstring. Don't need make-local-hook anymore.
Stefan Monnier [Sun, 15 Oct 2000 04:38:24 +0000 (04:38 +0000)]
(sh-imenu-generic-expression): Fix.
(sh-mode-syntax-table): Add punctuation syntax for < and >.
(sh-mode): Don't make all vars local here.
(sh-kw): Reformat.
(sh-set-shell): Use dolist. Don't set indent-region-function.
(sh-mode-syntax-table): Use pop.
(sh-remember-variable): Use push.
(sh-help-string-for-variable): Use memq.
(sh-safe-backward-sexp): Remove.
(sh-safe-forward-sexp): Add ARG.
(sh-get-indent-info, sh-prev-stmt): Use it.
(sh-prev-line): Simplify by using forward-comment.
(sh-this-is-a-continuation): Simplify.
(sh-learn-buffer-indent): Use dolist.
(sh-do-nothing): Remove.
(sh-set-char-syntax, sh-set-here-doc-region):
Use inhibit-modification-hooks.
(sh-name-style): Use mapcar and push.
(sh-load-style): Use dolist.
(sh-save-styles-to-buffer): Use with-current-buffer and pp.
(sh-case, sh-while-getopts): Use propertize directly rather
than sh-electric-rparen.
Stefan Monnier [Sun, 15 Oct 2000 03:48:17 +0000 (03:48 +0000)]
Require CL when compiling.
(tex-mode-syntax-table): Init immediately.
(tex-mode-map): Bind M-RET to latex-insert-item.
(latex-mode): Set indent-line-function to latex-indent.
(tex-common-initialization): Don't setup the syntax-table any more.
(latex-insert-item): New skeleton.
(tex-next-unmatched-end): Fix copy/paste braino.
(latex-syntax-after, latex-skip-close-parens, latex-down-list)
(latex-indent, latex-find-indent): New functions.
(tex-indent-allhanging, tex-indent-arg, tex-latex-indent-syntax-table)
(tex-indent-item, tex-indent-item-re, tex-indent-basic): New vars.
(tex-compilation-parse-errors): Use with-syntax-table.
Stefan Monnier [Sun, 15 Oct 2000 03:31:32 +0000 (03:31 +0000)]
* keymap.c (access_keymap): Add AUTOLOAD parameter.
Do the meta->esc mapping. Call get_keyelt before returning.
Start scanning from the second element (the first is always `keymap')
to make it easier to detect when we reach a parent map.
Handle the case of inheriting from a symbol whose function is a map.
(Fkeymap_parent): Also handle the `inherit from symbol' case.
(fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
(get_keyelt, Flookup_key): Update call to access_keymap.
Remove the meta->esc mappings.
(define_as_prefix): Delete old disabled code.
(menu_item_p): New function.
(where_is_internal_1): Skip over the few remaining menu items.
* lisp.h (access_keymap): Update prototype.
* keyboard.c (read_char, menu_bar_items, tool_bar_items):
Update call to access_keymap.
(follow_key, read_key_sequence): Update calls to access_keymap.
Remove the meta->esc mappings.
Gerd Moellmann [Fri, 13 Oct 2000 13:11:49 +0000 (13:11 +0000)]
(cursor_row_p): New function.
(try_cursor_movement, display_line): Use it.
(append_space): Also save/restore iterator's current
character and its length.
(init_from_display_pos): Add an assertion.
(handle_stop): Don't set iterator's add_overlay_start.
(handle_invisible_prop): Likewise.
(load_overlay_strings): If text under an overlay is invisible,
take both before- and after-strings into account when the iterator
is positioned either at the start or at the end of the overlay.
(forward_to_next_line_start): Rewritten.
(reseat_at_next_visible_line_start): Rewritten.
(set_iterator_to_next): Add parameter RESEAT_P.
Gerd Moellmann [Fri, 13 Oct 2000 11:30:53 +0000 (11:30 +0000)]
(time-stamp): Fixed bug in new multi-line code
that breaks with old list format timestamps.
(time-stamp-warn-inactive, time-stamp-old-format-warn)
(time-stamp-count, time-stamp-conversion-warn): Improved doc
strings.