(tool-bar-local-item): Renamed from tool-bar-add-item, and new arg MAP.
(tool-bar-add-item): Now calls tool-bar-local-item.
(tool-bar-local-item-from-menu): Renamed from
tool-bar-add-item-from-menu, and new arg IN-MAP.
(tool-bar-add-item-from-menu): Now calls tool-bar-local-item-from-menu.
Pavel Janík [Mon, 1 Apr 2002 13:42:32 +0000 (13:42 +0000)]
(Qselect_window): New symbol.
(head_table): Use it.
(keys_of_keyboard): Bound select-window event to handle-select-window.
(kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
Colin Walters [Fri, 29 Mar 2002 22:54:49 +0000 (22:54 +0000)]
(ibuffer-mark-interactive): Use `ibuffer-forward-line' instead of
`forward-line'.
(ibuffer-forward-line): Be sure to skip over special properties
before moving, too.
Stefan Monnier [Fri, 29 Mar 2002 22:20:15 +0000 (22:20 +0000)]
(sgml-lexical-context): Return (text . START)
instead of nil when point is outside of any tag.
(sgml-beginning-of-tag): Adjust to the change.
(sgml-calculate-indent): Use the new info returned by
sgml-lexical-context. Try to handle unclosed tags.
Stefan Monnier [Fri, 29 Mar 2002 22:16:38 +0000 (22:16 +0000)]
(xml-lite-get-context): Don't stop parsing
at unclosed tags unless it is at indentation.
Kill nested unclosed tags.
(xml-lite-calculate-indent, xml-lite-indent-line): Remove.
(xml-lite-mode): Use sgml-indent-line instead.
Stefan Monnier [Fri, 29 Mar 2002 20:10:46 +0000 (20:10 +0000)]
(xml-lite-get-context): Allow stopping even with an empty context.
Don't save excursion any more. Ignore end-tags in sgml-empty-tags.
Don't complain about unmatched start-tags in sgml-unclosed-tags.
(xml-lite-get-context, xml-lite-calculate-indent)
(xml-lite-insert-end-tag): Save excursion around xml-lite-get-context.
(xml-lite-indent-line): Use back-to-indentation.
Stefan Monnier [Fri, 29 Mar 2002 19:38:22 +0000 (19:38 +0000)]
(sgml-basic-offset): New var.
(sgml-name-re, sgml-attrs-re): New consts.
(sgml-tag-name-re, sgml-start-tag-regex, sgml-font-lock-keywords-1)
(sgml-mode): Use them.
(sgml-lexical-context): Default to (point-min) if nothing else works.
(sgml-calculate-indent): Indent slightly differently.
(sgml-indent-line): Use back-to-indentation.
(sgml-parse-dtd): New function.
(sgml-unclosed-tags): New var.
(html-mode): Set it.
(dired-do-query-replace-regexp, dired-do-search):
Use FILTER arg in dired-get-marked-files to exclude directories.
(dired-nondirectory-p): New function.
Eli Zaretskii [Fri, 29 Mar 2002 12:38:35 +0000 (12:38 +0000)]
(openp, Fload): Encode the file name before pasing it
to `stat', `access', and `emacs_open'.
(openp): GCPRO the encoded file name. Don't recompute Lisp
strings unnecessarily.
Stefan Monnier [Thu, 28 Mar 2002 16:13:01 +0000 (16:13 +0000)]
(xml-lite-in-string-p): Use sgml-lexical-context.
(xml-lite-parse-tag-backward): Use sgml-tag-syntax-table.
(xml-lite-get-context): Check that open/close tags match.
Don't stop scanning while we're ignoring matching tags.
Stefan Monnier [Thu, 28 Mar 2002 16:06:38 +0000 (16:06 +0000)]
(sgml-make-syntax-table): New fun.
(sgml-mode-syntax-table): Use it.
(sgml-tag-syntax-table, sgml-tag-name-re): New const.
(sgml-tags-invisible): Use it.
(sgml-lexical-context): New fun.
(sgml-maybe-end-tag, sgml-beginning-of-tag): Use it.
(sgml-quote): Accept \n as entity reference terminator.
(sgml-calculate-indent, sgml-indent-line): New funs.
Stefan Monnier [Wed, 27 Mar 2002 22:25:45 +0000 (22:25 +0000)]
Fix copyright notice.
(xml-lite-basic-offset): Rename from xml-lite-indent-offset.
(xml-lite-indent-comment-offset): Remove.
(xml-lite-calculate-indent): Use new name. Use natural alignment
for comments.
Colin Walters [Wed, 27 Mar 2002 22:19:24 +0000 (22:19 +0000)]
(ibuffer-help-buffer-modes): New variable.
(ibuffer-fontification-alist): Use it.
(ibuffer-backward-line): Handle `ibuffer-summary' area.
(ibuffer-forward-line): Ditto.
Stefan Monnier [Wed, 27 Mar 2002 18:07:04 +0000 (18:07 +0000)]
Don't require `custom'.
(xml-lite-parse-tag-name): Properly treat non-ASCII chars.
(xml-lite-parse-tag-backward): Obey sgml-empty-tags.
(xml-lite-get-context): Drop nested tags not just for comments.
(xml-lite-indent-line): Be more careful about moving point.
(xml-lite-insert-end-tag, xml-lite-slash):
Use indent-according-to-mode instead of xml-lite-indent-line.
(xml-lite-mode): Make xml-lite-orig-indent-line-function buffer-local.
Set sgml-xml-mode. Don't call force-mode-line-update.
(xml-lite-mode-map): Don't bind TAB.