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.
Glenn Morris [Mon, 17 Mar 2008 02:33:49 +0000 (02:33 +0000)]
Re-order some definitions before their use.
(nongregorian-diary-listing-hook, nongregorian-diary-marking-hook)
(diary-list-entries): Doc fixes.
(simple-diary-display, fancy-diary-display): Use
calendar-in-read-only-buffer to replace previous code and disable undo.
(make-fancy-diary-display): Remove function.
Glenn Morris [Mon, 17 Mar 2008 02:30:06 +0000 (02:30 +0000)]
(calendar-today-marker, initial-calendar-window-hook)
(today-visible-calendar-hook, today-invisible-calendar-hook)
(diary-file, calendar-basic-setup, calendar-star-date)
(calendar-mark-today): Doc fixes.
(today-visible-calendar-hook): Add options.
(calendar-in-read-only-buffer): New macro.
(calendar-basic-setup): Adapt for change in calendar-read-date.
Place holiday let inside if.
(calendar-day-name-array, calendar-month-name-array): Make defcustoms.
(calendar-read-date): Set day to 1 rather than nil in the NODAY case.
(calendar-print-other-dates): Use one let rather than many.
Use calendar-in-read-only-buffer to replace previous code and disable undo.
Juri Linkov [Sun, 16 Mar 2008 17:44:20 +0000 (17:44 +0000)]
(kill-this-buffer): Use menu-bar-non-minibuffer-window-p
to check if the current buffer is the minibuffer, and in this case
call abort-recursive-edit to kill the minibuffer. Doc fix.
(kill-this-buffer-enabled-p): Allow this function to return non-nil
when the current buffer is the minibuffer.
Juri Linkov [Sun, 16 Mar 2008 17:44:11 +0000 (17:44 +0000)]
(isearch-edit-string): Use search-ring-yank-pointer
and regexp-search-ring-yank-pointer for the HISTPOS argument of
read-from-minibuffer to provide the correct initial minibuffer
history position in isearch-edit-string when it is called from
isearch-ring-adjust.
Tassilo Horn [Sun, 16 Mar 2008 09:24:29 +0000 (09:24 +0000)]
(doc-view-doc->txt, doc-view-convert-current-doc):
Use non-nil PARENTS attribute of make-directory instead of
explicitly checking existence the current cache directory.
Glenn Morris [Sun, 16 Mar 2008 01:27:15 +0000 (01:27 +0000)]
(diary-remind-message, mark-sexp-diary-entries, list-sexp-diary-entries)
(diary-font-lock-sexps): Use format rather than concat.
(diary): Remove un-needed let.
(view-other-diary-entries): Rename argument.
(diary-list-entries-2): New function.
(diary-list-entries-1, diary-list-entries): Use diary-list-entries-2.
(print-diary-entries): Use unless.
(diary-mark-entries-1): Change argument order, make all but
markfunc optional. Handle the standard (Gregorian) case. Use
match-string-no-properties. Handle marks.
(mark-diary-entries): Use diary-mark-entries-1.
(calendar-mark-complex, calendar-mark-1): New functions.
(diary-font-lock-keywords-1): New macro.
(diary-font-lock-keywords): Use diary-font-lock-keywords-1.
Glenn Morris [Sun, 16 Mar 2008 01:25:11 +0000 (01:25 +0000)]
(calendar-mark-complex): Autoload it.
(mark-hebrew-calendar-date-pattern): Add optional argument `color'.
Use calendar-mark-complex.
(calendar-absolute-from-hebrew, hebrew-calendar-yahrzeit)
(insert-hebrew-diary-entry, insert-monthly-hebrew-diary-entry)
(insert-yearly-hebrew-diary-entry): Use let rather than let*.
(calendar-hebrew-prompt-for-date): New function.
(calendar-goto-hebrew-date): Use calendar-hebrew-prompt-for-date.
(holiday-tisha-b-av-etc): Use unless, let.
Kenichi Handa [Sun, 16 Mar 2008 01:24:55 +0000 (01:24 +0000)]
(CHAR_STRING_ADVANCE_NO_UNIFY)
(STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
(coding_alloc_by_making_gap): Fix the way to preserve data in the
gap.
(alloc_destination): Fix the 2nd arg to
coding_alloc_by_making_gap.
(encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
CHAR_STRING_ADVANCE.
(produce_chars): Fix for the case that the source and the
destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
instead of CHAR_STRING_ADVANCE.
(consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
STRING_CHAR_ADVANCE.
Glenn Morris [Sun, 16 Mar 2008 01:23:55 +0000 (01:23 +0000)]
(calendar-mark-1): Autoload it.
(calendar-bahai-mark-date-pattern): Add optional argument `color'.
Use calendar-mark-1.
(calendar-bahai-date-string): Use a single let.
(diary-bahai-insert-entry, diary-bahai-insert-monthly-entry)
(diary-bahai-insert-yearly-entry): Use let rather than let*.
Move obsolete aliases after the functions that replaced them.
Glenn Morris [Sun, 16 Mar 2008 01:21:57 +0000 (01:21 +0000)]
Ulf Jasper <ulf.jasper at web.de>
(icalendar-version): Increase to 0.18.
(icalendar-export-hidden-diary-entries): New variable.
(icalendar-export-region): Use icalendar-export-hidden-diary-entries.
In case of error, insert full error-val.
(icalendar-first-weekday-of-year): Remove `offset' argument. Doc fix.
Use calendar-day-of-week. Return the day number.
(icalendar--convert-weekly-to-ical): Use funcall rather than apply.
Glenn Morris [Sun, 16 Mar 2008 01:21:25 +0000 (01:21 +0000)]
Craig Markwardt <Craig.Markwardt at nasa.gov>
(icalendar-recurring-start-year): New variable.
(icalendar--diarytime-to-isotime): Fix treatment of 12:00pm - 12:59pm.
(icalendar-export-region): Ignore hidden diary entries.
(icalendar--convert-ordinary-to-ical): Fix case where event
spans across midnight boundary.
(icalendar-first-weekday-of-year): New function.
(icalendar--convert-weekly-to-ical): Allow user-selectable start
year for recurring events (Mozilla calendars do not propagate
recurring events forever, so year 2000 start date was not working).
(icalendar--convert-yearly-to-ical): Remove extra spaces in
formatting of BYMONTH and BYMONTHDAY (not allowed by ical spec).