1. 10 Nov, 2013 1 commit
  2. 08 Nov, 2013 1 commit
  3. 07 Nov, 2013 1 commit
  4. 05 Nov, 2013 2 commits
  5. 04 Nov, 2013 1 commit
    • Michael Albinus's avatar
      Fix problems found while writing a test suite. · b27cc9fc
      Michael Albinus authored
      * net/tramp.el (tramp-file-name-regexp-unified): Simplify.
      (tramp-file-name-for-operation): Use `tramp-tramp-file-p'.
      (tramp-handle-substitute-in-file-name): Let-bind `process-environment'
      to nil when running original file name handler.  Otherwise,
      there are problems with constructs like "$$FOO".
      
      * net/tramp-sh.el (tramp-do-copy-or-rename-file): Use correct prefix
      for `localname'.
      b27cc9fc
  6. 29 Oct, 2013 1 commit
  7. 28 Oct, 2013 1 commit
  8. 18 Oct, 2013 1 commit
  9. 17 Oct, 2013 1 commit
    • Michael Albinus's avatar
      Code cleanup. · 4c1f03ef
      Michael Albinus authored
      * net/tramp.el (tramp-debug-message): Do not check for connection
      buffer.
      (tramp-message): Use "vector" connection property.
      
      * net/tramp.el (tramp-rfn-eshadow-update-overlay)
      (tramp-equal-remote, tramp-eshell-directory-change)
      * net/tramp-adb.el (tramp-adb-handle-copy-file)
      (tramp-adb-handle-rename-file)
      * net/tramp-cmds.el (tramp-list-remote-buffers)
      (tramp-cleanup-connection, tramp-cleanup-this-connection)
      * net/tramp-compat.el (tramp-compat-process-running-p)
      * net/tramp-ftp.el (tramp-ftp-file-name-handler)
      * net/tramp-gvfs.el (tramp-gvfs-handle-copy-file)
      (tramp-gvfs-handle-rename-file)
      * net/tramp-sh.el (tramp-sh-handle-set-file-times)
      (tramp-set-file-uid-gid)
      * net/tramp-smb.el (tramp-smb-handle-copy-file)
      (tramp-smb-handle-rename-file): Use `tramp-tramp-file-p' instead
      of `file-remote-p'.
      
      * net/tramp.el (tramp-connectable-p, tramp-handle-file-remote-p)
      * net/tramp-gw.el (tramp-gw-gw-proc-sentinel)
      (tramp-gw-aux-proc-sentinel, tramp-gw-process-filter)
      (tramp-gw-open-network-stream): Suppress unrelated traces.
      
      * net/tramp-adb.el (tramp-adb-maybe-open-connection)
      * net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch)
      * net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
      * net/tramp-smb.el (tramp-smb-maybe-open-connection): Set "vector"
      connection property.
      
      * net/tramp-cache.el (top): Suppress traces when reading
      presistency file.
      
      * net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
      Refactor common code.  Improve debug message.
      (tramp-maybe-open-connection)
      * net/tramp-smb.el (tramp-smb-call-winexe): Do not request
      connection buffer too early.
      
      * net/tramp-smb.el (tramp-smb-actions-get-acl): New defconst, renamed
      from `tramp-smb-actions-with-acl'.
      (tramp-smb-actions-set-acl): New defconst.
      (tramp-smb-handle-copy-directory)
      (tramp-smb-action-get-acl): New defun, renamed from
      `tramp-smb-action-with-acl'.
      (tramp-smb-action-set-acl): New defun.
      (tramp-smb-handle-set-file-acl): Rewrite.
      4c1f03ef
  10. 16 Oct, 2013 2 commits
  11. 07 Oct, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-handle-insert-file-contents): Improve handling · f8f91d5d
      Michael Albinus authored
      of BEG and END.
      
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Use
      `tramp-handle-insert-file-contents'.
      (tramp-gvfs-handle-insert-file-contents): Remove function.
      
      * net/tramp-sh.el (tramp-sh-handle-insert-directory): Use
      `save-restriction' in order to keep markers.
      
      * net/trampver.el: Update release number.
      f8f91d5d
  12. 06 Oct, 2013 1 commit
  13. 04 Oct, 2013 1 commit
  14. 02 Oct, 2013 1 commit
    • Michael Albinus's avatar
      Sync with Tramp 2.2.8. · a2f93a5f
      Michael Albinus authored
      * net/tramp-cmds.el (tramp-bug, tramp-append-tramp-buffers):
      * net/tramp-cache.el (tramp-cache-print): Use `tramp-compat-funcall'.
      * net/trampver.el: Update release number.
      a2f93a5f
  15. 19 Sep, 2013 2 commits
    • Michael Albinus's avatar
      Fix previous patch. · e189e54e
      Michael Albinus authored
      e189e54e
    • Michael Albinus's avatar
      * net/tramp-sh.el (tramp-get-remote-id): Do not raise an error. · 85e05915
      Michael Albinus authored
      (tramp-get-remote-uid-with-id, tramp-get-remote-gid-with-id)
      (tramp-get-remote-python): New defuns.
      (tramp-get-remote-uid-with-perl)
      (tramp-get-remote-gid-with-perl): New defuns.  Perl code
      contributed by yary <not.com@gmail.com> (tiny change).
      (tramp-get-remote-uid-with-python)
      (tramp-get-remote-gid-with-python): New defuns.  Python code
      contributed by Andrey Tykhonov <atykhonov@gmail.com> (tiny change).
      (tramp-get-remote-uid, tramp-get-remote-gid): Use new defuns.
      85e05915
  16. 18 Sep, 2013 3 commits
  17. 13 Sep, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-check-proper-method-and-host): Rename it from · 35c3d36e
      Michael Albinus authored
      `tramp-check-proper-host'.  Check for a valid method name.
      
      * net/tramp-adb.el (tramp-adb-maybe-open-connection):
      * net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
      * net/tramp-sh.el (tramp-maybe-open-connection):
      * net/tramp-smb.el (tramp-smb-maybe-open-connection): Call it.
      
      * net/tramp-cache.el (tramp-cache-print): Don't print text properties
      also for hash values.
      35c3d36e
  18. 11 Sep, 2013 1 commit
    • Stefan Monnier's avatar
      Use define-derived-mode (and derived-mode-p). · 1b3b87df
      Stefan Monnier authored
      * lisp/play/snake.el (snake-mode):
      * lisp/play/mpuz.el (mpuz-mode):
      * lisp/play/landmark.el (lm-mode):
      * lisp/play/blackbox.el (blackbox-mode):
      * lisp/play/5x5.el (5x5-mode):
      * lisp/obsolete/options.el (Edit-options-mode):
      * lisp/net/quickurl.el (quickurl-list-mode):
      * lisp/net/newst-treeview.el (newsticker-treeview-mode):
      * lisp/mail/rmailsum.el (rmail-summary-mode):
      * lisp/mail/mspools.el (mspools-mode):
      * lisp/locate.el (locate-mode):
      * lisp/ibuffer.el (ibuffer-mode):
      * lisp/emulation/ws-mode.el (wordstar-mode):
      * lisp/emacs-lisp/debug.el (debugger-mode):
      * lisp/array.el (array-mode):
      * lisp/net/eudc.el (eudc-mode): Use define-derived-mode.
      * lisp/net/mairix.el (mairix-searches-mode-font-lock-keywords):
      Move initialization into declaration.
      (mairix-searches-mode): Use define-derived-mode.
      * lisp/net/eudc-hotlist.el (eudc-hotlist-mode): Use define-derived-mode.
      (eudc-edit-hotlist): Use dolist.
      * lisp/man.el (Man-mode-syntax-table): Rename from man-mode-syntax-table.
      (Man-mode): Use define-derived-mode.
      * lisp/info.el (Info-edit-mode-map): Rename from Info-edit-map.
      (Info-edit-mode): Use define-derived-mode.
      (Info-cease-edit): Use Info-mode.
      * lisp/eshell/esh-mode.el (eshell-mode-syntax-table): Move initialization
      into declaration.
      (eshell-mode): Use define-derived-mode.
      * lisp/chistory.el (command-history-mode-map): Rename from
      command-history-map.
      (command-history-mode): Use define-derived-mode.
      * lisp/calc/calc.el (calc-trail-mode-map): New var.
      (calc-trail-mode): Use define-derived-mode.
      (calc-trail-buffer): Set calc-main-buffer manually.
      * lisp/bookmark.el (bookmark-insert-annotation): New function.
      (bookmark-edit-annotation): Use it.
      (bookmark-edit-annotation-mode): Make it a proper major mode.
      (bookmark-send-edited-annotation): Use derived-mode-p.
      * lisp/arc-mode.el (archive-mode): Move kill-all-local-variables a tiny bit
      closer to its ideal place.  Use \' to match EOS.
      
      * lisp/cedet/semantic/grammar.el (semantic-grammar-mode): Use define-derived-mode.
      (semantic-grammar-mode-syntax-table): Rename from
      semantic-grammar-syntax-table.
      (semantic-grammar-mode-map): Rename from semantic-grammar-map.
      * lisp/cedet/data-debug.el (data-debug-mode-map): Rename from data-debug-map.
      (data-debug-mode): Use define-derived-mode.
      
      * lisp/gnus/score-mode.el (gnus-score-mode-map): Move initialization
      into declaration.
      (gnus-score-mode): Use define-derived-mode.
      * lisp/gnus/gnus-srvr.el (gnus-browse-mode): Use define-derived-mode.
      * lisp/gnus/gnus-kill.el (gnus-kill-file-mode-map): Move initialization
      into declaration.
      (gnus-kill-file-mode): Use define-derived-mode.
      (gnus-kill-file-edit-file, gnus-kill-file-enter-kill, gnus-kill):
      Use derived-mode-p.
      * lisp/gnus/gnus-group.el (gnus-group-mode): Use define-derived-mode.
      (gnus-group-setup-buffer, gnus-group-name-at-point)
      (gnus-group-make-web-group, gnus-group-enter-directory)
      (gnus-group-suspend): Use derived-mode-p.
      * lisp/gnus/gnus-cus.el (gnus-custom-mode): Use define-derived-mode.
      * lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-mode): Use define-derived-mode.
      * lisp/gnus/gnus-art.el (gnus-article-mode): Use define-derived-mode.
      (gnus-article-setup-buffer, gnus-article-prepare)
      (gnus-article-prepare-display, gnus-sticky-article)
      (gnus-kill-sticky-article-buffer, gnus-kill-sticky-article-buffers)
      (gnus-bind-safe-url-regexp, gnus-article-check-buffer)
      (gnus-article-read-summary-keys): Use derived-mode-p.
      1b3b87df
  19. 10 Sep, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-cleanup): Remove. Functionality added to · 6480194c
      Michael Albinus authored
      `tramp-cleanup-connection'.
      
      * net/tramp-cmds.el (tramp-cleanup-connection): Add optional
      parameters KEEP-DEBUG and KEEP-PASSWORD.
      
      * net/tramp.el (tramp-file-name-handler):
      * net/tramp-adb.el (tramp-adb-maybe-open-connection):
      * net/tramp-sh.el (tramp-open-connection-setup-interactive-shell)
      (tramp-maybe-open-connection):
      * net/tramp-smb.el (tramp-smb-maybe-open-connection): Use
      `tramp-cleanup-connection'.
      
      * net/tramp-sh.el (tramp-maybe-open-connection): Catch
      'uname-changed inside the progress reporter.
      6480194c
  20. 08 Sep, 2013 1 commit
    • Michael Albinus's avatar
      Improve compatibility with older Emacsen, and XEmacs. · af9ff9e8
      Michael Albinus authored
      * net/tramp.el (tramp-find-method, tramp-find-user): Call `propertize'
      only if it is bound.  It isn't for XEmacs.
      (with-tramp-progress-reporter): Do not let-bind `result'.  This
      yields to scoping errors in XEmacs.
      (tramp-handle-make-auto-save-file-name): New function, moved from
      tramp-sh.el.
      
      * net/tramp-adb.el (tramp-adb-file-name-handler-alist): Add handler
      for `make-auto-save-file-name'.
      (tramp-adb--gnu-switches-to-ash): Use
      `tramp-compat-replace-regexp-in-string'.
      
      * net/tramp-cache.el (tramp-cache-print): Call
      `substring-no-properties' only if it is bound.  It isn't for XEmacs.
      
      * net/tramp-cmds.el (tramp-bug): Call `propertize' only if it is
      bound.  It isn't for XEmacs.
      
      * net/tramp-compat.el (tramp-compat-copy-file): Catch
      `wrong-number-of-arguments' error.
      (tramp-compat-replace-regexp-in-string): New defun.
      
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add handler
      for `make-auto-save-file-name'.
      (tramp-gvfs-handle-copy-file): Use `tramp-compat-funcall' for
      `copy-file'.
      (tramp-gvfs-file-gvfs-monitor-file-process-filter)
      (tramp-gvfs-file-name): Use `tramp-compat-replace-regexp-in-string'.
      (tramp-synce-list-devices): Use `push' instead of `pushnew'.
      
      * net/tramp-gw.el (tramp-gw-open-network-stream): Use
      `tramp-compat-replace-regexp-in-string'.
      
      * net/tramp-sh.el (tramp-sh-file-name-handler-alist): Call
      `tramp-handle-make-auto-save-file-name'.
      (tramp-sh-handle-make-auto-save-file-name): Move to tramp.el.
      (tramp-sh-file-gvfs-monitor-dir-process-filter)
      (tramp-sh-file-inotifywait-process-filter): Use
      `tramp-compat-replace-regexp-in-string'.
      (tramp-compute-multi-hops): Use `push' instead of `pushnew'.
      
      * net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add handler
      for `make-auto-save-file-name'.
      (tramp-smb-handle-copy-directory): Call
      `tramp-compat-replace-regexp-in-string'.
      (tramp-smb-get-file-entries): Use `push' instead of `pushnew'.
      (tramp-smb-handle-copy-file): Improve error message.
      (tramp-smb-handle-rename-file): Rename directly only in case
      `newname' does not exist yet.  This is a restriction of smbclient.
      (tramp-smb-maybe-open-connection): Rerun the function only when
      `auth-sources' is non-nil.
      af9ff9e8
  21. 06 Sep, 2013 2 commits
    • Michael Albinus's avatar
      Format long lines. · 352d3bea
      Michael Albinus authored
      352d3bea
    • Michael Albinus's avatar
      Remove URL syntax. · 1486fa31
      Michael Albinus authored
      * net/tramp.el (tramp-syntax, tramp-prefix-format)
      (tramp-postfix-method-format, tramp-prefix-ipv6-format)
      (tramp-postfix-ipv6-format, tramp-prefix-port-format)
      (tramp-postfix-host-format, tramp-file-name-regexp)
      (tramp-completion-file-name-regexp)
      (tramp-completion-dissect-file-name)
      (tramp-handle-substitute-in-file-name): Remove 'url case.
      (tramp-file-name-regexp-url)
      (tramp-completion-file-name-regexp-url): Remove constants.
      1486fa31
  22. 05 Sep, 2013 1 commit
    • Daniel Hackney's avatar
      * lisp/dired-x.el: · 6c42fc3e
      Daniel Hackney authored
      * lisp/net/ange-ftp.el:
      * lisp/net/browse-url.el:
      * lisp/net/dbus.el:
      * lisp/net/eudc.el:
      * lisp/net/eudcb-ldap.el:
      * lisp/net/eww.el:
      * lisp/net/imap.el:
      * lisp/printing.el:
      * lisp/vc/ediff-diff.el:
      * lisp/vc/ediff-init.el:
      * lisp/vc/ediff-merg.el:
      * lisp/vc/ediff-mult.el:
      * lisp/vc/ediff-util.el:
      * lisp/vc/ediff-wind.el:
      * lisp/vc/ediff.el:
      * lisp/vc/emerge.el:
      * lisp/vc/pcvs.el:
      * vc/vc-annotate.el: Prefix unused arguments with `_' to silence
      byte compiler.  Remove some unused let-bound variables.
      6c42fc3e
  23. 03 Sep, 2013 3 commits
  24. 02 Sep, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp-compat.el (tramp-compat-user-error): Move it ... · 95beaef3
      Michael Albinus authored
      * net/tramp.el (tramp-user-error): ... here.
      (tramp-find-method, tramp-check-proper-host)
      (tramp-dissect-file-name, tramp-debug-message)
      (tramp-handle-shell-command):
      * net/tramp-adb.el (tramp-adb-handle-shell-command):
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler): Adapt callees.
      
      * net/tramp-cache.el (tramp-cache-print): Don't print text properties.
      95beaef3
  25. 29 Aug, 2013 2 commits
    • Stefan Monnier's avatar
      Misc changes to reduce use of `(lambda...); and other cleanups. · 40f7e0e8
      Stefan Monnier authored
      * lisp/cus-edit.el: Use lexical-binding.
      (customize-push-and-save, customize-apropos)
      (custom-buffer-create-internal): Use closures.
      * lisp/progmodes/bat-mode.el (bat-mode-syntax-table): "..." are strings.
      * lisp/progmodes/ada-xref.el: Use setq.
      * lisp/net/tramp.el (with-tramp-progress-reporter): Avoid setq.
      * lisp/dframe.el: Use lexical-binding.
      (dframe-frame-mode): Fix calling convention for hooks.  Use a closure.
      * lisp/speedbar.el (speedbar-frame-mode): Adjust call accordingly.
      * lisp/descr-text.el: Use lexical-binding.
      (describe-text-widget, describe-text-sexp, describe-property-list):
      Use closures.
      * lisp/comint.el (comint-history-isearch-push-state): Use a closure.
      * lisp/calculator.el: Use lexical-binding.
      (calculator-number-to-string): Make it work with lexical-binding.
      (calculator-funcall): Same and use cl-letf.
      40f7e0e8
    • Glenn Morris's avatar
      * lisp/net/eww.el (eww-mode-map): Lower-case menu bar entries look bad. · 6ee877c7
      Glenn Morris authored
      (If "eww" is supposed to be an acronym then maybe capitalize the whole thing.)
      6ee877c7
  26. 26 Aug, 2013 2 commits
    • Michael Albinus's avatar
      * minibuffer.el: Revert change from 2013-08-20. · 78fc2530
      Michael Albinus authored
      * net/tramp.el (tramp-find-method, tramp-find-user): Mark result
      with text property `tramp-default', if appropriate.
      (tramp-check-proper-host): New defun.
      (tramp-dissect-file-name): Do not check hostname.  Revert change
      of 2013-03-18.
      (tramp-backtrace): Make VEC-OR-PROC optional.
      
      * net/tramp-adb.el (tramp-adb-maybe-open-connection):
      * net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
      * net/tramp-sh.el (tramp-maybe-open-connection):
      * net/tramp-smb.el (tramp-smb-maybe-open-connection): Apply
      `tramp-check-proper-host'.
      78fc2530
    • Michael Albinus's avatar
      * net/tramp-sh.el (tramp-sh-handle-verify-visited-file-modtime): · df54bcbd
      Michael Albinus authored
      BUF can be optional.  (Bug#15186)
      df54bcbd
  27. 17 Aug, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp.el: · f95527c8
      Michael Albinus authored
      * net/tramp-adb.el:
      * net/tramp-cmds.el:
      * net/tramp-ftp.el:
      * net/tramp-gvfs.el:
      * net/tramp-gw.el:
      * net/tramp-sh.el: Don't wrap external variable declarations by
      `eval-when-compile'.
      f95527c8
  28. 16 Aug, 2013 3 commits