Stefan Monnier [Wed, 25 Jul 2007 21:58:18 +0000 (21:58 +0000)]
Break dependency on calendar.el (i.e. do not modify calendar-mode-map),
use easy-menu, and make sure that C-h k can be used on the menu entries.
(cal-menu-holiday-window-suffix, cal-menu-set-date-title): New funs.
(cal-menu-moon-menu, cal-menu-diary-menu, cal-menu-holidays-menu)
(cal-menu-goto-menu, cal-menu-scroll-menu): New consts.
(cal-menu-context-mouse-menu, cal-menu-global-mouse-menu): New menus.
(calendar-flatten, cal-menu-update): Remove.
(calendar-mouse-insert-hebrew-diary-entry)
(calendar-mouse-insert-islamic-diary-entry)
(calendar-mouse-insert-bahai-diary-entry):
Remove (fold into cal-menu-diary-menu).
(calendar-mouse-2-date-menu, calendar-mouse-cal-tex-menu)
(cal-tex-mouse-filofax): Remove (fold into cal-menu-context-mouse-menu).
(calendar-mouse-3-map): Remove (turn into cal-menu-global-mouse-menu).
(calendar-mouse-view-diary-entries): Minor simplifications.
(calendar-event-to-date): Use with-current-buffer.
Stefan Monnier [Tue, 24 Jul 2007 21:45:28 +0000 (21:45 +0000)]
(save-selected-window): Minor optimization.
(bw-adjust-window): If operation failed, try with a smaller delta.
(window-fixed-size-p): New function.
(window-area-factor): New var.
(balance-windows-area): New command.
Stefan Monnier [Tue, 24 Jul 2007 21:03:23 +0000 (21:03 +0000)]
(ps-multibyte-buffer): Docstring fixes.
(ps-mule-encode-ethiopic): Make it clear that it's always defined.
(ps-mule-prepare-font-for-components, ps-mule-encode-header-string)
(ps-mule-encode-bit, ps-mule-encode-ucs2): Use dotimes.
(ps-mule-begin-job): Use dolist.
Michael Albinus [Tue, 24 Jul 2007 20:37:43 +0000 (20:37 +0000)]
* processes.texi (Synchronous Processes): Add
`process-file-shell-command',
(Asynchronous Processes): Mention restricted use of
`process-filter' and `process-sentinel' in
`start-file-process'. Add `start-file-process-shell-command'.
Alan Mackenzie [Tue, 24 Jul 2007 08:18:12 +0000 (08:18 +0000)]
(byte-compile-from-buffer): initialise byte-compile-unresolved-functions
before rather than after a compilation.
(byte-compile-unresolved-functions): Amplify doc string.
Juri Linkov [Mon, 23 Jul 2007 20:29:55 +0000 (20:29 +0000)]
(goto-history-element): New function created from
next-history-element.
(next-history-element): Most code moved to goto-history-element.
Call goto-history-element with (- minibuffer-history-position n).
(previous-history-element): Call goto-history-element with (+
minibuffer-history-position n).
(minibuffer-setup-hook): Add minibuffer-history-isearch-setup.
(minibuffer-history-isearch-message-overlay): New buffer-local variable.
(minibuffer-history-isearch-setup, minibuffer-history-isearch-end)
(minibuffer-history-isearch-search, minibuffer-history-isearch-message)
(minibuffer-history-isearch-wrap, minibuffer-history-isearch-push-state)
(minibuffer-history-isearch-pop-state): New functions.
Dan Nicolaescu [Mon, 23 Jul 2007 16:01:25 +0000 (16:01 +0000)]
(vc-git-checkin): Delete unused parameter and the code
handling it. Use vc-git-command.
(vc-git-find-version, vc-git-diff-tree): New functions.
(vc-git-revert): Use vc-git-command.
(vc-git--run-command): Delete.
Stefan Monnier [Mon, 23 Jul 2007 13:07:29 +0000 (13:07 +0000)]
(sh-font-lock-backslash-quote, sh-font-lock-flush-syntax-ppss-cache): New funs.
(sh-font-lock-syntactic-keywords): Use them to distinguish the
different possible cases for \'.
(sh-font-lock-paren): Mark the relevant text with font-lock-multiline.
Stefan Monnier [Mon, 23 Jul 2007 05:38:44 +0000 (05:38 +0000)]
(vc-find-root): Walk up the tree to find an existing
`file' from which to start the search and fix case where `file' is the
current directory and the root as well.
Juri Linkov [Sun, 22 Jul 2007 22:35:10 +0000 (22:35 +0000)]
(isearch-edit-string): Save old point and
isearch-other-end to old-point and old-other-end before reading
the search string from minibuffer. After exiting minibuffer set
point to old-other-end if point and the search direction is the
same as before reading the search string.
(isearch-del-char): Don't set isearch-yank-flag to t. Put point
to isearch-other-end. Instead of isearch-search-and-update call
three functions isearch-search, isearch-push-state and isearch-update.
Juri Linkov [Sun, 22 Jul 2007 22:33:48 +0000 (22:33 +0000)]
(isearch-edit-string): Save old point and
isearch-other-end to old-point and old-other-end before reading
the search string from minibuffer. After exiting minibuffer set
point to old-other-end if point and the search direction is the
same as before reading the search string.
(isearch-del-char): Don't set isearch-yank-flag to t. Put point
to isearch-other-end. Instead of isearch-search-and-update call
three functions isearch-search, isearch-push-state and isearch-update.
Stefan Monnier [Sun, 22 Jul 2007 22:02:49 +0000 (22:02 +0000)]
(diff-refine-ignore-spaces-hunk): Rename from
diff-refine-hunk. Adjust users.
(diff-unified-hunk-p, diff-splittable-p): New functions.
(diff-mode-menu): Use it to disable Split when it doesn't work.
Stefan Monnier [Sun, 22 Jul 2007 21:26:34 +0000 (21:26 +0000)]
(diff-beginning-of-file-and-junk): New function.
(diff-file-kill): Use it.
(diff-beginning-of-hunk): Add arg `try-harder' using it.
(diff-restrict-view, diff-find-source-location, diff-refine-hunk):
Use it so they find the hunk even when we're in the file header.
Dan Nicolaescu [Sun, 22 Jul 2007 21:16:34 +0000 (21:16 +0000)]
(vc-git-revision-granularity,vc-git-root),
(vc-git-command,vc-git-dir-state,vc-git-dired-state-info),
(vc-git-create-repo): New functions.
(vc-git-registered): New autoloaded function definition.
(vc-git-registered): Use vc-git-root.
(vc-git-responsible-p): New defalias.
(vc-git-annotate-extract-revision-at-line): Uncomment.
(vc-git-print-log): Add the file name to the log.
(vc-git-log-view-mode): New derived mode.
(vc-git-diff,vc-git-annotate-command): Use vc-git-command.
Martin Rudalics [Sun, 22 Jul 2007 08:32:16 +0000 (08:32 +0000)]
(change-log-fill-parenthesized-list): New function.
(change-log-indent): Call change-log-fill-parenthesized-list.
(change-log-fill-paragraph): Bind fill-indent-according-to-mode to
t. Have lines with leading asterisk start a paragraph.