Michael Albinus [Thu, 24 Jan 2008 21:28:56 +0000 (21:28 +0000)]
* net/tramp.el (tramp-do-copy-or-rename-file): Flush the cache of
the source file in case of `rename'. Reported by Pete Forman
<pete.forman@westerngeco.com>.
Ken Manheimer [Thu, 24 Jan 2008 17:53:29 +0000 (17:53 +0000)]
* allout.el (allout-keybindings-list): Use vectors instead of strings for keys.
(allout-line-boundary-regexp):
(set-allout-regexp):
(allout-prefix-data): Repair handling of formfeeds as header prefix.
(allout-write-file-hook-handler): Repair mangling of error handling.
(allout-region-active-p): Fallback to mark-active.
Ken Manheimer [Thu, 24 Jan 2008 17:45:28 +0000 (17:45 +0000)]
(allout-keybindings-list): In initial setting, express
meta-prefixed allout keys as vectors instead of strings, since the
string form is interpreted in some cases as composed key
modifiers, eg, accented keys.
(set-allout-regexp): Repair the expressions so that the formfeed part is
identified as one of the top-level groups, and is included in all the
forms, not just the -line-boundary-regexp one.
(allout-prefix-data): Incorporate information from the various allout
regexp's formfeed alternative group, when present.
(allout-write-file-hook-handler): Rectify mangling of the error handling.
It was broken in 2007-12-06T19:56:41Z!deego@gnufans.org, where an `error' condition-case handler was
apparently reformatted as if it was a call to the error function. An
apparent repair attempt in version 1.101 situated the original body of the
error handling code as bogus condition-case handlers. I've returned to
just about the working code that was originally there, removing an
unnecessary - but benign - enclosing 'progn'. \(Automated or cursory code
fixes often aren't.)
(allout-region-active-p): Fallback to value of mark-active if neither
use-region-p nor region-active-p are present, for compatability with
current and recent emacs major releases.
Dan Nicolaescu [Thu, 24 Jan 2008 15:14:52 +0000 (15:14 +0000)]
* sieve.el (sieve-make-overlay, sieve-overlay-put, sieve-overlays-at):
* message.el (message-beginning-of-line): Use featurep instead of bound
tests in order to resolve conditionals at compile time.
* textmodes/reftex-toc.el (reftex-toc-next, reftex-toc-previous)
(reftex-toc-restore-region):
* textmodes/reftex-index.el (reftex-index-initialize-phrases-buffer)
(reftex-index-phrases-apply-to-region):
* textmodes/ispell.el (ispell-word):
* progmodes/vhdl-mode.el (vhdl-keep-region-active):
* progmodes/pascal.el (pascal-mark-defun):
* progmodes/f90.el (f90-mark-subprogram, f90-indent-region)
(f90-fill-region):
* emulation/tpu-edt.el (tpu-set-mark):
* emulation/crisp.el (crisp-region-active):
* winner.el (winner-active-region):
* ansi-color.el (ansi-color-set-extent-face): Use featurep instead
of bound tests in order to resolve conditionals at compile time.
(delsel-unload-function): Don't use `remprop'; it is not autoloaded,
and we wouldn't want to load CL just to unload delsel.el anyway.
Suggested by Martin Rudalics <rudalics@gmx.at>.
Thien-Thi Nguyen [Thu, 24 Jan 2008 08:54:00 +0000 (08:54 +0000)]
Handle dead buffers in async filters/sentinels.
(vc-process-filter): Do nothing if buffer not live.
(vc-diff-finish): Rename from vc-diff-sentinel.
No longer take REV1-NAME and REV2-NAME.
Instead, take BUFFER-NAME. Do nothing if buffer not live.
Don't do window resize if no window displays buffer.
(vc-diff-internal): Use vc-diff-finish.
Michael Albinus [Wed, 23 Jan 2008 20:45:03 +0000 (20:45 +0000)]
* net/tramp.el (tramp-remote-process-environment): Set "LC_ALL=C".
(tramp-end-of-output): Add `tramp-rsh-end-of-line' into the
regexp.
(tramp-find-shell, tramp-open-connection-setup-interactive-shell):
Don't send `tramp-rsh-end-of-line' additionally, when setting the
prompt.
(tramp-wait-for-output): Distinguish different prompt formats.
(tramp-get-test-nt-command): Don't check for "\n" in the prompt.
(tramp-local-host-p): Check whether temp directory is writable.
Carsten Dominik [Wed, 23 Jan 2008 10:49:31 +0000 (10:49 +0000)]
* replace.el (occur-mode-find-occurrence-hook): New hook that can
be used to reveal or highlight the location of a match.
(occur-mode-goto-occurrence)
(occur-mode-goto-occurrence-other-window)
(occur-mode-display-occurrence): Run
`occur-mode-find-occurrence-hook'.
Michael Albinus [Mon, 21 Jan 2008 20:11:58 +0000 (20:11 +0000)]
* net/dbus.el (dbus-ignore-errors): New macro.
(dbus-unregister-object): New defun. Moved from dbusbind.c.
(dbus-handle-event, dbus-list-activatable-names, dbus-list-names)
(dbus-list-queued-owners, dbus-get-name-owner, dbus-introspect)
(dbus-get-signatures): Apply `dbus-ignore-errors'.
Michael Albinus [Mon, 21 Jan 2008 20:06:15 +0000 (20:06 +0000)]
* net/dbus.el (dbus-ignore-errors): New macro.
(dbus-unregister-object): New defun. Moved from dbusbind.c.
(dbus-handle-event, dbus-list-activatable-names, dbus-list-names)
(dbus-list-queued-owners, dbus-get-name-owner, dbus-introspect)
(dbus-get-signatures): Apply `dbus-ignore-errors'.
(x_scroll_bar_create): Initialize bar->redraw_needed_p.
(XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
is set even without positional changes.
(x_scroll_bar_clear): Set bar->redraw_needed_p.
Martin Rudalics [Sun, 20 Jan 2008 10:35:27 +0000 (10:35 +0000)]
(repeat-undo-count): New variable.
(repeat): For self-insertions make undo boundary only after 20
repetitions. Inhibit point recording when repeat-repeat-char is
non-nil.
Martin Rudalics [Sat, 19 Jan 2008 16:29:08 +0000 (16:29 +0000)]
(hide-ifdef-shadow): New option.
(hide-ifdef-shadow): New face.
(hide-ifdef-toggle-shadowing): New function to toggle between
shadowing and making code invisible.
(hide-ifdef-mode-submap): Add binding for
hide-ifdef-toggle-shadowing.
(hide-ifdef-mode-menu): Add entry for
hide-ifdef-toggle-shadowing.
(hide-ifdef-region-internal): Give new overlay hide-ifdef
property. Shadow text when hide-ifdef-shadow is non-nil.
(hif-show-ifdef-region): Remove overlays with hide-ifdef
property set.
(hif-hide-line): Use when instead of if.
(hide-ifdef-initially, hide-ifdef-read-only, hide-ifdef-lines):
Remove unneeded * from doc-strings.
Kenichi Handa [Sat, 19 Jan 2008 05:55:50 +0000 (05:55 +0000)]
(detect_coding_iso2022): New arg
latin_extra_code_state. Allow Latin extra codes only
when *latin_extra_code_state is nonzero.
(detect_coding_mask): If there is a NULL byte, detect the encoding
as UTF-16 or binary. If Latin extra codes exist, detect the
encoding as ISO-2022 only when there's no other proper encoding is
found.