Commit graph

578 commits

Author SHA1 Message Date
Katsumi Yamaoka
bd31647430 From_ Johan Bockgrd, <http://article.gmane.org/gmane.emacs.devel/81056>
* net/tramp.el (tramp-rfn-eshadow-update-overlay): Save excursion.
Use `save-restriction' rather than `widen'.
2007-10-18 22:49:05 +00:00
Glenn Morris
8566778a88 (eudc-edit-hotlist): Use mapc rather than mapcar. 2007-10-13 03:03:17 +00:00
Glenn Morris
8c4b8006b0 (eudc-display-records)
(eudc-filter-duplicate-attributes)
(eudc-distribute-field-on-records, eudc-query-form)
(eudc-process-form): Use mapc rather than mapcar.
2007-10-13 03:02:57 +00:00
Glenn Morris
888ca6f573 (eudc-bbdb-filter-non-matching-record)
(eudc-bbdb-query-internal): Use mapc rather than mapcar.
2007-10-13 03:02:35 +00:00
Glenn Morris
fdad1919b9 (eudc-ldap-simple-query-internal): Use mapc rather than mapcar. 2007-10-13 03:02:15 +00:00
Glenn Morris
b86ed609ac (socks-build-auth-list): Use mapc rather than mapcar. 2007-10-13 03:01:49 +00:00
Michael Albinus
311dd93fa2 Sync with Tramp 2.1.11. 2007-10-10 04:55:30 +00:00
Michael Albinus
1834b39f16 * net/tramp.el (tramp-find-foreign-file-name-handler): Check also
host.
(tramp-maybe-send-script): Apply `member' but `memq'.
(tramp-advice-file-expand-wildcards): Simplify implementation.
2007-10-08 20:07:16 +00:00
Michael Albinus
893895d310 * net/tramp.el (tramp-completion-mode): Extend doc-string.
(tramp-completion-mode-p): Revert change from 2007-09-24.
Checking for `return' etc as last character is not sufficient, for
example in dired-mode when entering <g> (revert-buffer) or
<s> (dired-sort).
2007-10-06 15:25:50 +00:00
Michael Albinus
a6e9632782 * net/tramp.el (top): Move loading of tramp-util.el and
tramp-vc.el to tramp-compat.el.
(tramp-make-tramp-temp-file): Complete rewrite.  Create remote
temporary file if possible, in order to avoid a security hole.
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-maybe-open-connection): Call `tramp-make-tramp-temp-file'
with DONT-CREATE, because the connection is not setup yet.
(tramp-handle-process-file): Rewrite temporary file handling.
(tramp-completion-mode): New defvar.
(tramp-completion-mode-p): Use it.

* net/tramp-compat.el (top):  Load tramp-util.el and tramp-vc.el.

* net/tramp-fish.el (tramp-fish-handle-process-file): Rewrite
temporary file handling.
2007-10-06 12:00:42 +00:00
Michael Albinus
258800f85f * net/tramp.el (tramp-make-temp-file): Move to tramp-compat.el.
(tramp-do-copy-or-rename-file-directly): Handle tmpfile only in
the cond clauses where needed.
(tramp-handle-write-region): Rearrange code for proper handling of
tmpfile.

* net/tramp-compat.el (tramp-compat-make-temp-file): New defsubst.

* net/tramp.el:
* net/tramp-fish.el:
* net/tramp-ftp.el:
* net/tramp-smb.el: Rename `tramp-make-temp-file' to
`tramp-compat-make-temp-file'.
2007-10-04 20:09:32 +00:00
Michael Albinus
94be87e8b7 * net/tramp.el (top): Add tramp-compat to `tramp-unload-hook'.
(tramp-file-name-handler-alist): Add
`tramp-handle-insert-file-contents-literally'.  Neded for XEmacs.
(tramp-make-temp-file): Use `make-temp-name'. `make-temp-file',
used before, creates the file already, which is not desired.
(tramp-do-copy-or-rename-file-directly): Simplify handling of
temporary file.
(tramp-handle-insert-file-contents): Assign the result in the
short track case.
(tramp-handle-insert-file-contents-literally): New defun.
(tramp-completion-mode-p): Revert change from 2007-09-24.
Checking for `return' etc as last character is not sufficient, for
example in dired-mode when entering <g> (revert-buffer) or
<s> (dired-sort).

* net/tramp-compat.el (top): Add also compatibility code for loading
appropriate timer package.
(tramp-compat-copy-tree): Check for `subrp' and `symbol-file' in
order to avoid autoloading problems.

* net/tramp-fish.el:
* net/tramp-smb.el: Move further compatibility code to
tramp-compat.el.

