1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 08:43:40 -07:00
Commit graph

979 commits

Author SHA1 Message Date
Michael Albinus
9be01a63e3 * net/tramp-imap.el (top): Add X-Size' to imap-hash-headers'.
(tramp-imap-do-copy-or-rename-file): Don't use the inode, when
calling `tramp-imap-put-file'.  Add file size to the call.
(tramp-imap-get-file-entries): Compute also user name, file size,
and date.
(tramp-imap-handle-insert-directory): Insert uid and gid.
(tramp-imap-handle-file-attributes): Transform uid and gid
according to `id-format'.
(tramp-imap-put-file): New optional parameter SIZE.  Encode file
size in header X-Size.
2009-10-27 10:53:06 +00:00
Michael Albinus
293c24f9ad * net/tramp.el (tramp-perl-file-truename): New defconst. Perl
code contributed by yary <not.com@gmail.com> (tiny change).
(tramp-handle-file-truename, tramp-get-remote-perl): Use it.
Check also for "perl-file-spec" and "perl-cwd-realpath"
properties.
(tramp-handle-write-region): In case of APPEND, reuse the tmpfile
name.

* net/tramp.el (tramp-perl-file-name-all-completions): New
defconst.
(tramp-get-remote-readlink): New defun.
(tramp-handle-file-truename): Use it.
(tramp-handle-file-exists-p): Check file-attributes cache, assume
file exists if cache value present.
(tramp-check-cached-permissions) New defun.
(tramp-handle-file-readable-p): Use it.
(tramp-handle-file-writable-p): Likewise.
(tramp-handle-file-executable-p): Likewise.
(tramp-handle-file-name-all-completions): Try using Perl to get
partial completions.  When perl not available, combine `cd' and
`ls' into single remote operation and use shell expansion to get
partial remote directory contents.  Set `file-exists-p' cache for
directory and any files returned by ls.  Change cache handling to
support partial directory contents.  Use error message emitted by
remote `cd' or Perl code for local tramp-error.
(tramp-do-copy-or-rename-file-directly): Avoid separate
tramp-send-command-and-check call.
(tramp-handle-process-file): Merge three remote ops into one.  Do
not flush all caches when `process-file-side-effects' is set.
(tramp-handle-write-region): Avoid tramp-set-file-uid-gid if
file-attributes shows uid/gid to be set already.
2009-10-26 09:29:12 +00:00
Michael Albinus
36f1267e80 * net/tramp-imap.el (tramp-imap-file-name-handler-alist): Ignore
`dired-call-process'.
(tramp-imap-make-iht): Use `user' and `ssl' with `imap-hash-make'.
2009-10-26 09:05:09 +00:00
Michael Albinus
b88f2d0aa0 * net/tramp.el (top): Remove `tramp-rfn-eshadow-update-overlay'
from `rfn-eshadow-update-overlay-hook' when unloading.
(tramp-methods): Add `tramp-copy-keep-tmpfile' for "rsync" and
"rsyncc".  Adjust doc string.
(tramp-temp-buffer-file-name) New buffer-local defvar.
(tramp-handle-insert-file-contents, tramp-handle-write-region):
Keep temporary file when indicated by method ("rsync" and
"rsyncc").
(tramp-handle-write-region): Handle APPEND.
(tramp-delete-temp-file-function): New defun.  Added to
`kill-buffer-hook'.
2009-10-23 15:04:27 +00:00
Dan Nicolaescu
8f43cbf352 * puresize.h (BASE_PURESIZE): Increase to 1430000.
* term/tty-colors.el (msdos-color-values): Remove declaration, unused.
(color-name-rgb-alist, tty-standard-colors)
(tty-color-mode-alist): Change to defconst.

* simple.el (mark-inactive): Purecopy message.

* menu-bar.el (menu-bar-make-mm-toggle, menu-bar-make-toggle): Fix macro.
(global-map, yank-menu):
* textmodes/ispell.el (ispell-menu-map):
* net/eudc.el (eudc-tools-menu):
* international/mule-cmds.el (describe-language-environment-map)
(setup-language-environment-map, set-coding-system-map)
(mule-menu-keymap):
* vc-hooks.el (vc-menu-entry, vc-menu-map):
* replace.el (occur-mode-map):
* pcvs-defs.el (cvs-global-menu): Purecopy names and tooltips.

