Dan Nicolaescu [Sun, 23 Mar 2008 21:05:32 +0000 (21:05 +0000)]
(vc-status-mark-buffer-changed): Add an optional file parameter.
(vc-resynch-buffer): Use it.
(vc-delete-file): Expand the file name before using it. Be
careful to not create a new buffer with the old file contents.
Update the VC state after performing the operation.
Dan Nicolaescu [Sun, 23 Mar 2008 18:12:18 +0000 (18:12 +0000)]
(vc-status-prepare-status-buffer): Fix thinko.
(vc-status-menu-map): Add binding for
vc-status-kill-dir-status-process. Add :enable for vc-status-refresh.
(vc-status-menu-map-filter): Remove vc-ignore-menu-filter test.
(vc-status-tool-bar-map): Add binding for vc-status-kill-dir-status-process.
Don't test display-graphic-p and don't bind vc-ignore-menu-filter.
(vc-update-vc-status-buffer, vc-status-kill-dir-status-process):
Reset vc-status-process-buffer.
(vc-status-refresh): Don't run two refreshes at a time.
(vc-status): If the buffer is already in vc-status-mode only refresh.
Dan Nicolaescu [Sat, 22 Mar 2008 17:33:52 +0000 (17:33 +0000)]
(vc-git--empty-db-p)
(vc-git-after-dir-status-stage1-empty-db): New functions.
(vc-git-dir-status, vc-git-after-dir-status-stage1, vc-git-state):
Add support for empty repositories.
Eli Zaretskii [Sat, 22 Mar 2008 11:53:40 +0000 (11:53 +0000)]
(readdir): If FindFirstFile/FindNextFile return in cFileName a file name that
includes `?' characters, use the 8+3 alias in cAlternateFileName instead.
Juri Linkov [Sat, 22 Mar 2008 00:02:24 +0000 (00:02 +0000)]
(debug-ignored-errors): Remove $ from the end of
"^No dynamic expansion for .* found$" to allow error messages like
"No dynamic expansion for \"%s\" found in this buffer".
Juri Linkov [Fri, 21 Mar 2008 23:58:06 +0000 (23:58 +0000)]
* comint.el (comint-dynamic-simple-complete):
Use variable `stub' for the second arg `common-substring'
of `comint-dynamic-list-completions'.
(comint-dynamic-list-filename-completions):
Use variable `filenondir' for the second arg `common-substring'
of `comint-dynamic-list-completions'.
(comint-dynamic-list-completions): Add new optional arg
`common-substring'. Add `common-substring' as the
second arg of the call to `display-completion-list'. Doc fix.
Juri Linkov [Fri, 21 Mar 2008 23:52:27 +0000 (23:52 +0000)]
(shell-dynamic-complete-command)
(shell-dynamic-complete-environment-variable): Don't display
completion messages when command is called in the minibuffer.
Juri Linkov [Fri, 21 Mar 2008 23:51:40 +0000 (23:51 +0000)]
(comint-dynamic-complete-as-filename)
(comint-dynamic-list-filename-completions)
(comint-dynamic-simple-complete): Use `minibuffer-message'
to display message "No completions of %s" when a command
is called in the minibuffer.
(comint-dynamic-simple-complete): Don't display other
completion messages when a command is called in the minibuffer.
(comint-dynamic-list-completions): Use `minibuffer-message'
to display message " [Type space to flush ...]" when a command
is called in the minibuffer.
Stefan Monnier [Fri, 21 Mar 2008 17:53:04 +0000 (17:53 +0000)]
* vc-hooks.el (vc-default-mode-line-string): Add case for added files.
* vc.el (vc-default-dired-state-info): Use just "modified".
* vc-cvs.el (vc-cvs-state-heuristic): Turn rev 0 into `added'.
(vc-cvs-mode-line-string): Make use of the better default.
(vc-cvs-parse-entry): Use the new `added'.
(vc-cvs-dired-state-info): Remove.
* vc-svn.el (vc-svn-dired-state-info): Remove.
* vc-hg.el (vc-hg-dired-state-info): Remove.
* vc-git.el (vc-git-dired-state-info): Remove.
Dan Nicolaescu [Fri, 21 Mar 2008 06:29:04 +0000 (06:29 +0000)]
(vc-git-status-result): New variable.
(vc-git-dir-status): Split out ...
(vc-git-after-dir-status-stage1, vc-git-after-dir-status-stage2):
... these new functions and work asynchronously.
Dan Nicolaescu [Fri, 21 Mar 2008 06:02:51 +0000 (06:02 +0000)]
(vc-status-mark-buffer-changed): Better deal with files in
the 'added state.
(vc-status-remove-up-to-date): New function.
(vc-status-mode-map, vc-status-menu-map): Bind it.
(vc-status-printer): Use a different face up-to-date files.
(vc-resynch-buffer): Update the vc-status buffer if it exists.
(Todo): Remove solved entries.
Dan Nicolaescu [Fri, 21 Mar 2008 05:53:48 +0000 (05:53 +0000)]
* vc-hg.el (vc-hg-state):
* vc-git.el (vc-git-state):
* vc-cvs.el (vc-cvs-parse-status):
* vc-bzr.el (vc-bzr-state): Return 'added when the file is in that
state.
Stefan Monnier [Thu, 20 Mar 2008 19:48:07 +0000 (19:48 +0000)]
(minibuffer-local-shell-command-map): New var.
(minibuffer-complete-shell-command, read-shell-command): New funs.
(shell-command, shell-command-on-region): Use them.
Stefan Monnier [Thu, 20 Mar 2008 18:38:34 +0000 (18:38 +0000)]
* intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
(set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
work on current_buffer only instead (that was already the case
for some of the code anyway).
* buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
(temp_set_point, temp_set_point_both): Use EMACS_INT.
(SET_PT, SET_PT_BOTH): Adjust.
* intervals.h (set_point, temp_set_point, set_point_both)
(temp_set_point_both): Remove redundant declarations.
Dan Nicolaescu [Thu, 20 Mar 2008 15:51:45 +0000 (15:51 +0000)]
(vc-status-mark-buffer-changed): New function to implement
updating of the *vc-status* buffer when a buffer is saved.
(vc-status-mode): Use it for after-change-hook.
(vc-add-to-vc-status-buffer): Rename to ...
(vc-status-add-entry): ... this.
(Todo): Add new entry.
Dan Nicolaescu [Thu, 20 Mar 2008 07:44:55 +0000 (07:44 +0000)]
* textmodes/refbib.el:
* textmodes/reftex.el:
* textmodes/reftex-global.el:
* textmodes/reftex-vars.el:
* textmodes/reftex-toc.el: Don't use eval-and-compile for byte
compiler pacifying defvars.
(reftex-toc-mode): Only make zmacs-regions local on XEmacs.
* textmodes/reftex-index.el (zmacs-regions): Remove pacifier, not
needed.
Dan Nicolaescu [Thu, 20 Mar 2008 06:27:52 +0000 (06:27 +0000)]
(verilog-easy-menu-filter): New function.
(verilog-stmt-menu, verilog-menu): Add :help and filter it.
(verilog-customize, verilog-font-customize)
(electric-verilog-backward-sexp, electric-verilog-forward-sexp)
(verilog-mode): Update documentation strings to match tool tips.
(verilog-auto-search-do, verilog-auto-re-search-do)
(verilog-skip-forward-comment-or-string): Fix verilog-auto
expansion when a .* appears inside a string.
(verilog-re-search-forward, verilog-re-search-backward): Add
comment to recall how this works.
Glenn Morris [Thu, 20 Mar 2008 04:46:51 +0000 (04:46 +0000)]
(calendar-other-dates): Declare it, and removes the declarations it replaces.
(calendar-mouse-print-dates): Use calendar-other-dates.
(calendar-mouse-holidays): Re-use the title.
(calendar-mouse-view-diary-entries): Use or.
(calendar-mouse-chinese-date): Remove unused command.
(cal-menu-load-hook): Mark as obsolete.
Michael Albinus [Wed, 19 Mar 2008 21:06:37 +0000 (21:06 +0000)]
* net/tramp.el (tramp-let-maybe): Removed.
(tramp-drop-volume-letter): Don't use `replace-regexp-in-string'.
It does not exist under XEmacs.
(tramp-handle-file-truename, tramp-handle-expand-file-name)
(tramp-completion-file-name-handler): Let-bind
`directory-sep-char'.
Jason Rumney [Wed, 19 Mar 2008 17:04:18 +0000 (17:04 +0000)]
* w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
(syms_of_w32fns): Initialize them.
(HOURGLASS_ID): New constant.
(x_window_to_frame): Don't check hourglass_window.
(w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
(w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
(w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
(w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
Only change the cursor if hourglass is not active.
(Fx_create_frame): Initialize frame's current_cursor.
(hourglass_atimer): Remove.
(hourglass_started): New function.
(start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
(show_hourglass): Adapt to w32, changing argument to frame.
Bill Wohler [Tue, 18 Mar 2008 04:17:38 +0000 (04:17 +0000)]
(mh-invisible-header-fields-internal): Add Accreditor,
Seal-Send-Time (closes SF #1916032).
(mh-invisible-header-fields, mh-invisible-header-fields-default):
Update URL to bug report for users to report ignored fields.
Michael Albinus [Mon, 17 Mar 2008 22:57:15 +0000 (22:57 +0000)]
* net/tramp.el (tramp-root-regexp): Simplify.
(tramp-completion-file-name-regexp-separate): Don't insist on
leading "[". This prevents method or user or host completion.
(tramp-let-maybe): Autoload it.
(tramp-drop-volume-letter): Don't autoload. When not on W32, it is
an alias for `identity'.
(tramp-handle-write-region): Protect `last-coding-system-used'
over the trailing statements.
(tramp-completion-file-name-handler-post-function): Removed.
(tramp-completion-file-name-handler): Let-bind
`directory-sep-char' instead of calling
`tramp-drop-volume-letter'.
(top): Move coding cookie at the end.