Stefan Monnier [Wed, 26 Mar 2008 03:40:40 +0000 (03:40 +0000)]
(activate-mark): New function.
(set-mark-command): Use it with region-active-p to clean up the code.
(exchange-point-and-mark): Invert the meaning of C-u when
transient-mark-mode is active.
Glenn Morris [Wed, 26 Mar 2008 03:13:55 +0000 (03:13 +0000)]
Provide calendar before requiring cal-menu.
(oriental-holidays, solar-holidays): Assume atan always bound.
(solar-holidays): Simplify holiday-sexp calls.
Glenn Morris [Wed, 26 Mar 2008 03:12:48 +0000 (03:12 +0000)]
(calendar-after-frame-setup-hook): New name for
calendar-after-frame-setup-hooks. Update callers, make old name an
obsolete alias. Doc fix.
(calendar-frame-1): Doc fix.
Glenn Morris [Wed, 26 Mar 2008 03:11:38 +0000 (03:11 +0000)]
Require calendar rather than declaring functions.
(cal-menu-diary-menu): Remove menu headings that cause cal-bahai,
cal-islam, cal-hebrew to be loaded on starting the calendar.
Juri Linkov [Tue, 25 Mar 2008 21:48:28 +0000 (21:48 +0000)]
(minibuffer-local-map): For the command
file-cache-minibuffer-complete replace keymap minibuffer-local-map
with map which is already locally bound to minibuffer-local-map.
Stefan Monnier [Tue, 25 Mar 2008 20:12:54 +0000 (20:12 +0000)]
(map_keymap_internal): New fun.
(map_keymap): Use it.
(Fmap_keymap_internal): New fun.
(Fmap_keymap): Remove left-out test from before make_save_value.
Stefan Monnier [Tue, 25 Mar 2008 17:35:48 +0000 (17:35 +0000)]
* process.h (struct Lisp_Process): Remove filter_multibyte.
* process.c (QCfilter_multibyte): Remove.
(setup_process_coding_systems): Don't use filter_multibyte.
(Fstart_process, Fmake_network_process): Don't set filter_multibyte.
(read_process_output): Don't adjust multibyteness to filter_multibyte.
(Fset_process_filter_multibyte): Change the coding-system to
approximate the previous behavior.
(Fprocess_filter_multibyte_p): Get the multibyteness straight from the
coding-system.
Stefan Monnier [Tue, 25 Mar 2008 17:32:20 +0000 (17:32 +0000)]
(redisplay-end-trigger-functions, window-redisplay-end-trigger)
(set-window-redisplay-end-trigger, process-filter-multibyte-p)
(set-process-filter-multibyte): Mark as obsolete.
(reb-mode-common): Remove reference to bogus variable `reb-kill-buffer';
don't make hooks buffer-local, use the LOCAL arg of `add-hook'.
(reb-blink-delay, reb-mode-hook, reb-re-syntax, reb-auto-match-limit):
Remove spurious * from defcustom docstrings.
(reb-next-match, reb-prev-match, reb-enter-subexp-mode): Fix typos in messages.
(reb-mode-buffer-p): New function.
(re-builder, reb-kill-buffer): Use `reb-mode-buffer-p'. Use `when'.
(top, reb-show-subexp, reb-auto-update, reb-auto-update, reb-delete-overlays,
reb-cook-regexp, reb-update-regexp, reb-update-overlays): Use `unless', `when'.
(re-builder-unload-function): New function.
Dan Nicolaescu [Tue, 25 Mar 2008 15:45:49 +0000 (15:45 +0000)]
(verilog-auto-output)
(verilog-auto-input, verilog-auto-inout, verilog-auto)
(verilog-delete-auto): Add optional regular expression to
AUTOINPUT/AUTOOUTPUT/AUTOINOUT.
(verilog-signals-matching-regexp): New internal function for
signal matching.
Glenn Morris [Tue, 25 Mar 2008 03:43:46 +0000 (03:43 +0000)]
(diary-frame-parameters, calendar-frame-parameters)
(calendar-and-diary-frame-parameters): Doc fixes.
(make-fancy-diary-buffer): Remove declaration.
(calendar-dedicate-diary): Replace call to deleted function
make-fancy-diary-buffer.
(calendar-frame-setup): New function.
(calendar-one-frame-setup, calendar-only-one-frame-setup)
(calendar-two-frame-setup): Call calendar-frame-setup to do the actual
work, and mark as obsolete.
(special-display-buffer-names): Don't mess with this; it's not our business.
(cal-x-load-hook): Defvar it, and mark as obsolete.
Glenn Morris [Tue, 25 Mar 2008 03:42:01 +0000 (03:42 +0000)]
(calendar-persian-read-date): New name for persian-prompt-for-date.
Update callers, make old name an obsolete alias. Doc fix. Move
definition before use.
Stefan Monnier [Mon, 24 Mar 2008 19:42:12 +0000 (19:42 +0000)]
(casify_object): Avoid pathological N^2 worst case if
every char is changed and has a different byte-length.
(Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
Fix int -> EMACS_INT.
Stefan Monnier [Mon, 24 Mar 2008 18:43:04 +0000 (18:43 +0000)]
(finder-mode-syntax-table, finder-font-lock-keywords): New variables.
(finder-mode): Use finder-mode-syntax-table. Set font-lock-defaults.
(finder-exit): Ignore errors rather than avoiding them.
Kill *Finder-package* buffer also.
Dan Nicolaescu [Mon, 24 Mar 2008 08:35:33 +0000 (08:35 +0000)]
(vc-status-printer): Use a different face for missing files.
(vc-status-hide-up-to-date): Rename from
vc-status-remove-up-to-date. Update all callers.
(vc-status-mode-map): Bind C-m.
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.