* net/tramp-ftp.el (tramp-ftp-file-name-handler): Handle the case
where the second parameter of `copy-file' or `rename-file' is a
remote file but not via ftp.
2007-10-03 10:54:03 +00:00
Miles Bader
cf9e567f96 Add arch tagline 2007-10-01 00:14:23 +00:00
Michael Albinus
9e6ab520d0 * net/tramp-compat.el: New file.
* net/tramp.el:
* net/tramp-fish.el:
* net/tramp-smb.el:
* net/tramp-uu.el:
* net/trampver.el: Move compatibility code to tramp-compat.el.
Apply `mapc' instead of `mapcar' when the code needs side effects
only.  Move utf-8 coding cookie to the second line.
2007-09-30 16:43:07 +00:00
Michael Albinus
9ce8462a49 * net/tramp.el (with-file-property, with-connection-property):
Highlight as keyword.
(tramp-rfn-eshadow-setup-minibuffer)
(tramp-rfn-eshadow-update-overlay, tramp-handle-set-file-times)
(tramp-set-file-uid-gid, tramp-do-copy-or-rename-file-via-buffer)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-handle-shell-command, tramp-get-debug-buffer)
(tramp-send-command-and-read, tramp-equal-remote)
(tramp-get-local-gid): Pacify byte-compiler.
(tramp-handle-file-name-directory): Result shall not be expanded.
(tramp-find-foreign-file-name-handler): Rewrite.
(tramp-dissect-file-name): Add optional parameter NODEFAULT.

* net/tramp-cache.el (tramp-cache-print): Pacify byte-compiler.

* net/tramp-fish.el (tramp-fish-handle-expand-file-name): Apply
`tramp-completion-mode-p'.
(tramp-fish-handle-set-file-times)
(tramp-fish-handle-executable-find)
(tramp-fish-handle-process-file, tramp-fish-get-file-entries)
(tramp-fish-retrieve-data): Pacify byte-compiler.

* net/tramp-gw.el (tramp-gw-basic-authentication): Call
`tramp-read-passwd' with first parameter `nil'.
2007-09-28 16:05:49 +00:00
Michael Albinus
1437876ce3 * net/tramp.el (tramp-maybe-open-connection): Make test for alive
connection more robust.
2007-09-27 04:37:33 +00:00
Juanma Barranquero
d590ea4d87 (ange-ftp-call-chmod, ange-ftp-parse-bs2000-listing):
Use `mapc' rather than `mapcar'.
2007-09-26 00:21:38 +00:00
Michael Albinus
7a3cdcc52a * net/tramp.el (tramp-completion-mode-p): Rename from
`tramp-completion-mode'. Revert logic, check `return', `newline'
and such alike. Packages like Icicles tend to use other completion
characters but `tab' and `space' only.
(top): Require cl.el, when `copy-tree' is not available otherwise.

* net/tramp-vc.el (tramp-vc-user-login-name): Get argument by
`ad-get-arg'.  Use `vc-find-version' instead of `process-file' to check
whether we have a new enough vc that doesn't need the defadvice.
2007-09-24 05:42:34 +00:00
Michael Albinus
6c4e47fa46 * net/tramp.el (tramp-completion-mode-p): Rename from
`tramp-completion-mode'. Revert logic, check `return', `newline'
and such alike. Packages like Icicles tend to use other completion
characters but `tab' and `space' only.
2007-09-24 05:29:29 +00:00
Michael Albinus
d037d50168 * rfn-eshadow.el (rfn-eshadow-setup-minibuffer-hook)
(rfn-eshadow-update-overlay-hook): New defvars.
(rfn-eshadow-setup-minibuffer, rfn-eshadow-update-overlay): Run
the hooks.

* net/tramp.el (tramp-rfn-eshadow-overlay): New defvar.
(tramp-rfn-eshadow-setup-minibuffer)
(tramp-rfn-eshadow-update-overlay): New defuns.  Hook into
rfn-eshadow.el.

