1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-11 00:30:17 -08:00
Commit graph

1143 commits

Author SHA1 Message Date
Michael Albinus
d4b067837e * net/dbus.el (dbus-introspect, dbus-get-property)
(dbus-set-property, dbus-get-all-properties): Use
`dbus-call-method' when noninteractive.  (Bug#5645)
2010-02-28 11:27:39 +01:00
Michael Albinus
459a5f4b57 * net/tramp.el (tramp-do-copy-or-rename-file-out-of-band): Protect
setting the modes by `ignore-errors'.  It might fail, for example
if the file is not owned by the user but the group.
(tramp-handle-write-region): Ensure, that `tmpfile' is always readable.
2010-02-22 14:48:52 +01:00
Michael Albinus
73a37a6958 (tramp-handle-directory-files): When FULL, do not expand "." and "..".
Reported by Thierry Volpiatto <thierry.volpiatto@gmail.com>.
2010-02-18 11:08:48 +01:00
Michael Albinus
6e4f5731f6 (tramp-handle-insert-file-contents): Set always the permissions of the
temporary file to "0600". In case the remote
file has no read permissions for the owner, there might be
problems otherwise.  Reported by Ole Laursen <olau@iola.dk>.
2010-02-18 11:03:12 +01:00
Michael Albinus
aac0b0f2be * net/tramp.el (tramp-do-copy-or-rename-file-out-of-band): Fix
errors in copying directories.
(tramp-handle-add-name-to-file, tramp-handle-copy-directory)
(tramp-do-copy-or-rename-file, tramp-handle-delete-directory)
(tramp-handle-delete-file)
(tramp-handle-dired-recursive-delete-directory)
(tramp-handle-write-region): Flush also the cache for the upper
directory.
2010-02-16 17:03:29 +01:00
Michael Albinus
7540f02995 * net/tramp.el (tramp-process-actions, tramp-read-passwd):
* net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection): Use VEC
instead of PROC for caching "first-password-request".  Otherwise,
new processes would not profit from passwords already entered.

* net/tramp-cache.el (tramp-dump-connection-properties): Don't
save "first-password-request" property.
2010-02-15 16:04:53 +01:00
Michael Albinus
ecbaeb7bf5 * files.el (insert-directory): When WILDCARD-REGEXP and
FULL-DIRECTORY-P are nil, insert the file entry instead of the
whole directory.  (Bug#5551)

* net/ange-ftp.el (ange-ftp-insert-directory): Insert "  " for
dired's alignment sanity.  (Bug#5516)
2010-02-14 10:23:52 +01:00
Michael Albinus
d9320986e5 * net/ange-ftp.el (ange-ftp-insert-directory):
* net/tramp-imap.el (tramp-imap-handle-insert-directory):
* net/tramp-smb.el (tramp-smb-handle-insert-directory):
Handle also directories.  (Bug#5478)
2010-02-05 12:15:28 +01:00
Michael Albinus
d5b3979c8a * dired.el (dired-revert): If DIRED-DIRECTORY is a cons cell, call
`dired-uncache' for every elemnt which is an absolute file name.

