Miles Bader [Fri, 6 Oct 2000 04:58:36 +0000 (04:58 +0000)]
(nslookup-prompt-regexp, ftp-prompt-regexp)
(smbclient-prompt-regexp): Add usage note to doc string.
(ftp-font-lock-keywords, smbclient-font-lock-keywords): Removed.
(ftp-mode, smbclient-mode): Don't set `font-lock-defaults'.
Use add-hook for adding the comint filter function, and only do so
if it's not already in the global hook list.
(ftp-mode, smbclient-mode, nslookup-mode): Remove redundant calls
to `make-local-variable'.
(nslookup-font-lock-keywords): Remove prompt entry.
(nslookup): Don't set the process-filter.
(finger): Exit the loop correctly when the regexps list runs out.
(ftp, smbclient, smbclient-list-shares):
Set the real major mode immediately, not after execing.
Use `pop-to-buffer' instead of `switch-to-buffer-other-window'.
Stefan Monnier [Thu, 5 Oct 2000 23:13:07 +0000 (23:13 +0000)]
(which-func-format): Remove spurious space.
(which-func-mode): Don't make it permanent-local.
(which-func-ff-hook): Allow which-func-maxout to be nil.
(which-func-update): Simplify a bit. Only run if which-func-mode is t.
(which-func-mode): Simplify.
Use post-command-idle-hook rather than post-command-hook.
Go through all buffers and update their state.
(which-function): Also try add-log-current-defun-function.
Stefan Monnier [Thu, 5 Oct 2000 22:55:17 +0000 (22:55 +0000)]
(with-vc-properties): Use conses rather than length-2 lists.
(vc-checkout, vc-finish-steal, vc-checkin, vc-revert-file):
Update call to with-vc-properties accordingly.
(vc-comment-search-reverse, vc-comment-search-forward): Docstring fix.
(vc-revert-buffer): Be more careful about window selection and deletion.
(vc-switch-backend): Slight reorg to avoid calling `registered' twice.
Stefan Monnier [Thu, 5 Oct 2000 22:45:59 +0000 (22:45 +0000)]
(cvs-ediff-exit-hook): Expect delete-window to fail.
(cvs-retrieve-revision): Reuse a pre-existing buffer.
(cvs-dired-action): Change the default to quickdir.
Stefan Monnier [Thu, 5 Oct 2000 22:43:22 +0000 (22:43 +0000)]
(comment-indent):
Delegate to indent-according-to-mode if comment-indent-function returns nil.
(comment-indent-default): New function.
(comment-indent-function): Use it and document the new semantics.
Stefan Monnier [Thu, 5 Oct 2000 22:27:38 +0000 (22:27 +0000)]
(help-xref-on-pp): Use match-string.
(describe-variable): New arg BUFFER.
Store the current buffer in the help-xref-stack.
(temp-buffer-resize-mode): Use define-minor-mode.
Stefan Monnier [Thu, 5 Oct 2000 21:30:02 +0000 (21:30 +0000)]
(jit-lock-mode): Use jit-lock-defer-contextually
consistently with its docstring.
Set jit-lock-first-unfontify-pos in an idempotent way.
(jit-lock-register): Autoload and add arg CONTEXTUAL.
Gerd Moellmann [Thu, 5 Oct 2000 19:29:05 +0000 (19:29 +0000)]
(handle_single_display_prop): Use safe_call1.
(safe_call): Renamed from call_function.
(safe_call1): New function.
(handle_fontified_prop): Use safe_call1 instead of call1.
(safe_eval): Renamed from eval_form.
(safe_eval_handler): Renamed from eval_handler.
(handle_single_display_prop, display_mode_element): Use safe_eval
instead of eval_form.
Stefan Monnier [Thu, 5 Oct 2000 01:27:55 +0000 (01:27 +0000)]
(with-buffer-unmodified): Use unwind-protect.
(jit-lock-mode): Make sure font-lock-keywords-only is bound before use.
(jit-lock-functions): New var.
(jit-lock-function-1): Use it if non-nil.
Don't switch the syntax-table. Don't set parse-sexp-lookup-properties.
Set the `fontified' property before doing the fontification to avoid
repeatedly going through the same error.
Don't turn errors into messages.
Gerd Moellmann [Wed, 4 Oct 2000 19:01:37 +0000 (19:01 +0000)]
(fancy-splash-pending-command): New variable.
(fancy-splash-pre-command): New function.
(fancy-splash-screens): Rewritten.
(command-line-1): If fancy-splash-pending-command is set, call it
interactively.
Gerd Moellmann [Wed, 4 Oct 2000 19:00:10 +0000 (19:00 +0000)]
(update_menu_bindings): New variable.
(parse_menu_item): Use AREF. If update_menu_bindings
is 0, don't update menu bindings.
(syms_of_keyboard): New Lisp variable `update-menu-bindings'.
Dave Love [Wed, 4 Oct 2000 17:24:25 +0000 (17:24 +0000)]
Don't turn off compiler warnings in local vars.
Require ring when compiling.
(gnus-x-splash): Bind width, height.
(gnus-article-compface-xbm): New variable.
(gnus-article-display-xface): Move graphic test. Use unibyte.
Obey gnus-article-compface-xbm. Use pbm, not xbm.
André Spiegel [Wed, 4 Oct 2000 09:48:37 +0000 (09:48 +0000)]
(vc-revert-buffer): Handle empty diff properly.
(vc-version-backup-file): New function.
(vc-checkout): Create a version backup if necessary.
(vc-checkin): If a version backup file exists, delete it.
(vc-version-diff): Diff locally using version backups, if available.
(vc-revert-file): If there's a version backup, revert locally.
(vc-transfer-file): Use version backup for base version, if
available. If not, ask for confirmation whether to get it from the
server. Update mode line before check-in.
Peter Breton [Wed, 4 Oct 2000 05:43:37 +0000 (05:43 +0000)]
* net/net-utils.el (nslookup-font-lock-keywords,
ftp-font-lock-keywords, smbclient-font-lock-keywords):
Only set if window-system is non-nil
(net-utils-run-program): Returns buffer.
(network-connection-reconnect): Added this function.
Peter Breton [Wed, 4 Oct 2000 05:17:12 +0000 (05:17 +0000)]
* generic.el:
Incorporates extensive cleanup and docfixes by
Stefan Monnier (monnier+gnu/emacs@flint.cs.yale.edu).
Uses cl compile-time macros.
(generic-mode-name, generic-comment-list,
generic-keywords-list, generic-font-lock-expressions,
generic-mode-function-list, generic-mode-syntax-table):
Removed variables.
(generic-mode-alist): Renamed to generic-mode-list.
(generic-find-file-regexp): Default changed to "^#".
(generic-read-type): Uses completing read on generic-mode-list.
(generic-mode-sanity-check): removed this function.
(generic-add-to-auto-mode): Removed this function
(generic-mode-internal): Binds mode-specific definitions
into function instead of putting them in alist.
(generic-mode-set-comments): Reworked extensively.
(generic-mode-find-file-hook): Simplified regexp searching
(generic-make-keywords-list): Omit extra pair of parens
Peter Breton [Wed, 4 Oct 2000 04:45:55 +0000 (04:45 +0000)]
* generic-x.el (apache-conf-generic-mode):
Regexp now allows leading whitespace.
(rc-generic-mode): Added eval-when-compile
around generic-make-keywords-list.
Deleted duplicate regexp
(rul-generic-mode): Added eval-when-compile
around generic-make-keywords-list.
(etc-fstab-generic-mode): New generic mode.
Miles Bader [Tue, 3 Oct 2000 17:35:47 +0000 (17:35 +0000)]
(dired-mark-read-file-name): Add optional arg DEFAULT.
(dired-do-create-files): If there's only one file, pass it in as
the DEFAULT arg to dired-mark-read-file-name.
Dave Love [Tue, 3 Oct 2000 16:13:36 +0000 (16:13 +0000)]
Don't require mm-util.
(quoted-printable-decode-region): Rewritten.
(quoted-printable-decode-string, quoted-printable-encode-region):
Doc fix.
(quoted-printable-encode-region): Barf on multibyte characters.
Maybe make the class multibyte. Upcase chars, not formatted
strings. Allow mm-use-ultra-safe-encoding to be unbound.
(quoted-printable-encode-string): Don't use
mm-with-unibyte-buffer.
André Spiegel [Tue, 3 Oct 2000 11:33:59 +0000 (11:33 +0000)]
(vc-rcs-fetch-master-state): Parse and remember default branch
unconditionally.
(vc-rcs-set-default-branch): New function.
(vc-rcs-cancel-version, vc-rcs-checkin, vc-rcs-checkout): Use it.
(vc-rcs-checkin): If an appropriate default branch has been set,
force creation of that branch.
Miles Bader [Tue, 3 Oct 2000 07:06:41 +0000 (07:06 +0000)]
(yow): Don't display multi-line quotations in a *Help* buffer, since the
echo area will now grow to accommodate them.
[Note -- I thought I already checked this change, but it seems to have
mysteriously disappeared]
Stefan Monnier [Mon, 2 Oct 2000 22:15:27 +0000 (22:15 +0000)]
(prev_char_comstart_first): Remove.
(back_comment): Check two-char comment markers more carefully
to better handle overlapping cases like *//* or /* */* */ ...
Match nestedness of ender/starter.