Commit graph

924 commits

Author SHA1 Message Date
Michael Albinus
e5aa47f993 * net/tramp-compat.el (top): Autoload used functions from
tramp.el.
(file-remote-p, process-file, start-file-process, set-file-times)
(tramp-compat-file-attributes): Compatibility functions shall not
call directly `tramp-handle-*', because this would bypass the
locking mechanism.
(tramp-compat-number-sequence): New defun.
2009-09-02 11:15:56 +00:00
Michael Albinus
7f49fe463d * net/tramp.el (tramp-handle-file-attributes-with-ls)
(tramp-do-file-attributes-with-perl)
(tramp-do-file-attributes-with-stat): Rename from
`tramp-handle-file-attributes-with-*'.
(tramp-handle-file-attributes): Use them.
(tramp-do-directory-files-and-attributes-with-perl)
(tramp-do-directory-files-and-attributes-with-stat): Rename from
`tramp-handle-directory-files-and-attributes-with-*'.
(tramp-handle-directory-files-and-attributes): Use them.
(tramp-method-out-of-band-p): Additional parameter SIZE.
(tramp-do-copy-or-rename-file, tramp-handle-file-local-copy)
(tramp-handle-write-region): Use it.
(tramp-handle-insert-directory): Use "?\ " for compatibility
reasons.
(tramp-handle-vc-registered): Check, whether the first run did
return files to be tested.
(tramp-advice-make-auto-save-file-name): Do not call directly
`tramp-handle-make-auto-save-file-name', because this would bypass
the locking mechanism.
2009-09-02 11:13:42 +00:00
Glenn Morris
ed4ba8dfc4 (time-add): Suppress warnings from compat function. 2009-09-02 03:22:00 +00:00
Glenn Morris
a68366f4da (rcirc-keepalive, rcirc-handler-ctcp-KEEPALIVE):
Use float-time rather than time-to-seconds.
2009-09-02 03:20:48 +00:00
Glenn Morris
95e55d202d (browse-url-file-url): Use default-value rather than
default-enable-multibyte-characters.
2009-09-01 03:17:03 +00:00
Glenn Morris
b0f3d955cb (eudc-bob-generic-menu, eudc-bob-image-menu)
(eudc-bob-sound-menu): Use defvar rather than defconst, since
easy-menu-define wants to modify these.
2009-09-01 03:16:07 +00:00
Glenn Morris
a2e01f7e5e (nslookup): Use make-comint rather than comint-run. 2009-09-01 03:14:20 +00:00
Stefan Monnier
80629cfce1 (ldap-search-internal): Use with-current-buffer and push. 2009-08-30 14:24:09 +00:00
Stefan Monnier
206d03872e (imap-send-command): Simplify.
(imap-wait-for-tag): point-max - buffer-size.
2009-08-30 14:23:21 +00:00
Stefan Monnier
844f778432 (internal-ange-ftp-mode): Use define-derived-mode. 2009-08-30 14:21:34 +00:00
Michael Albinus
aa485f7ca5 * net/tramp.el (all): Replace "'(lambda" by "(lambda".
(tramp-handle-file-local-copy): Unset `file-name-handler-alist'
when writing the temp file.  Otherwise, epa-file gets confused.
(tramp-register-file-name-handlers): Make it a defun.  Move also
`epa-file-handler' to the front of `file-name-handler-alist'.

