Juri Linkov [Tue, 22 Apr 2008 19:54:27 +0000 (19:54 +0000)]
(dired-smart-shell-command): Sync arguments and
interactive spec with changes in `shell-command'.
Use dired-get-filename to get the dired file name at point
as the default value in dired mode.
Juri Linkov [Tue, 22 Apr 2008 19:51:57 +0000 (19:51 +0000)]
(dired-read-shell-command-default): Move it to
gnus/mailcap.el and change its name to more general name
mailcap-file-default-commands.
(minibuffer-default-add-dired-shell-commands): New function.
Use declare-function for mailcap-file-default-commands from "mailcap".
(dired-read-shell-command): Set local minibuffer-default-add-function
to minibuffer-default-add-dired-shell-commands in minibuffer-with-setup-hook
before calling read-shell-command. Remove dired-read-shell-command-default
from the default value arg because default values are not set in
minibuffer-default-add-dired-shell-commands. Doc fix.
Juri Linkov [Tue, 22 Apr 2008 19:50:11 +0000 (19:50 +0000)]
(minibuffer-default-add-shell-commands): New function.
Use declare-function for mailcap-file-default-commands from "mailcap".
(shell-command): Set local minibuffer-default-add-function to
minibuffer-default-add-shell-commands in minibuffer-with-setup-hook
before calling read-shell-command. Set 4th arg default-value of
read-shell-command to relative buffer-file-name in file buffers.
Juri Linkov [Tue, 22 Apr 2008 19:48:02 +0000 (19:48 +0000)]
(read-buffer-to-switch): New function.
(switch-to-buffer-other-window, switch-to-buffer-other-frame):
Change interactive spec to call read-buffer-to-switch instead of
using the letter "B".
Dan Nicolaescu [Tue, 22 Apr 2008 09:00:14 +0000 (09:00 +0000)]
(vc-next-action): Do not consider directories when
checking for state compatibility.
(vc-transfer-file): Use when not if.
(vc-dir-parent-marked-p, vc-dir-children-marked-p): New functions.
(vc-dir-mark-file): Use them.
(vc-deduce-fileset): Also return the backend.
(vc-diff-internal): Take as argument the value returned by
vc-deduce-fileset instead of just the fileset.
(vc-next-action, vc-finish-logentry, vc-version-diff, vc-diff)
(vc-dir-mark-file, vc-print-log, vc-revert, vc-rollback)
(vc-update): Update the vc-deduce-fileset and vc-diff-internal calls.
(copyright-at-end-flag): New option.
(copyright-limit): Respect copyright-at-end-flag.
(copyright-re-search, copyright-start-point)
(copyright-offset-too-large-p): New functions.
(copyright-update-year): Use copyright-re-search.
(copyright-update, copyright-fix-years): Use copyright-start-point,
and copyright-re-search.
(copyright): Use copyright-offset-too-large-p.
Stefan Monnier [Mon, 21 Apr 2008 21:01:38 +0000 (21:01 +0000)]
(ffap-read-file-or-url): Do not abuse completing-read's
`predicate' argument to pass non-predicate data.
(ffap-read-url-internal, ffap-read-file-or-url-internal):
Use second arg as proper predicate.
Stefan Monnier [Mon, 21 Apr 2008 19:02:54 +0000 (19:02 +0000)]
(completion-try-completion): Change magic symbol
property name. Rename from minibuffer-try-completion.
(completion-all-completions): Rename from minibuffer-all-completions.
Remove hide-spaces argument.
(completion--do-completion): Rename from minibuffer--do-completion.
(minibuffer-complete-and-exit): Call just try-completion rather than
completion-try-completion to fix up the case.
(completion--try-word-completion): Try to add space or hyphen before
making `string' a prefix of `completion'.
(completion--insert-strings): Rename from minibuffer--insert-strings.
Nick Roberts [Sat, 19 Apr 2008 22:49:32 +0000 (22:49 +0000)]
(gdb-mouse-set-clear-breakpoint): Select
window clicked on first (regression in 22.2).
(gdb): Display thread number in mode-line.
(gdb-make-header-line-mouse-map): Move to avoid byte compiler warnings.
(gdb-breakpoints-header): New variable.
(gdb-breakpoints-mode, gdb-threads-mode): Use it for header line.
Stefan Monnier [Sat, 19 Apr 2008 21:53:55 +0000 (21:53 +0000)]
* lisp/vc-sccs.el (vc-sccs-do-command): New fun. Use the "sccs" command.
(vc-sccs-register, vc-sccs-checkin, vc-sccs-find-revision)
(vc-sccs-checkout, vc-sccs-rollback, vc-sccs-revert)
(vc-sccs-steal-lock, vc-sccs-modify-change-comment)
(vc-sccs-print-log): Use it.
* lisp/vc-hooks.el (vc-path): Remove SCCS-specific hack.
* lib-src/vcdiff: Use "sccs get" rather than "get"; leave PATH alone.
Stefan Monnier [Sat, 19 Apr 2008 19:30:53 +0000 (19:30 +0000)]
* tooltip.el (tooltip-previous-message): New var.
(tooltip-show-help-non-mode): Rewrite to better follow the behavior of the
C code (avoid overwriting a minibuffer, restore previous echo message, ...).
(tooltip-delay, tooltip-process-prompt-regexp, tooltip-strip-prompt): Simplify.
* keyboard.c (Vpre_help_message): Remove.
(show_help_echo): Remove default C code.
Nick Roberts [Sat, 19 Apr 2008 06:41:23 +0000 (06:41 +0000)]
(gdb-thread-indicator): New variable.
(gdb-init-1): Initialise it.
(gdb-annotation-rules): New entry for "new-thread".
(gdb-thread-identification): New function to customize
mode-line-buffer-identification.
(gdb-frames-mode, gdb-registers-mode, gdb-locals-mode)
(gdb-assembler-mode): Use it.
(gdb-threads-mode): Force "info threads" onto queue.
Stefan Monnier [Sat, 19 Apr 2008 03:33:13 +0000 (03:33 +0000)]
* files.el (locate-file-completion-table): Rename from
locate-file-completion and make it use `pred' in the normal way.
(locate-file-completion): New compatibility wrapper.
(load-library): Use locate-file-completion-table.
* emacs-lisp/find-func.el (find-library): Likewise.
* info.el: Use with-current-buffer and inhibit-read-only.
(Info-read-node-name-2): Change to use `predicate' in the normal way.
(Info-read-node-name-1): Adjust uses accordingly.
Stefan Monnier [Sat, 19 Apr 2008 03:23:15 +0000 (03:23 +0000)]
* minibuffer.el (completion-table-with-context): Add support for `pred'.
(completion-table-with-terminator): Don't use complete-with-action
since we have to distinguish all three cases anyway.
(completion-table-with-predicate): New function.
(dynamic-completion-table): Add obsolete alias.
* minibuf.texi (Programmed Completion):
Replace dynamic-completion-table with the new completion-table-dynamic.
Stefan Monnier [Fri, 18 Apr 2008 15:48:06 +0000 (15:48 +0000)]
* configure.in: Define USE_LUCID/USE_MOTIF in config.h.
* lwlib/Makefile.in (TOOLKIT_DEFINES): Remove.
* src/Makefile.in (TOOLKIT_DEFINES): Remove.
(LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
(char-coding-system-table): Remove redundant obsolescence info in docstring.
(charset-list, generic-char-p, set-char-table-default): Fix typos in
obsolescence decarations.