Commit graph

1918 commits

Author SHA1 Message Date
Michael Albinus
08cf935b84 * net/tramp-sh.el (tramp-do-copy-or-rename-file-directly): In the
`rename' case, check whether source directory has set the sticky bit.
2014-03-25 10:49:37 +01:00
Michael Albinus
1f73d6c675 * net/tramp.el (tramp-methods, tramp-connection-timeout): Fix docstring.
* net/tramp-sh.el (tramp-sh-handle-vc-registered): Revert change
from 2014-03-07, it decreases performance unnecessarily.  Let-bind
`remote-file-name-inhibit-cache' to nil in the second pass.
(tramp-find-executable): Do not call "which" on SunOS.
(tramp-send-command-and-check): Fix docstring.
2014-03-25 09:16:49 +01:00
Thierry Volpiatto
f1e06f7bff * net/tramp.el (tramp-read-passwd): Suspend the timers while reading
the password.
2014-03-23 10:22:16 +01:00
Michael Albinus
1e92a8a3aa * net/tramp.el (tramp-methods): Add docstring for `tramp-login-env'
and `tramp-copy-env'.

* net/tramp-sh.el (tramp-methods) <sudo>: Add `tramp-login-env'.
  (tramp-maybe-open-connection): Handle `tramp-login-env'.
2014-03-21 14:02:25 +01:00
Michael Albinus
8273986b5a * net/tramp.el (tramp-action-out-of-band): Read pending output.
(tramp-call-process): Trace also DESTINATION.

* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
Quote file names when they are local.  Remove superfluous trace.
2014-03-17 10:28:47 +01:00
Juanma Barranquero
7644aa970d lisp/net/*.el, lisp/progmodes/*.el: Fix docstring typos.
* net/socks.el (socks, socks-override-functions)
(socks-find-services-entry): FT
* progmodes/hideif.el (hif-set-var, hif-nexttoken, hif-comma)
(hif-find-ifdef-block):
* progmodes/modula2.el (m2-indent): Fix docstring typos.

* net/tls.el (tls-program): Reflow docstring.

* progmodes/opascal.el (opascal-compound-block-indent)
(opascal-case-label-indent): Fix docstring typos.
(opascal-mode): Fix typos; let defined-derived-mode document mode hook.

* progmodes/pascal.el (pascal-mode-abbrev-table)
(pascal-imenu-generic-expression, pascal-auto-endcomments)
(pascal-mark-defun, pascal-comment-area, pascal-indent-level)
(pascal-outline-mode): Fix docstring typos.
(pascal-mode): Let define-derived-mode document mode hook.
(pascal-uncomment-area): Reflow.
(pascal-exclude-str-start, pascal-exclude-str-end): Add docstring.
2014-03-14 01:22:33 +01:00
Michael Albinus
183d706e35 * net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Do not add `nil' to the environment, when there's no remote `locale'.
(tramp-find-inline-encoding): Check, that the remote host has
installed perl, before sending scripts.
2014-03-10 14:36:39 +01:00
Michael Albinus
e50772e36a * net/tramp-sh.el (tramp-sh-handle-vc-registered): Run first pass
only when `remote-file-name-inhibit-cache' is nil.
(tramp-sh-file-name-handler): Use `tramp-error'.  Simplify code.
2014-03-07 15:07:12 +01:00
Michael Albinus
fa965cbf74 * net/tramp.el (tramp-error): VEC-OR-PROC can be nil.
(tramp-action-password): Clear password cache if needed.
(tramp-read-passwd): Do not clear password cache.

* net/tramp-gvfs.el (tramp-gvfs-handler-askpassword): Clear password
cache unless it is the first password request.
2014-03-06 14:23:04 +01:00
Lars Ingebrigtsen
6952100dc3 (eww-textarea-map): [tab] doesn't work on tty.
Reported by Mario Lang.

* net/shr.el (shr-map): Ditto.
2014-03-05 19:44:58 +01:00
Lars Ingebrigtsen
90f04e4c85 * net/eww.el (eww-mode-map): [tab] doesn't work on tty.
* net/eww.el (eww-mode-map): [tab] doesn't work on tty.
(eww-setup-buffer): Clear next/prev/etc more reliably.
2014-03-05 13:39:13 +01:00
Michael Albinus
5dc65319bc * net/tramp-sh.el (tramp-sh-handle-vc-registered): Do not call
`tramp-send-command-and-check'.
2014-03-04 15:40:38 +01:00
Glenn Morris
b70257b07e Tweak earlier shr.el change 2014-02-28 15:00:12 -05:00
Ivan Kanis
8a73034ea9 * net/shr.el (shr-put-image): add custom variable
`shr-image-animate' to turn off image animation. It is so slow it
  will render emacs unusable.
2014-02-28 09:49:59 +01:00
Michael Albinus
245aa73efe * net/tramp-adb.el (tramp-adb-parse-device-names):
Use `accept-process-output'.
(tramp-adb-handle-file-truename): Cache the localname only.
(tramp-adb-handle-make-directory)
(tramp-adb-handle-delete-directory): Flush file properties correctly.
(tramp-adb-handle-set-file-modes): Do not raise an error when file
modes cannot be changed.

* net/tramp-cache.el (tramp-flush-directory-property): Remove also
file properties of symlinks.
2014-02-28 09:41:24 +01:00
Michael Albinus
79fc11918a * net/dbus.el (dbus--init-bus): Declare function.
(dbus-path-local, dbus-interface-local): New defconst.
(dbus-init-bus): Use them.
(dbus-return-values-table): Extend doc.
(dbus-handle-bus-disconnect): Extend error message.
2014-02-27 16:41:13 +01:00
Michael Albinus
c22c16140e Tramp adb fixes, found during test campaign.
* net/tramp.el (tramp-call-process): Improve trace message.
(tramp-handle-insert-file-contents): Trace error case.

* net/tramp-adb.el (tramp-adb-file-name-handler-alist)
<insert-directory>: Use `tramp-handle-insert-directory'.
(tramp-adb-handle-insert-directory): Remove function.
(tramp-adb-send-command-and-check): New defun, replacing
`tramp-adb-command-exit-status'.  Change all callees.
(tramp-adb-handle-file-attributes)
(tramp-adb-handle-directory-files-and-attributes): Use it.
(tramp-adb-ls-output-name-less-p): Use
`directory-listing-before-filename-regexp'.
(tramp-adb-handle-delete-directory): Flush also file properties of
the truename of directory.
(tramp-adb-handle-file-name-all-completions): Add "./" and "../".
(tramp-adb-handle-file-local-copy): Make the local copy readable.
(tramp-adb-handle-write-region): Implement APPEND.
(tramp-adb-handle-rename-file): Make it more robust.  Flush file
properties correctly.
(tramp-adb-maybe-open-connection): Set `tramp-current-*'
variables.  Check for connected devices only when needed.
2014-02-27 12:59:04 +01:00
Daniel Colascione
eff3168abc Fix tramp bug with empty explicit path 2014-02-26 21:11:50 -08:00
Glenn Morris
05db9ece58 * lisp/net/newst-backend.el (newsticker-url-list): Doc whitespace trivia 2014-02-25 13:35:37 -05:00
Michael Albinus
c848881f79 * net/tramp-sh.el (tramp-sh-handle-file-truename): Improve last fix. 2014-02-24 16:48:32 +01:00
Michael Albinus
85c01f803f * net/tramp-sh.el (tramp-sh-handle-file-truename): Preserve trailing "/".
Fixes: debbugs:16851
2014-02-23 15:51:29 +01:00
Paul Eggert
16f4c9f148 Spelling fixes. 2014-02-22 18:46:12 -08:00
Daniel Colascione
4e6526341d Additional type checking in secrets API 2014-02-21 16:47:42 -08:00
Michael Albinus
67223d255a * net/tramp.el (tramp-check-cached-permissions):
Call `file-attributes' with `suffix' being a symbol but a string.
2014-02-21 08:52:04 +01:00
Daniel Colascione
4819842050 Improve dbus error handling; detect bus failure 2014-02-20 20:32:31 -08:00
Michael Albinus
f5bee33b82 * net/tramp.el (ls-lisp-use-insert-directory-program): Declare.
(tramp-handle-insert-directory): New defun, taken from tramp-gvfs.el.

* net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
[insert-directory]: Use `tramp-handle-insert-directory.
(tramp-gvfs-handle-insert-directory): Remove function.

* net/tramp-sh.el (tramp-sh-handle-insert-directory):
Call `tramp-handle-insert-directory'.
2014-02-20 15:24:13 +01:00
Michael Albinus
50bfdd5d78 Some Tramp minor fixes, found during test campaign.
* net/tramp-adb.el (tramp-adb-file-name-handler-alist)
[make-symbolic-link]: Use `tramp-handle-make-symbolic-link'.

* net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
[make-symbolic-link]: Use `tramp-handle-make-symbolic-link'.
(tramp-gvfs-maybe-open-connection): Set always connection
properties, even if target is mounted already.

* net/tramp-sh.el (tramp-color-escape-sequence-regexp):
Set tramp-autoload cookie.
(tramp-get-remote-touch): New defun.
(tramp-sh-handle-set-file-times): Use it.
(tramp-sh-handle-directory-files-and-attributes):
Use `tramp-handle-directory-files-and-attributes' if neither stat
nor perl are available on the remote host.

* net/tramp-smb.el (tramp-smb-handle-insert-directory): Mark trailing
"/".  Write long listing only when "l" belongs to the switches.

* net/tramp.el (tramp-handle-make-symbolic-link): New defun.
(tramp-check-cached-permissions): Call `file-attributes' if the
cache is empty.

* net/trampver.el: Update release number.
2014-02-19 20:24:32 +01:00
Daniel Colascione
2a77e3e222 Fix last dbus change 2014-02-17 08:30:09 -08:00
Daniel Colascione
26ea164c7e Improve dbus performance on synchronous calls 2014-02-17 03:41:42 -08:00
Michael Albinus
dd7691b7f3 Sync with Tramp 2.2.9.
* doc/misc/trampver.texi: Update release number.

* lisp/net/trampver.el: Update release number.

* test/automated/tramp-tests.el (password-cache-expiry): Set to nil.
(tramp-test28-shell-command): Make a while loop when waiting for
process exit.
2014-02-16 18:23:00 +01:00
Michael Albinus
c7db4c06c4 * net/tramp-sh.el (tramp-sh-handle-vc-registered): Apply heredoc
script more robustly.
2014-02-10 14:54:33 +01:00
Michael Albinus
5cef7abdbc Revert previous patch, it introduces other problems. 2014-02-10 14:22:14 +01:00
Michael Albinus
91ea763a41 * net/tramp-sh.el (tramp-sh-handle-start-file-process): Do not
quote `tramp-end-of-heredoc'.
2014-02-10 11:06:07 +01:00
Glenn Morris
34dc21db6e Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
Michael Albinus
429b93bd7b * net/tramp-sh.el (tramp-sh-handle-start-file-process):
Insert output at end of buffer.  (Bug#16120)
2014-02-08 14:35:15 +01:00
Michael Albinus
629de96845 * net/tramp-sh.el (tramp-sh-handle-start-file-process): Use "&&"
instead of ";" in order to avoid additional prompts.  Let heredoc
scripts read from tty.  (Bug#16582)
(tramp-send-command): No special handling of heredocs, it isn't
necessary anymore.
2014-02-06 09:49:34 +01:00
Michael Albinus
9a83b32b7b Make heredocs more robust in Tramp.
* net/tramp-sh.el (tramp-end-of-heredoc): New defconst.
(tramp-sh-handle-set-file-acl)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-find-executable, tramp-send-command): Use it.
2014-02-05 15:11:50 +01:00
Lars Ingebrigtsen
cc477daa01 Make shr respect privacy when viewing documents with SVG images
(shr-tag-svg): Respect `shr-inhibit-images'.
(shr-dom-to-xml): Respect `shr-blocked-images'.

Fixes: debbugs:15882
2014-01-31 13:44:11 -08:00
Lars Ingebrigtsen
dba6e3ec42 Make shr-generic into a defsusbt to make the stack shallower
* net/shr.el (shr-generic): Make into a defsubst to make the stack
depth shallower.
2014-01-31 13:08:13 -08:00
Glenn Morris
ece4bae50f Doc, comment, etc updates for increased use of locate-user-emacs-file
This should have been a prerequisite for making these changes in the
first place.

* doc/emacs/calendar.texi (Time Intervals):
* doc/misc/idlwave.texi (Lesson III---User Catalog, Online Help)
(Starting the Shell, Catalogs, User Catalog):
* doc/misc/remember.texi (Quick Start):
* doc/misc/viper.texi:
* doc/misc/vip.texi (Customization, Customizing Constants)
(Customizing Key Bindings): Update for files being in ~/.emacs.d/.

* lisp/ido.el (ido-save-directory-list-file):
* lisp/saveplace.el (save-place-file):
* lisp/calendar/timeclock.el (timeclock-file):
* lisp/net/quickurl.el (quickurl-url-file):
* lisp/obsolete/otodo-mode.el (todo-file-do, todo-file-done, todo-file-top):
* lisp/progmodes/idlwave.el (idlwave-config-directory):
* lisp/textmodes/remember.el (remember-data-file):
Bump :version.

* lisp/shadowfile.el (shadow-info-file, shadow-todo-file): Doc fix.
* lisp/strokes.el (strokes-file): Doc fix.  Bump :version.
(strokes-help): Doc fix.
* lisp/emulation/viper-init.el (viper-vi-style-in-minibuffer): Doc fix.
* lisp/emulation/viper.el (viper): Doc fix for custom group.
(top-level): Remove oh-so-no-longer-relevant text about vip.
* lisp/obsolete/otodo-mode.el (todo-prefix): Doc fix.

* etc/NEWS: Related edits.
2014-01-26 18:02:28 -08:00
Rüdiger Sonderfeld
ed85dee69d Link to info manual in `defgroup'.
* lisp/progmodes/ada-mode.el (ada):
* lisp/woman.el (woman): Link to info manual and Commentary section.

* lisp/url/url-vars.el (url):
* lisp/erc/erc.el (erc):
* lisp/progmodes/flymake.el (flymake):
* lisp/nxml/nxml-mode.el (nxml):
* lisp/net/eww.el (eww):
* lisp/speedbar.el (speedbar, speedbar-faces, speedbar-vc):
* lisp/htmlfontify.el (htmlfontify):
* lisp/ses.el (ses):
* lisp/epa.el (epa):
* lisp/ido.el (ido): Link to info manual.
2014-01-25 20:15:42 +01:00
Adam Sjøgren
35408b1a6c * net/shr.el (shr-tag-img): Prefer the title over the alt text.
Fixes: debbugs:16537
2014-01-24 17:52:16 -07:00
Juanma Barranquero
f77c7a99c1 * net/eww.el (eww-download-callback): Fix reference to eww-download-directory. 2014-01-24 05:15:13 +01:00
Michael Albinus
8953518079 Add :version tag to `tramp-password-prompt-regexp'. 2014-01-17 19:24:09 +01:00
Michael Albinus
a134044028 Fix Bug#13124.
* net/tramp.el (tramp-password-prompt-regexp): Use
`password-word-equivalents' if available.
(tramp-action-password, tramp-process-one-action)
(tramp-read-passwd): Let-bind `case-fold-search' to t.
2014-01-17 19:20:39 +01:00
Paul Eggert
ae93878a92 Spelling fixes. 2014-01-13 14:21:32 -08:00
Stefan Monnier
6137cb82db * lisp/net/shr.el (shr-render-region): Autoload. 2014-01-12 18:34:33 -05:00
Xue Fuqiao
e6344e177a Rename eww-download-path to eww-download-directory.
* lisp/net/eww.el (eww-download-directory): Rename from
`eww-download-path' (Bug#16419).
* doc/misc/eww.texi (Basics): Use "directory" instead of "path" (Bug#16419).
2014-01-12 22:25:10 +08:00
Paul Eggert
d5081c1ed8 Spelling fixes.
* calc/calc-yank.el (calc-edit-mode, calc-edit-cancel):
* emacs-lisp/debug.el (cancel-debug-on-entry):
* epg.el (epg-error-to-string):
* files.el (recover-file):
* lpr.el (lpr-buffer, print-buffer, lpr-region, print-region):
* mail/emacsbug.el (report-emacs-bug-hook):
* mail/sendmail.el (mail-recover):
* ses.el (ses-yank-resize):
* term/ns-win.el (ns-print-buffer):
Spelling fixes in diagnostics, mostly for "canceled" with one L.
* epg.el (epg-key-capability-alist): Rename from misspelled version.
All uses changed.
* obsolete/xesam.el (xesam-all-fields): Fix misspelled field name.
2014-01-05 22:25:30 -08:00
Lars Magne Ingebrigtsen
3d95a0f45a Make shr do line filling better when encountering very long words
(shr-insert): If we have a word that's longer than `shr-width',
break after it anyway.  Otherwise we'll do no breaking once we get
such a long word.
2014-01-05 11:23:35 +01:00