* bindings.el (propertized-buffer-identification): Purecopy
tooltip text.
2009-10-23 05:15:26 +00:00
Kevin Ryde
e7b94bbb53 * net/dns.el: Add "Keywords: comm", as per net/net-utils.el. 2009-10-21 22:58:58 +00:00
Michael Albinus
fc754ea1a4 * net/tramp-smb.el (tramp-smb-get-stat-capability): New defun.
(tramp-smb-handle-file-attributes): Use it.
(tramp-smb-do-file-attributes-with-stat): Don't raise an error.
(tramp-smb-handle-insert-directory): Use `mapc' rather than
`mapcar'.  Use `tramp-smb-get-stat-capability'.  Add
`dired-filename' text properties.
(tramp-smb-get-cifs-capabilities): Apply `save-match-data'.
(tramp-smb-maybe-open-connection): Simplify check for smbclient
version.
2009-10-21 11:27:59 +00:00
Kevin Ryde
9c16fc9540 (browse-url): Identify alist with "consp and
not functionp" and let all other things go down the `apply' leg,
as suggested by Stefan.  (Further to bug#4531.)
2009-10-18 23:55:16 +00:00
Stefan Monnier
2b93080a46 (ange-ftp-file-size): Use unwind-protect. 2009-10-18 00:46:49 +00:00
Glenn Morris
b61374aba3 (rcirc-authenticate): Simplify previous change. 2009-10-16 16:03:33 +00:00
Stefan Monnier
412707c2e9 (ange-ftp-send-cmd): Handle size' like mdtm'.
(ange-ftp-file-size): New function.
(ange-ftp-file-attributes): Use it.
2009-10-16 15:20:51 +00:00
Michael Albinus
0c6f436e84 * net/tramp-smb.el (tramp-smb-version): New defvar.
(tramp-smb-maybe-open-connection): Use it, in order to avoid
repeated checks.
2009-10-16 14:36:13 +00:00
Michael Albinus
4260b4027e * net/tramp-smb.el (tramp-smb-errors): Add error messages.
(tramp-smb-get-share, tramp-smb-get-localname): Use only VEC as
parameter.
(tramp-smb-handle-add-name-to-file)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory, tramp-smb-handle-delete-file)
(tramp-smb-handle-file-attributes)
(tramp-smb-do-file-attributes-with-stat)
(tramp-smb-handle-file-local-copy)
(tramp-smb-handle-insert-directory)
(tramp-smb-handle-make-directory)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-make-symbolic-link)
(tramp-smb-handle-rename-file, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-maybe-open-connection): Apply the changed parameters.
(tramp-smb-read-file-entry): Read Disk names in compressed format.
Handle long file names.
(tramp-smb-get-cifs-capabilities): Check, whether the connection
process is running.
(tramp-smb-maybe-open-connection): Trace "smbclient -V" command.
Read share names with "-g" option.
2009-10-15 13:17:19 +00:00
Michael Albinus
ec5145d684 * net/tramp.el (tramp-replace-environment-variables): Do not fail
if the environment variable does not exist.
2009-10-15 13:15:16 +00:00
Glenn Morris
d7a0fd6fcd Ryan Yeske <rcyeske at gmail.com>
(rcirc-view-log-file): New command.
(rcirc-track-minor-mode-map): Remove C-c ` binding.
(rcirc-authenticate, rcirc-authinfo): Allow nickserv-nick to be specified.
2009-10-15 06:50:34 +00:00
Glenn Morris
37493a9884 (tramp-smb-do-file-attributes-with-stat): Let-bind `size'. 2009-10-12 07:02:59 +00:00
Michael Albinus
585eedef91 Fix last change. 2009-10-11 15:01:27 +00:00
Michael Albinus
f6f7e059f7 * net/tramp-smb.el (tramp-smb-errors): Add error messages.
(tramp-smb-file-name-handler-alist): Add handlers for
`add-name-to-file', `make-symbolic-link'.
(tramp-smb-handle-add-name-to-file)
(tramp-do-file-attributes-with-stat)
(tramp-smb-handle-make-symbolic-link)
(tramp-smb-get-cifs-capabilities): New defuns.
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory, tramp-smb-handle-delete-file)
(tramp-smb-handle-file-local-copy)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-rename-file, tramp-smb-handle-write-region): The
file name syntax depends on cifs capabilities.
(tramp-smb-handle-file-attributes); Call
`tramp-do-file-attributes-with-stat' if possible.
(tramp-smb-handle-insert-directory): Use posix attributes if
possible.
(tramp-smb-handle-set-file-modes): It is applicable for posix
only.
2009-10-11 14:02:23 +00:00
Michael Albinus
674a9263fd * net/tramp-cache.el (tramp-flush-connection-property): The hash
can be empty.
2009-10-11 14:00:30 +00:00
Michael Albinus
46bcd78cc0 * net/tramp.el (tramp-local-host-p): Function shall return nil for
connection methods like smb.
2009-10-11 13:59:28 +00:00
Michael Albinus
288f783b7a * net/tramp-smb.el (tramp-smb-handle-copy-directory): Handle the
case both directories are remote.
(tramp-smb-handle-expand-file-name): Implement "~" expansion.
(tramp-smb-maybe-open-connection): Flush the cache only if
necessary.
2009-10-08 15:21:31 +00:00
Michael Albinus
a17632c1dc * net/tramp.el (tramp-file-name-real-user, tramp-file-name-domain)
(tramp-file-name-real-host, tramp-file-name-port): Apply
`save-match-data.
2009-10-08 15:19:56 +00:00
Michael Albinus
c2dc9732f7 * net/tramp-smb.el (tramp-smb-errors): Add error messages.
(tramp-smb-file-name-handler-alist): Add handler for
`copy-directory', `expand-file-name', `set-file-modes'.
(tramp-smb-handle-copy-directory)
(tramp-smb-handle-expand-file-name)
(tramp-smb-handle-set-file-modes): New defuns.
(tramp-smb-handle-copy-file): Handle KEPP-DATE.
(tramp-smb-handle-file-attributes): Simplify check for retrieving
entry.
(tramp-smb-handle-insert-directory): Don't flush the cache.
(tramp-smb-maybe-open-connection): Check for samba client and
server versions.
2009-10-07 11:31:21 +00:00
Michael Albinus
e946faaf51 * net/tramp-cache.el (tramp-flush-connection-property): Add trace message. 2009-10-07 11:27:10 +00:00
Sam Steingold
f58f7520cd (tramp-compat-process-running-p): Check that
the comm attribute is present before calling regexp-quote.
2009-10-06 19:52:15 +00:00
Glenn Morris
9fb2cdc58b (tramp-handle-start-file-process): Move tramp-error call
inside with-parsed...  macro so that `v' is defined.
2009-10-06 02:50:44 +00:00
Michael Albinus
263c02efe2 * net/tramp.el (tramp-verbose): Fix docstring.
(tramp-methods): Add recursive option to `tramp-copy-args'.  Add
`tramp-copy-recursive'.  Valid for "rcp", "scp", "scp1", "scp2",
"scp1_old", "scp2_old", "rsync", "rsyncc".
(tramp-default-method): Check also for
`auth-source-user-or-password'.
(tramp-file-name-handler-alist, tramp-file-name-for-operation):
Add handler for `copy-directory'.
(tramp-handle-copy-directory): New defun.
(tramp-do-copy-or-rename-file-out-of-band): Handle directory case.
(tramp-handle-start-file-process): Raise an error when PROGRAM is
nil.  Optimize sent command.
2009-10-05 11:30:52 +00:00
Michael Albinus
1b8d1cc7b6 *** empty log message *** 2009-10-03 12:36:21 +00:00
Michael Albinus
571c4c8757 *** empty log message *** 2009-10-02 13:21:15 +00:00
Michael Albinus
b3ee21ac4f * net/ange-ftp.el (ange-ftp-generate-passwd-key): Check, whether
HOST and USER are strings.  They are nil, when there are
incomplete entries in ~/.netrc, for example.
(ange-ftp-delete-directory): Implement RECURSIVE case.  Change to
root directory ("device busy" error otherwise).
2009-10-02 13:20:14 +00:00
Miles Bader
3999968a73 Add arch tagline 2009-10-02 10:53:34 +00:00
Glenn Morris
895d190402 Kevin Ryde <user42 at zip.com.au>
(browse-url): Pass any symbol in browse-url-browser-function to
`apply', since if you've mistakenly put an unbound symbol then the
error is clearer.  (Bug#4531)
2009-10-02 07:11:13 +00:00
Juanma Barranquero
32226619c5 Use called-interactively-p' instead of interactive-p'. 2009-10-02 03:48:36 +00:00
Juanma Barranquero
12a3c28c78 * image-mode.el (image-toggle-display):
* emacs-lisp/elp.el (elp-instrument-function):
* emacs-lisp/advice.el (ad-make-advised-definition):
* emacs-lisp/easy-mmode.el (define-minor-mode):
* net/browse-url.el (browse-url-maybe-new-window):
* progmodes/sh-script.el (sh-learn-buffer-indent):
  Pass new argument 'any to `called-interactively-p'.
2009-10-02 00:02:02 +00:00
Michael Albinus
cc3dda16b9 * net/tramp-smb.el (tramp-smb-errors): Add error message for
connection timeout.
(tramp-smb-handle-delete-directory): Handle optional parameter
RECURSIVE.
2009-10-01 15:40:59 +00:00
Michael Albinus
93776a8c4a * net/tramp-gvfs.el (tramp-gvfs-handle-delete-directory): Handle
optional parameter RECURSIVE.
2009-10-01 15:39:25 +00:00
Michael Albinus
ecacb4d68c * net/tramp-fish.el (tramp-fish-handle-delete-directory): Handle
optional parameter RECURSIVE.
2009-10-01 15:35:35 +00:00
Michael Albinus
c15cdf0268 * net/tramp.el (tramp-handle-make-directory): Flush upper
directory's file properties.
(tramp-handle-delete-directory): Handle optional parameter
RECURSIVE.
(tramp-handle-dired-recursive-delete-directory): Flush directory
properties after the remove command only.
2009-10-01 15:34:56 +00:00
Michael Albinus
c90a8a9f87 * net/ange-ftp.el (ange-ftp-delete-directory ): Add optional
parameter RECURSIVE.  Implementation is missing.
2009-10-01 15:33:44 +00:00
Glenn Morris
dab8f2791c (tramp-smb-handle-directory-files-and-attributes): Use
tramp-compat-file-attributes rather than nonexistent
tramp-compat-handle-file-attributes.
2009-09-29 02:43:46 +00:00
Katsumi Yamaoka
ffa894dbde Synch with Gnus trunk.
2009-09-10  Teodor Zlatanov  <tzz@lifelogs.com>

 * net/imap.el (imap-interactive-login): Better messages.
 (imap-open): Fix bug with renamed buffer on reconnect.
 (imap-authenticate): Add buffer-local imap-last-authenticator variable
 for easier debugging and cleaner code.  On successful (guessed based on
 server capabilities) secondary authentication, set imap-state
 correctly.
 (imap-last-authenticator): Define imap-last-authenticator as a variable
 to avoid warnings.
2009-09-28 12:09:13 +00:00
Michael Albinus
0e66507834 * net/tramp-imap.el: New package. 2009-09-28 11:59:22 +00:00
Michael Albinus
f742666ae3 * net/tramp-smb.el (tramp-smb-handle-directory-files-and-attributes):
Use `tramp-compat-handle-file-attributes'.
2009-09-28 11:56:13 +00:00
Michael Albinus
03db0efcff *** empty log message *** 2009-09-28 11:54:34 +00:00
Teodor Zlatanov
3d9942648d * net/imap-hash.el: New library, see NEWS.
* Makefile.in (ELCFILES): Add imap-hash.el.

* NEWS: Mention new library imap-hash.el
2009-09-27 14:47:50 +00:00
Juanma Barranquero
5a0c3f568d Fix typos.
* allout.el
* dired-aux.el
* dired-x.el
* epa-file.el
* ps-print.el
* shell.el
* vc-hooks.el
* vc-rcs.el
* vc-sccs.el
* vc.el
* view.el
* wdired.el
* emacs-lisp/authors.el
* net/dig.el
* net/socks.el
* net/zeroconf.el
* obsolete/vc-mcvs.el
* progmodes/gdb-mi.el
* progmodes/grep.el
* progmodes/idlw-help.el
* progmodes/idlw-shell.el
* progmodes/idlwave.el
* progmodes/inf-lisp.el
* textmodes/bibtex.el
* textmodes/ispell.el
* textmodes/reftex-toc.el
2009-09-24 01:37:14 +00:00
Juanma Barranquero
7589d38e9e * net/dig.el: Add "Keywords: comm", as per net-utils.el. (Bug#4501) 2009-09-21 09:51:38 +00:00
Stefan Monnier
5ac4271539 (dig-mode): Use define-derived-mode. 2009-09-21 02:28:02 +00:00
Glenn Morris
6188ea494d Fix typos in condition-case handlers. 2009-09-18 07:07:33 +00:00
Glenn Morris
77564fa48c (byte-compile-not-obsolete-vars): Set if bound. 2009-09-16 03:13:55 +00:00