* net/tramp.el (tramp-shell-prompt-pattern): Allow a prompt to
start right after a ^M.
(tramp-root-regexp, tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate)
(tramp-completion-file-name-regexp-url): Use \\` and \\'.
(tramp-handle-file-attributes, tramp-set-file-uid-gid): Don't
modify last-coding-system-used by accident.
(tramp-completion-file-name-handler): Apply the checks here,
instead during registration.
(tramp-register-file-name-handlers) Renamed from
`tramp-register-file-name-handler'.  Register both
`tramp-file-name-handler' and `tramp-completion-file-name-handler'.
(tramp-register-completion-file-name-handler): Removed.
2009-08-28 12:11:58 +00:00
Michael Albinus
d5b5c94a11 * net/tramp-cache.el (top): Autoload `tramp-time-less-p'.
(tramp-cache-inhibit-cache): Extend doc string.  It allows also
timestamps.
(tramp-get-file-property): Check for timestamps in
`tramp-cache-inhibit-cache'.
(tramp-set-file-property): Write timestamp.
2009-08-27 13:50:59 +00:00
Michael Albinus
946a5aeb7d * net/tramp.el (tramp-methods): New method "rsyncc".
(top): Add completion function for "rsyncc".
(tramp-message-show-message): New defvar.
(tramp-message, tramp-error): Use it.
(tramp-do-copy-or-rename-file-directly): Extend check for direct
remote copying.
(tramp-do-copy-or-rename-file-out-of-band): Handle new
`tramp-methods' entry `copy-env' of "rsyncc".
((tramp-handle-process-file): Do not flush all
caches when `process-file-side-effects' is set.
tramp-vc-registered-read-file-names): New defconst.
(tramp-vc-registered-file-names): New defvar.
(tramp-handle-vc-registered): Implement optimization strategy.
(tramp-run-real-handler): Add `tramp-vc-file-name-handler'.
(tramp-vc-file-name-handler): New defun.
(tramp-get-ls-command, tramp-get-test-command)
(tramp-get-file-exists-command, tramp-get-remote-ln)
(tramp-get-remote-perl, tramp-get-remote-stat)
(tramp-get-remote-id): Remove
superfluous `with-current-buffer'.
2009-08-27 13:47:55 +00:00
Michael Albinus
0b35b48e66 * net/tramp-gvfs.el (top): Use timeout of 100 msec pinging GVFS
daemon.  Replace ping by checking for running service for bluez
and zeroconf.  (Bug#4239)
2009-08-25 10:26:16 +00:00
Michael Albinus
93fb0645d6 * net/dbus.el (dbus-ping): Add optional parameter TIMEOUT. 2009-08-25 10:13:54 +00:00
Glenn Morris
d54cc599f5 Kevin Ryde <user42 at zip.com.au>
(dig): Add autoload cookie.
2009-08-25 03:21:14 +00:00
Glenn Morris
a337468045 Remove code for defunct system-types emx, macos, mswindows,
unisoft-unix, vax-vms, win32, w32.
2009-08-22 21:59:40 +00:00
Stefan Monnier
5443c9b759 * net/newst-treeview.el (newsticker-groups-filename):
* net/newst-backend.el (newsticker-cache-filename):
* speedbar.el (speedbar-update-speed, speedbar-navigating-speed)
(speedbar-ignored-path-expressions, speedbar-ignored-path-regexp)
(speedbar-add-ignored-path-regexp, speedbar-line-path)
(speedbar-buffers-line-path, speedbar-path-line)
(speedbar-buffers-line-path):
* epg.el (epg-passphrase-callback-function, epg-start-sign-keys,epg-sign-keys):
* epa.el (epa-display-verify-result):
* progmodes/pascal.el (pascal-outline): Add version of obsolescence.
2009-08-21 14:59:49 +00:00
Michael Albinus
9e84652313 * net/dbus.el (top): Initialize only when `dbusbind' is loaded. 2009-08-21 06:45:22 +00:00
Michael Albinus
6fd2d19a36 * net/dbus.el (top): Don't check for (getenv
"DBUS_SESSION_BUS_ADDRESS").  It's done in dbusbind.c now.
2009-08-20 15:24:58 +00:00
Michael Albinus
720c7cd6a9 * net/dbus.el (top): Apply `dbus-init-bus' for the :session bus
only if it is running already.
2009-08-19 07:15:28 +00:00
Michael Albinus
ba6f7d8640 * net/dbus.el (dbus-init-bus): Declare. Apply it for the :system
and :session buses.
2009-08-18 15:12:14 +00:00
Michael Albinus
56c195afd0 * net/tramp.el (tramp-register-completion-file-name-handler):
Check also for (member 'partial-completion completion-styles).
2009-08-17 19:12:10 +00:00
Michael Albinus
8e754ea218 * net/tramp.el (tramp-get-ls-command-with-dired): New defun.
(tramp-handle-insert-directory): Handle "--dired".  (Bug#4075)
2009-08-09 14:29:11 +00:00
Chong Yidong
ce299d55e7 * net/net-utils.el (net-utils-font-lock-keywords): New var.
(nslookup-font-lock-keywords): Make it a variable.
(net-utils-mode): New mode for viewing diagnostic network output.
(net-utils-remove-ctrl-m-filter): Set inhibit-read-only.
(net-utils-run-simple): New function.
(ifconfig, iwconfig, netstat, arp, route): Use it.
2009-08-08 18:26:36 +00:00
Michael Albinus
2ac338048e * net/tramp.el (top): Make check for tramp-gvfs loading more
robust.
(tramp-handle-insert-file-contents): `unwind-protect' must be
inside `with-parsed-tramp-file-name'.
2009-08-04 03:32:33 +00:00
Michael Albinus
33e8d4fa2d * net/tramp-gvfs.el (top): Remove superfluous message when loading
fails.
2009-08-04 03:29:54 +00:00
Michael Albinus
adcbca532b * net/tramp.el (tramp-rfn-eshadow-update-overlay-regexp) New
defconst.
(tramp-rfn-eshadow-update-overlay): Use it.
2009-08-03 08:22:04 +00:00
Chong Yidong
30924b0b32 * net/newst-backend.el (newsticker--raw-url-list-defaults): Update
freshmeat link.  Delete newsforge.com as it seems gone.
2009-08-02 23:51:54 +00:00
Michael Albinus
736ac90f59 * net/tramp.el (tramp-debug-message): Print also microseconds.
(tramp-handle-insert-file-contents): Optimize, when BEG
or END is non-nil.
(tramp-handle-vc-registered): Use `tramp-cache-inhibit-cache'.
(tramp-get-debug-buffer): Change `outline-regexp' according to new
format.
2009-08-02 17:16:39 +00:00
Michael Albinus
afae3a3777 * net/tramp-cache.el (tramp-cache-inhibit-cache ): New defvar.
(tramp-get-file-property): Use it.
2009-08-02 17:15:42 +00:00
Michael Albinus
905fb90eb1 * net/tramp.el (tramp-do-copy-or-rename-file): Add messages.
Simplify check for out-of-band methods.
(tramp-do-copy-or-rename-file-out-of-band): Allow both files to be
remote.  Remove messages which are in `tramp-do-copy-or-rename-file'.
2009-07-28 20:36:57 +00:00
Michael Albinus
3dec5c364b * net/dbus.el (dbus-call-method-non-blocking): Handle the case the
function returns nil.
(dbus-handle-event): Handle special return value :ignore.
Reported by Jan Moringen <jan.moringen@uni-bielefeld.de>.
2009-07-27 10:02:50 +00:00
Michael Albinus
51768bc824 * net/zeroconf.el (zeroconf-init): Check for "GetVersionString"
instead of "IsNSSSupportAvailable".  Avahi ought to work also when
"IsNSSSupportAvailable" method is not available.  Reported by
Steve Youngs <steve@sxemacs.org>.
2009-07-25 08:31:40 +00:00
Glenn Morris
855b42a23d Kevin Ryde <user42 at zip.com.au>
Hyperlink urls in docstrings with URL `...'.
2009-07-22 03:07:18 +00:00
Michael Albinus
bede3e9f87 * net/tramp.el (tramp-wait-for-output): Handle the case when
commands do not return a newline but a null byte before the shell
prompt.  (Bug#3858)
2009-07-16 10:24:07 +00:00
Chong Yidong
c0db3477b4 * net/rcirc.el (rcirc): Use history variables.
(rcirc-server-name-history, rcirc-nick-name-history)
(rcirc-server-port-history): New variables.
2009-07-15 15:07:39 +00:00
Michael Albinus
93c3eb7c61 * net/tramp.el (tramp-set-file-uid-gid): Handle the case the
remote user is root, on the local host.
(tramp-local-host-p): Either the local user or the remote user
must be root.
2009-07-08 12:43:42 +00:00
Michael Albinus
3e2fa35354 * net/tramp.el (tramp-handle-write-region): Flush file properties
in case of short track.
2009-07-06 13:37:29 +00:00
Michael Albinus
f0dbdc25ca * net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout): Add version flag.
(tramp-gvfs-handler-mounted-unmounted)
(tramp-gvfs-connection-mounted-p): Polish handling of
incompatibilities between GVFS 0.2 and 1.0.
2009-07-03 14:54:14 +00:00
Juri Linkov
baf1a55e82 (tramp-gvfs-connection-mounted-p): Use elt' instead of mount-info'. 2009-07-02 22:49:30 +00:00
Michael Albinus
d04bc496de * net/tramp-gvfs.el (tramp-gvfs-handler-mounted-unmounted)
(tramp-gvfs-connection-mounted-p): Handle changed mount-info
interface.
2009-07-02 15:27:37 +00:00
Michael Albinus
99278f8a61 * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add
handler for `process-file', `shell-command' and
`start-file-process'.
(tramp-gvfs-handle-shell-command)
(tramp-gvfs-handle-start-file-process)
(tramp-gvfs-handle-process-file): New defuns.
(tramp-synce-list-devices): Simplify check for existence of
property.
2009-07-01 15:21:45 +00:00
Michael Albinus
02cecbfe64 * net/trampver.el: Update release number. 2009-06-30 21:15:19 +00:00
Michael Albinus
d557e7a69b * net/tramp-gvfs.el (top): Add a default for "synce" in
`tramp-default-user-alist'.
(tramp-hal-service, tramp-hal-path-manager)
(tramp-hal-interface-manager, tramp-hal-interface-device): New
defconst.
(tramp-synce-list-devices, tramp-synce-parse-device-names): New
defuns.
2009-06-30 21:13:29 +00:00
Michael Albinus
551b8e0b8c Remove todo items. 2009-06-30 21:10:55 +00:00
Michael Albinus
974647ac91 * net/tramp.el (tramp-default-file-modes) Remove execute permissions. 2009-06-30 15:23:50 +00:00
Michael Albinus
7ae3ea65e3 * net/tramp-gvfs.el (tramp-gvfs-methods): Add "synce" method.
(tramp-gvfs-connection-mounted-p): Handle empty user name for
synce.
(tramp-synce-list-devices, tramp-synce-parse-device-names): New
defuns.
(top): Add completion function for "synce" method.
2009-06-30 14:48:06 +00:00
Michael Albinus
4f4126e6a3 * net/tramp.el (tramp-do-copy-or-rename-file-directly): Handle
also the 'rename case, when setting file modes.  (Bug#3712)
2009-06-30 11:55:41 +00:00
Michael Albinus
1f107aed49 * net/tramp.el (tramp-do-copy-or-rename-file-directly): Set file
modes mandatory.  (Bug#3712)
2009-06-29 20:41:17 +00:00