* net/tramp.el (tramp-handle-dired-uncache): When DIR is not a
directory, handle its directory component.
(tramp-handle-file-remote-p): Let-bind `tramp-verbose' to 3; this
function is called permanently and creates noise, otherwise.

* net/tramp-imap.el (tramp-imap-handle-insert-directory):
* net/tramp-smb.el (tramp-smb-handle-insert-directory):
Handle the case, FILENAME is not in `default-directory'.  (Bug#5478)
2010-02-04 17:25:57 +01:00
Michael Albinus
8214b6e4e7 * net/ange-ftp.el (ange-ftp-insert-directory): Parse directory
also in case of (and (not full) (not wildcard)). This is needed,
when dired is called with a list of files, which are not in
`default-directory'.  (Bug#5478)
2010-02-03 07:16:34 +01:00
Michael Albinus
c35fcd5222 * net/ange-ftp.el (ange-ftp-skip-msgs): Ignore all ""^500 .*AUTH"
messages.
2010-02-02 12:19:36 +01:00
Michael Albinus
e5c70c4117 * net/tramp.el (tramp-handle-insert-directory): Handle also
symlinks, when FILENAME is not in `default-directory'.
2010-01-29 17:23:25 +01:00
Stefan Monnier
15ad855107 Fix up spurious execute-bit on net/tramp.el 2010-01-28 16:55:43 -05:00
Michael Albinus
0c0b61f1ea * net/ange-ftp.el (ange-ftp-insert-directory): Handle the case,
FILENAME is not in `default-directory'.  (Bug#5478)

* net/tramp.el (tramp-handle-insert-directory): Simplify handling
of SWITCHES.  Handle the case, FILENAME is not in
`default-directory'.  (Bug#5478)
(tramp-register-file-name-handlers): Add safe-magic property.
2010-01-28 22:13:01 +01:00
Michael Albinus
7e5686f0e5 Fix some busybox annoyances.
* net/tramp.el (tramp-wrong-passwd-regexp): Add "Timeout, server
not responding." string.
(tramp-open-connection-setup-interactive-shell): Dump stty
settings.  Enable "neveropen" arg for all `tramp-send-command'
calls.  Handle "=" in variable values properly.
(tramp-find-inline-encoding): Raise an error, when no encoding is
found.
(tramp-wait-for-output): Check, whether PROC buffer is available.
Remove spurious " ^H" sequences, sent by busybox.
(tramp-get-ls-command): Suppress coloring, if possible.
2010-01-28 07:06:41 +01:00
Michael Albinus
0536254eb9 * net/tramp-smb.el (tramp-smb-conf): New defcustom.
(tramp-smb-maybe-open-connection): Use it.
2010-01-23 12:02:28 +01:00
Michael Albinus
411d06c27c * net/tramp-imap.el (top): Autoload needed packages. 2010-01-22 22:19:50 +01:00
Juanma Barranquero
db9e401b3b Fix typos in docstrings, error messages, etc. 2010-01-18 05:39:40 +01:00
Chong Yidong
6554a5df3a * net/mairix.el (mairix-widget-send-query): Send -1 instead of nil
to mairix-search to suppress threading (Bug#5342).
2010-01-15 11:55:43 -05:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Chong Yidong
da76998b68 * net/browse-url.el (browse-url-encode-url): Don't escape commas.
They are valid characters in URL paths (rfc3986), and at least
Firefox does not understand the encoded version (Bug#3166).
2010-01-02 15:14:54 -05:00
Chong Yidong
f2ec0e5e49 * lisp/net/rcirc.el: Add follow-link binding (Bug#4738). 2010-01-02 11:13:22 -05:00
Juanma Barranquero
0472835ff2 lisp/*: Fix typos in docstrings and messages. 2010-01-02 02:05:44 +01:00
Michael Albinus
7f4d4a978d * net/tramp.el (tramp-handle-insert-directory): Quote "'" in the
switches.  Check also for //SUBDIRED// line.
2009-12-26 20:04:43 +00:00
Michael Albinus
1f3611c61a * files.el (file-expand-wildcards): In case of remote files, check
only local file name part for wildcards.  Provide feature 'files
and subfeature 'remote-wildcards.  (Bug#5198)

* net/tramp.el (tramp-handle-file-remote-p): Expand file name only
if there is already an established connection.
(tramp-advice-file-expand-wildcards): Remove it.

* net/tramp-compat.el (top): Autoload `tramp-handle-file-remote-p'.
(tramp-advice-file-expand-wildcards): Moved from tramp.el.
Activate advice for older GNU Emacs versions.  (Bug#5237)
2009-12-17 13:18:03 +00:00
Michael Albinus
68712eb605 * net/tramp.el (tramp-echo-mark-marker-length): New defconst.
(tramp-echo-mark, tramp-echoed-echo-mark-regexp): Use it.
(tramp-check-for-regexp): Check also, when an echoing shell stops
to echo sent commands.
2009-12-15 21:11:39 +00:00
Michael Albinus
31bb373f92 * net/dbus.el (dbus-property-handler): Filter lambda forms out
when responding to "GetAll" properties.
2009-12-12 19:18:33 +00:00
Michael Albinus
fe5facd3c0 * net/tramp.el (tramp-handle-insert-directory): Suppress error messages. 2009-12-09 10:23:00 +00:00
Michael Albinus
dab816a917 Handle prompt rules of ksh in OpenBSD 4.5. Reported by Raphaël
Berbain <raphael.berbain@gmail.com>.

* net/tramp.el (tramp-end-of-output): Move up.  Use `#' and `$'
characters.
(tramp-initial-end-of-output): New defconst.
(tramp-methods, tramp-find-shell)
(tramp-open-connection-setup-interactive-shell)
(tramp-maybe-open-connection): Use it.
(tramp-shell-prompt-pattern, tramp-wait-for-output): Handle
existence of `#' and `$'.

* net/tramp-fish.el (tramp-fish-maybe-open-connection): Use
`tramp-initial-end-of-output'.
2009-12-07 06:38:06 +00:00
Ulf Jasper
8e39154d85 Fixed Bug#5096. 2009-12-06 19:49:04 +00:00
Ulf Jasper
571855b631 Fixed Bug#5008. 2009-12-06 18:13:19 +00:00
Ulf Jasper
0c74a3010d Newsticker fixes/changes. 2009-12-04 19:27:42 +00:00
Michael Albinus
a09dc9bf9c Cleanup.
* eshell/em-unix.el (top): Require 'esh-opt and 'pcomplete.
(eshell/su, eshell/sudo): Require 'tramp.  Fix problems reading
arguments.  Expand `default-directory'.

* net/tramp.el (tramp-handle-file-remote-p): Expand FILENAME for
the benefit of returning an expanded localname.
(tramp-tramp-file-p): Handle the case NAME is not a string.
2009-12-03 11:34:11 +00:00
Michael Albinus
e2a421af39 * net/tramp.el (tramp-maybe-open-connection): Open the remote
shell with "exec" when possible.  This prevents trailing prompts
in `start-file-process'.
2009-11-29 20:05:23 +00:00
Michael Albinus
f06dbf7ea9 * net/ange-ftp.el (ange-ftp-parse-filename): Use `save-match-data'.
(ange-ftp-directory-files-and-attributes)
(ange-ftp-real-directory-files-and-attributes): New defuns.
2009-11-29 20:04:08 +00:00
Daiki Ueno
6c6f788d8a (socks-send-command): Convert binary request to
unibyte before sending.  This fixes mishandling of some port
numbers such as 129.
2009-11-27 07:35:14 +00:00
Michael Albinus
605a20a988 Improve handling of processes on remote hosts.
* eshell/esh-util.el (eshell-path-env): New defvar.
(eshell-parse-colon-path): New defun.
(eshell-file-attributes): Use `eshell-parse-colon-path'.

* eshell/esh-ext.el (eshell-search-path): Use
`eshell-parse-colon-path'.
(eshell-remote-command): Remove argument HANDLER.
(eshell-external-command): Check for FTP remote connection.

* eshell/esh-proc.el (eshell-gather-process-output): Use
`file-truename', in order to start also symlinked files. Apply
`start-file-process' instead of `start-process'. Shorten `command'
to the local file name part.

* eshell/em-cmpl.el (eshell-complete-commands-list): Use
`eshell-parse-colon-path'.

* eshell/em-unix.el (eshell/du): Check for FTP remote connection.

* net/tramp.el (tramp-eshell-directory-change): New defun.  Add it
to `eshell-directory-change-hook'.
2009-11-24 10:25:54 +00:00
Chong Yidong
5241b291dd * net/browse-url.el (browse-url-filename-alist): On Windows, add
two slashes to the "file:" prefix.
(browse-url-file-url): De-munge Cygwin filenames before passing
them to Windows browser.
(browse-url-default-windows-browser): Use call-process.
2009-11-23 20:58:55 +00:00
Michael Albinus
b593f1055a * net/tramp.el (tramp-shell-prompt-pattern): Use \r for carriage
return.
(tramp-handle-make-symbolic-link)
(tramp-handle-dired-compress-file, tramp-handle-expand-file-name):
Quote file names.
(tramp-send-command-and-check): New argument DONT-SUPPRESS-ERR.
(tramp-handle-process-file): Use it.
2009-11-23 15:59:07 +00:00
Chong Yidong
e572025ff1 * net/browse-url.el (browse-url-default-windows-browser): Use
cygstart for cygwin.
2009-11-20 21:49:46 +00:00
Michael Albinus
4265deabcb * net/tramp.el (tramp-do-copy-or-rename-file-out-of-band): Set
variables for computing the prompt for reading password.
2009-11-19 09:25:40 +00:00
Glenn Morris
27cacd2d42 (newsticker-treeview-treewindow-width)
(newsticker-treeview-listwindow-height): Fix custom type.
2009-11-19 07:13:29 +00:00
Michael Albinus
303ffde825 * net/tramp-gvfs.el (tramp-gvfs-handle-write-region): Set file
modification time.
2009-11-17 14:58:08 +00:00
Michael Albinus
e268e987dc * net/tramp.el (tramp-advice-file-expand-wildcards): Simplify.
Don't set `ad-return-value' if `ad-do-it' doesn't.
2009-11-17 10:38:44 +00:00
Glenn Morris
2d84f8043a (newsticker--treeview-list-update-faces):
Preserve point in the list buffer.  (Bug#4939)
Use point-at-eol.
(newsticker--treeview-list-update-highlight)
(newsticker--treeview-tree-update-highlight): Use point-at-bol/eol.
2009-11-17 04:41:15 +00:00
Michael Albinus
d3e971853d * net/tramp-gvfs.el (tramp-gvfs-dbus-event-error): Raise only an
error when `tramp-gvfs-dbus-event-vector' is set.
(tramp-gvfs-maybe-open-connection): Loop over `read-event'.
2009-11-16 20:10:39 +00:00
Michael Albinus
c0a3970225 * net/dbus.el (dbus-unregister-service): New defun.
(dbus-register-property): Register the handlers for
"org.freedesktop.DBus.Properties" for SERVICE.
(dbus-property-handler): Fix docstring.
2009-11-16 14:25:43 +00:00
Michael Albinus
b172ed20e0 * net/dbus.el (dbus-registered-objects-table): Renamed from
`dbus-registered-functions-table', because it contains also
properties.
(dbus-unregister-object): Unregister also properties.
(dbus-get-property, dbus-set-property, dbus-get-all-properties):
Use a timeout of 500 msec, in order to not block.
(dbus-register-property, dbus-property-handler): New defuns.
2009-11-13 16:05:24 +00:00
Michael Albinus
d7ec1df722 * net/tramp.el (tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde): Unload advices via
`tramp-unload'.
(tramp-advice-make-auto-save-file-name)
(tramp-advice-file-expand-wildcards): Apply also `ad-activate'
after removing the advice.
2009-11-11 14:40:18 +00:00
Dan Nicolaescu
04991a1c0d * net/eudc.el (eudc-tools-menu):
* international/mule-cmds.el (set-coding-system-map)
(mule-menu-keymap):
* emacs-lisp/lisp-mode.el (emacs-lisp-mode-map):
* vc-hooks.el (vc-menu-map): Use menu-bar-separator.
2009-11-11 06:06:43 +00:00