* net/tramp-smb.el (tramp-smb-errors): Add error message for call
timeout.
2007-09-21 05:24:06 +00:00
Stefan Monnier
ab8e678c8c Remove spurious * in docstrings.
(snmp-rfc1155-types, snmp-rfc1213-types, snmp-rfc1902-types)
(snmp-rfc1903-types, snmp-rfc1155-access, snmp-rfc1902-access)
(snmp-rfc1212-status, snmp-rfc1902-status): Remove list wrappers now
that completion accepts lists of strings.
(snmp-mode-syntax-table): Move initialization into declaration.
(snmp-mode-map): Likewise and remove \t binding.
(snmp-common-mode): Set tab-always-indent according to snmp-t-a-i.
(snmp-indent-line, snmp-mode-imenu-create-index): Remove unused var.
(snmp-indent-command): Remove.
2007-09-19 14:20:54 +00:00
Michaël Cadilhac
a38de16e85 (browse-url-elinks-new-window): New function.
(browse-url-elinks): Use browse-url-elinks-new-window.  Accept
optional second argument `new-window'.  Fix typo in doc-string.
(browse-url-elinks-sentinel): Use browse-url-elinks-new-window.
Improve error message.
2007-09-19 11:26:57 +00:00
Michaël Cadilhac
59c4e1dad9 (browse-url-url-encode-chars): Use the right parameter name in the function body.
Reported by Johannes Weiner.
2007-09-19 11:22:03 +00:00
Glenn Morris
b87474fca5 (socks-open-network-stream): Standardize error message from previous
change.
2007-09-19 07:57:47 +00:00
Glenn Morris
15bd294df1 (socks-open-network-stream): Signal an explicit error if the port
associated with a service string can't be found.
2007-09-19 07:52:30 +00:00
Michaël Cadilhac
6eddc3bb42 (browse-url-url-encode-chars): New function.
URL-encode some chars in a string.
(browse-url-encode-url): Rewrite using the previous function.
(browse-url-file-url): Use `browse-url-url-encode-chars'.
(browse-url-elinks-sentinel): Fix typo.
(browse-url-new-window-flag): Doc change.
2007-09-17 15:59:55 +00:00
Michaël Cadilhac
ad56e18b1f (browse-url-encode-url): Fix an infinite loop.
New argument `filename-p' to use one set of confusing chars or another.
(browse-url-file-url): Use the argument.
Suggested by Johannes Weiner.
2007-09-12 11:48:34 +00:00
Thien-Thi Nguyen
2842194587 (browse-url-encode-url): Use copy-sequence. 2007-09-10 18:24:38 +00:00
Michael Albinus
8a4438b672 * net/tramp.el (top): Remove declarations of `tramp-gw-*' symbols,
they are useless with the byte compiler.
(tramp-make-temp-file, tramp-make-tramp-temp-file): Move up.
(tramp-do-copy-or-rename-file-directly): Rearrange let-bindings.
(tramp-compute-multi-hops): Mask `tramp-gw-*' symbols.
(tramp-file-name-real-host, tramp-file-name-port)
(tramp-find-method, tramp-find-user, tramp-find-host): Make them
defuns.

* net/tramp-cache.el (top): Improve error message when
`tramp-persistency-file-name' is corrupted.
2007-09-09 08:31:27 +00:00
Eli Zaretskii
5edcabcbc6 (browse-url-galeon): Fix last change.
(top-level): Require cl when compiling.
2007-09-08 09:53:34 +00:00
Glenn Morris
8c22c51a1b Johannes Weiner <hannes at saeurebad.de>
(browse-url-browser-function): Add elinks.
(browse-url-elinks-wrapper): New option.
(browse-url-encode-url, browse-url-elinks)
(browse-url-elinks-sentinel): New functions.
(browse-url-file-url, browse-url-netscape, browse-url-mozilla)
(browse-url-firefox, browse-url-galeon, browse-url-epiphany): Use
new function browse-url-encode-url.
2007-09-07 04:37:01 +00:00
Michael Albinus
b83483d541 * net/ange-ftp.el: Add ange-ftp property to 'set-file-modes and
'set-file-times.
2007-08-30 19:58:28 +00:00
Michael Albinus
8d60099b80 * net/tramp.el (tramp-handle-set-file-times): Flush the file
properties.
(tramp-set-file-uid-gid, tramp-get-local-uid)
(tramp-get-local-gid): New defuns.
(tramp-handle-copy-file): Handle new parameter PRESERVE-UID-GID.
(tramp-do-copy-or-rename-file): New parameter PRESERVE-UID-GID.
Improve fast track.
(tramp-do-copy-or-rename-file-directly): Sync parameter list with
the other tramp-do-copy-or-rename-file-* functions.  Major
rewrite.
(tramp-handle-file-local-copy, tramp-handle-insert-file-contents)
(tramp-handle-write-region): Improve fast track.
(tramp-handle-file-remote-p): IDENTIFICATION can also be
'localname.
(tramp-maybe-open-connection): Let `process-adaptive-read-buffering'
be nil.
2007-08-28 20:09:58 +00:00
Miles Bader
7f22a76506 Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 97-100)

   - Update from CVS
   - Merge from gnus--rel--5.10

 * gnus--rel--5.10  (patch 246-247)

   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-860
2007-08-27 04:00:19 +00:00
Michael Albinus
0f205eeefa * net/tramp.el (tramp-local-host-p): New defun.
(tramp-handle-file-local-copy, tramp-handle-write-region):
Implement fast track when being on the local host.
(tramp-file-name-handler): Don't set "started" property.  It shall
be reserved for the "ftp" method.
(tramp-make-copy-program-file-name): Use `tramp-file-name-real-host'.

