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.
Kenichi Handa [Fri, 13 Oct 2000 08:21:20 +0000 (08:21 +0000)]
(decode_coding_string): Set coding->src_multibyte and
coding->dst_multibyte before using CODING_REQUIRE_DECODING.
(encode_coding_string): Set coding->src_multibyte and
coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
Eli Zaretskii [Thu, 12 Oct 2000 22:36:37 +0000 (22:36 +0000)]
(normal-top-level): Use display-popup-menus-p instead
of window-system.
(command-line): Use display-graphic-p instead of window-system.
(command-line-1): Use display-popup-menus-p and display-mouse-p
instead of window-system.
Dave Love [Thu, 12 Oct 2000 13:39:32 +0000 (13:39 +0000)]
(normal-top-level-add-subdirs-to-load-path): Use
character class, not ASCII when matching file names.
(fancy-splash-head): Add trailing slash to URL.
(command-line): Don't require XPM support for toolbar.
Gerd Moellmann [Thu, 12 Oct 2000 13:06:00 +0000 (13:06 +0000)]
(save_excursion_save): Additionally record the
selected window.
(save_excursion_restore): If buffer was visible in a window, and a
different window was selected, and the old selected window is
still live, restore point in that window.