* net/tramp-ftp.el (top): Autoload `tramp-set-connection-property'.
(tramp-ftp-file-name-handler):  Set "started" property.
2007-08-24 05:27:22 +00:00
Stefan Monnier
5e835c9f55 Remove spurious * in custom docstrings.
(browse-url-filename-alist): Use new-style backquote.
2007-08-23 18:41:14 +00:00
Stefan Monnier
8d559559ce (socks-username/password-auth-filter):
Remove unused vars `state' and `desired-len'.
(socks-parse-services, socks-nslookup-host): Use with-current-buffer.
(socks-wait-for-state-change): Use new-style backquotes.
2007-08-23 18:36:07 +00:00
Stefan Monnier
378f9937f1 (browse-url-emacs): New function. 2007-08-22 18:52:59 +00:00
Michael Albinus
f84638eb6b * net/tramp.el (top): Require cl.el, when `copy-tree' is not available
otherwise.
(tramp-get-remote-path): New defun.  Replace occurences of
`tramp-default-remote-path' by this function.
(tramp-set-remote-path): Move most of the code to
`tramp-get-remote-path'.
(tramp-get-ls-command, tramp-get-remote-id): Don't check for not
existing directories, this is done already in
`tramp-get-remote-path'.
2007-08-22 05:47:42 +00:00
Miles Bader
37cc095b6a Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-851
2007-08-13 13:41:28 +00:00
Glenn Morris
e7f767c25e Replace `iff' in doc-strings and comments. 2007-08-08 07:34:30 +00:00
Michael Albinus
27e813fe4b * net/tramp.el (tramp-wrong-passwd-regexp): Make the regexp more
global matching.
(tramp-handle-process-file): Fix bug inserting
resulting output.
(tramp-handle-shell-command): Handle OUTPUT-BUFFER and
ERROR-BUFFER more robust.  Display output.
(tramp-file-name-handler): Add a connection property when we found
a foreign file name handler.  This allows backends like ftp to
profit also from usr/host name completion based on connection
cache.
(tramp-send-command-and-read): Search for trash after the regexp
until eol only.  In XEmacs, there is a problem with \n.

* net/tramp-cache.el (top): Read persistent connection history
when cache is empty.
2007-08-07 20:30:20 +00:00
Michael Albinus
d62c9a33c4 * net/tramp.el (tramp-handle-file-remote-p): Handle optional
parameters IDENTIFICATION and CONNECTED.
(tramp-handle-insert-file-contents): VISIT must be handled after
insertion of the local copy.  Reported by Peter Gordon
<peter@pg-consultants.com>.
(tramp-file-name-handler): No special handling for
`expand-file-name'.  But for `file-name-as-directory'.
(tramp-find-shell, tramp-open-connection-telnet)
(tramp-open-connection-rsh, tramp-open-connection-su)
(tramp-open-connection-multi)
(tramp-open-connection-setup-interactive-shell): Guard against
$PROMPT_COMMAND shell var.  Reported by Steve Youngs
<steve@sxemacs.org>.
(tramp-append-tramp-buffers): Replace "sensible" by "sensitive" in
the hint.

* net/trampver.el: Update release number.
2007-08-07 20:04:27 +00:00
Michael Albinus
1f3d1bea39 *** empty log message *** 2007-08-06 07:23:39 +00:00
Michael Albinus
75c23f5f85 *** empty log message *** 2007-08-06 07:22:20 +00:00
Michael Albinus
5bc880a47d * net/ange-ftp.el (ange-ftp-hook-function): Catch also errors in
process-filter.
2007-08-06 06:57:31 +00:00
Michael Albinus
227eb74497 * net/ange-ftp.el (ange-ftp-hook-function): Catch also errors in
process-filter.
2007-08-06 06:50:09 +00:00
Michael Albinus
6435918d3d * net/tramp.el (tramp-handle-file-remote-p): Return a string as
remote identification.
2007-08-05 12:43:06 +00:00
Glenn Morris
14f7b89dd3 (telnet-mode): Fix previous change. 2007-08-03 17:09:43 +00:00
Glenn Morris
866c361431 (telnet-mode): Fix previous change. 2007-08-03 17:09:01 +00:00