1. 12 Sep, 2013 2 commits
    • Stefan Monnier's avatar
      * lisp/eshell/*.el: Use lexical-binding. · ae5e4c48
      Stefan Monnier authored
      * test/automated/eshell.el: Move from test/eshell.el.
      (eshell-test/for-loop, eshell-test/for-name-loop): New tests.
      
      Fixes: debbugs:15231
      ae5e4c48
    • Stefan Monnier's avatar
      Cleanup Eshell to rely less on dynamic scoping. · 170266d0
      Stefan Monnier authored
      * lisp/eshell/esh-opt.el (eshell-eval-using-options): Don't bind usage-msg,
      last-value, and ext-command here.  Bind `args' closer to `body'.
      (temp-args, last-value, usage-msg, ext-command, args): Don't defvar.
      (eshell--args): Declare new dynamic var.
      (eshell-do-opt): Add argument `args'.  Bind our own usage-msg,
      last-value, and ext-command.  Pass `args' to `body'.
      (eshell-process-args): Bind eshell--args.
      (eshell-set-option): Use eshell--args.
      * lisp/eshell/eshell.el (eshell): Use derived-mode-p.
      * lisp/eshell/esh-var.el (eshell-parse-variable): Use backquote.
      (eshell-parse-variable-ref): Remove unused vars `end' and `err'.
      (eshell-glob-function): Declare.
      * lisp/eshell/esh-util.el: Require cl-lib.
      (eshell-read-hosts-file): Avoid add-to-list.
      * lisp/eshell/esh-cmd.el (eshell-parse-lisp-argument): Remove unused var
      `err'.
      * lisp/eshell/em-unix.el (compilation-scroll-output, locate-history-list):
      Declare.
      (eshell/diff): Remove unused var `err'.
      * lisp/eshell/em-rebind.el (eshell-delete-backward-char): Remove unused arg
      `killflag'.
      * lisp/eshell/em-pred.el (eshell-parse-modifiers): Remove unused var `err'.
      * lisp/eshell/em-ls.el (eshell-ls-highlight-alist): Move defvars before
      first use.
      * lisp/eshell/em-glob.el (eshell-glob-matches, message-shown):
      Move declaration before first use.
      * lisp/eshell/em-alias.el (eshell-maybe-replace-by-alias): Use backquotes.
      * autorevert.el (auto-revert-notify-handler): Use `cl-dolist' since we
      rely on cl-return.
      170266d0
  2. 28 May, 2013 1 commit
  3. 26 Mar, 2013 1 commit
    • Aidan Gauland's avatar
      Added eshell-tramp module · 15e4ed9c
      Aidan Gauland authored
      * lisp/eshell/em-unix.el: Moved su and sudo to...
      * lisp/eshell/em-tramp.el: ...Eshell tramp module
      * doc/misc/eshell.texi: Updated manual to reflect changes.
      
      External su and sudo commands are now the default; the internal,
      TRAMP-using variants can still be used by enabling the eshell-tramp
      module.
      15e4ed9c
  4. 18 Feb, 2013 1 commit
    • Michael Albinus's avatar
      * eshell/em-unix.el (eshell/su): Require tramp. · c9bcc580
      Michael Albinus authored
      (eshell/sudo): Require tramp.  Remove now unnecessary check.
      
      * net/tramp-sh.el (tramp-sh-handle-start-file-process): Let-bind
      `tramp-current-connection' in order to avoid an error when several
      commands are invoked in a short time in eshell and friends.
      c9bcc580
  5. 01 Jan, 2013 1 commit
  6. 16 Nov, 2012 1 commit
  7. 09 Sep, 2012 1 commit
  8. 02 Sep, 2012 1 commit
  9. 16 Jul, 2012 1 commit
  10. 27 Jun, 2012 1 commit
    • Glenn Morris's avatar
      Replace eshell-defgroup with plain defgroup · 35ff222c
      Glenn Morris authored
      Borrowing a trick from vc-sccs.el, wrap the defgroup in a progn
      so that the whole thing ends up in the generated autoload file,
      esh-groups.el.
      
      * em-alias.el, em-banner.el, em-basic.el, em-cmpl.el, em-dirs.el:
      * em-glob.el, em-hist.el, em-ls.el, em-pred.el, em-prompt.el:
      * em-rebind.el, em-script.el, em-smart.el, em-term.el, em-unix.el:
      * em-xtra.el: Replace eshell-defgroup with (progn (defgroup.
      * eshell.el (eshell-defgroup): Remove alias.
      35ff222c
  11. 28 Feb, 2012 1 commit
  12. 28 Jan, 2012 1 commit
    • Chong Yidong's avatar
      Quote file name commands in eshell. · 93376c5b
      Chong Yidong authored
      * lisp/eshell/esh-arg.el (eshell-quote-argument): New function.
      
      * lisp/eshell/esh-ext.el (eshell-invoke-batch-file):
      * lisp/eshell/em-unix.el (eshell/cat, eshell/du): Use it to quote the
      first arg to eshell-parse-command.
      
      Fixes: debbugs:10523
      93376c5b
  13. 23 Jan, 2012 1 commit
  14. 11 Jan, 2012 1 commit
  15. 05 Jan, 2012 2 commits
  16. 05 Mar, 2011 2 commits
    • Glenn Morris's avatar
      Default all eshell hooks to nil (bug#5375) · d783d303
      Glenn Morris authored
      * eshell/esh-mode.el (eshell-kill-buffer-function): New function.
      (eshell-mode): Use eshell-kill-buffer-function.
      Run the -initialize functions independently of the -load-hooks.
      * eshell/esh-proc.el (eshell-kill-process-function): New function.
      (eshell-gather-process-output, eshell-sentinel)
      (eshell-interrupt-process, eshell-kill-process, eshell-quit-process):
      Use eshell-kill-process-function.
      * eshell/em-alias.el (eshell-alias-load-hook):
      * eshell/em-banner.el (eshell-banner-load-hook):
      * eshell/em-cmpl.el (eshell-cmpl-load-hook):
      * eshell/em-dirs.el (eshell-dirs-load-hook):
      * eshell/em-glob.el (eshell-glob-load-hook):
      * eshell/em-hist.el (eshell-hist-load-hook):
      * eshell/em-pred.el (eshell-pred-load-hook):
      * eshell/em-prompt.el (eshell-prompt-load-hook):
      * eshell/em-rebind.el (eshell-rebind-load-hook):
      * eshell/em-script.el (eshell-script-load-hook):
      * eshell/em-smart.el (eshell-smart-load-hook):
      * eshell/em-term.el (eshell-term-load-hook):
      * eshell/em-unix.el (eshell-unix-load-hook):
      * eshell/esh-arg.el (eshell-arg-load-hook):
      * eshell/esh-cmd.el (eshell-cmd-load-hook):
      * eshell/esh-ext.el (eshell-ext-load-hook):
      * eshell/esh-io.el (eshell-io-load-hook):
      * eshell/esh-mode.el (eshell-exit-hook):
      * eshell/esh-proc.el (eshell-proc-load-hook, eshell-kill-hook):
      * eshell/esh-var.el (eshell-var-load-hook):
      Set default hook values to nil.  (Bug#5375)
      d783d303
    • Glenn Morris's avatar
      Make eshell-for obsolete (replaced by dolist) · a9eeff78
      Glenn Morris authored
      * eshell/esh-util.el (eshell-for): Make it obsolete.
      * eshell/em-alias.el (eshell/alias, eshell-alias-completions):
      * eshell/em-dirs.el (eshell-save-some-last-dir):
      * eshell/em-hist.el (eshell-save-some-history, eshell-hist-parse-modifier):
      * eshell/em-ls.el (eshell-ls-dir, eshell-ls-files, eshell-ls-entries):
      * eshell/em-unix.el (eshell/cat, eshell/du, eshell/su):
      * eshell/esh-cmd.el (eshell-invoke-directly, eshell-do-eval, eshell/which):
      * eshell/esh-ext.el (eshell-find-interpreter):
      * eshell/esh-mode.el (eshell-mode):
      * eshell/esh-module.el (eshell-unload-extension-modules):
      * eshell/esh-proc.el (eshell-process-interact):
      * eshell/esh-test.el (eshell-test):
      * eshell/esh-util.el (eshell-flatten-list, eshell-winnow-list):
      * eshell/esh-var.el (eshell/env, eshell-environment-variables)
      (eshell-variables-list):
      * eshell/eshell.el (eshell-unload-all-modules):
      Replace eshell-for with dolist.
      a9eeff78
  17. 25 Jan, 2011 1 commit
  18. 02 Jan, 2011 1 commit
  19. 10 Nov, 2010 2 commits
    • Glenn Morris's avatar
      Replace some eshell functions that duplicate standard functions. · 73171bd4
      Glenn Morris authored
      * lisp/eshell/esh-util.el (eshell-time-less-p, eshell-time-to-seconds): Remove.
      (eshell-read-passwd, eshell-read-hosts): Use time-less-p.
      * lisp/eshell/esh-test.el (eshell-test, eshell-show-usage-metrics):
      * lisp/eshell/em-unix.el (eshell-show-elapsed-time, eshell/time):
      * lisp/eshell/em-pred.el (eshell-pred-file-time): Use float-time.
      * lisp/eshell/em-ls.el (eshell-ls-sort-entries): Use time-less-p.
      73171bd4
    • Glenn Morris's avatar
      Silence compilation of some shell files. · 13e7256f
      Glenn Morris authored
      * lisp/eshell/em-unix.el (eshell-remove-entries, eshell/rm)
      (eshell-shuffle-files, eshell-shorthand-tar-command)
      (eshell-mvcpln-template, eshell/mv, eshell/cp, eshell/ln):
      Prefix dynamic locals `interactive', `preview', `recursive', `verbose'.
      * lisp/eshell/em-glob.el (eshell-extended-glob, eshell-glob-entries):
      Prefix dynamic local variable `matches'.
      13e7256f
  20. 24 Oct, 2010 1 commit
  21. 25 Sep, 2010 1 commit
    • Glenn Morris's avatar
      Cosmetic doc fixes for eshell. · ec60da52
      Glenn Morris authored
      * eshell/em-alias.el, eshell/em-banner.el, eshell/em-basic.el:
      * eshell/em-cmpl.el, eshell/em-dirs.el, eshell/em-glob.el:
      * eshell/em-hist.el, eshell/em-ls.el, eshell/em-pred.el:
      * eshell/em-prompt.el, eshell/em-rebind.el, eshell/em-script.el:
      * eshell/em-smart.el, eshell/em-term.el, eshell/em-unix.el:
      * eshell/esh-cmd.el, eshell/esh-ext.el, eshell/esh-io.el:
      * eshell/esh-mode.el, eshell/esh-proc.el, eshell/esh-test.el:
      * eshell/esh-util.el, eshell/esh-var.el:
      Remove leading `*' from docs of faces and defcustoms.
      ec60da52
  22. 13 Jan, 2010 1 commit
  23. 03 Dec, 2009 1 commit
    • Michael Albinus's avatar
      Cleanup. · a09dc9bf
      Michael Albinus authored
      * 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.
      a09dc9bf
  24. 29 Nov, 2009 1 commit
  25. 27 Nov, 2009 1 commit
  26. 24 Nov, 2009 1 commit
    • Michael Albinus's avatar
      Improve handling of processes on remote hosts. · 605a20a9
      Michael Albinus authored
      * 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'.
      605a20a9
  27. 03 Nov, 2009 1 commit
    • Stefan Monnier's avatar
      * url-util.el (url-insert-entities-in-string): · 937e6a56
      Stefan Monnier authored
      * url-nfs.el (url-nfs-unescape):
      * url-ldap.el (url-ldap):
      * url-imap.el (url-imap):
      * url-cid.el (url-cid-gnus, url-cid): Use with-current-buffer.
      * erc.el (erc-display-line-1, erc-process-away):
      * erc-truncate.el (erc-truncate-buffer-to-size):
      Use with-current-buffer.
      * term/ns-win.el (ns-scroll-bar-move, ns-face-at-pos):
      * play/mpuz.el (mpuz-create-buffer):
      * play/landmark.el (lm-prompt-for-move, lm-print-wts, lm-print-smell)
      (lm-print-y,s,noise, lm-print-w0, lm-init):
      * play/gomoku.el (gomoku-prompt-for-move):
      * play/fortune.el (fortune-in-buffer):
      * play/dissociate.el (dissociated-press):
      * play/decipher.el (decipher-adjacency-list, decipher-display-regexp)
      (decipher-analyze-buffer, decipher-stats-buffer,decipher-stats-buffer):
      * mail/supercite.el (sc-eref-show):
      * mail/smtpmail.el (smtpmail-send-it):
      * mail/rmailsum.el (rmail-summary-next-labeled-message)
      (rmail-summary-previous-labeled-message, rmail-summary-wipe)
      (rmail-summary-undelete-many, rmail-summary-rmail-update)
      (rmail-summary-goto-msg, rmail-summary-expunge)
      (rmail-summary-get-new-mail, rmail-summary-search-backward)
      (rmail-summary-add-label, rmail-summary-output-menu)
      (rmail-summary-output-body):
      * mail/rfc822.el (rfc822-addresses):
      * mail/reporter.el (reporter-dump-variable, reporter-dump-state):
      * mail/mailpost.el (post-mail-send-it):
      * mail/hashcash.el (hashcash-generate-payment):
      * mail/feedmail.el (feedmail-run-the-queue)
      (feedmail-queue-send-edit-prompt-help-first)
      (feedmail-send-it-immediately, feedmail-give-it-to-buffer-eater)
      (feedmail-deduce-address-list):
      * eshell/esh-ext.el (eshell-remote-command):
      * eshell/em-unix.el (eshell-occur-mode-mouse-goto):
      * emulation/viper-util.el (viper-glob-unix-files, viper-save-setting)
      (viper-wildcard-to-regexp, viper-glob-mswindows-files)
      (viper-save-string-in-file, viper-valid-marker):
      * emulation/viper-keym.el (viper-toggle-key):
      * emulation/viper-ex.el (ex-expand-filsyms, viper-get-ex-file)
      (ex-edit, ex-global, ex-mark, ex-next-related-buffer, ex-quit)
      (ex-get-inline-cmd-args, ex-tag, ex-command, ex-compile):
      * emulation/viper-cmd.el (viper-exec-form-in-vi)
      (viper-exec-form-in-emacs, viper-brac-function):
      * emulation/viper.el (viper-delocalize-var):
      * emulation/vip.el (vip-mode, vip-get-ex-token, vip-ex, vip-get-ex-pat)
      (vip-get-ex-command, vip-get-ex-opt-gc, vip-get-ex-buffer)
      (vip-get-ex-count, vip-get-ex-file, ex-edit, ex-global, ex-mark)
      (ex-map, ex-unmap, ex-quit, ex-read, ex-tag, ex-command):
      * emulation/vi.el (vi-switch-mode, vi-ex-cmd):
      * emulation/edt.el (edt-electric-helpify):
      * emulation/cua-rect.el (cua--rectangle-aux-replace):
      * emulation/cua-gmrk.el (cua--insert-at-global-mark)
      (cua--delete-at-global-mark, cua--copy-rectangle-to-global-mark)
      (cua-indent-to-global-mark-column):
      * calendar/diary-lib.el (calendar-mark-1):
      * calendar/cal-hebrew.el (calendar-hebrew-mark-date-pattern):
      Use with-current-buffer.
      * emulation/viper.el (viper-delocalize-var): Use dolist.
      937e6a56
  28. 05 Jan, 2009 1 commit
  29. 07 Jun, 2008 1 commit
  30. 21 May, 2008 1 commit
  31. 06 May, 2008 1 commit
  32. 10 Apr, 2008 1 commit
  33. 07 Jan, 2008 1 commit
  34. 05 Dec, 2007 1 commit
  35. 17 Nov, 2007 1 commit
    • Dan Nicolaescu's avatar
      * eshell/esh-util.el (eshell-under-xemacs-p): Remove. · a3269bc4
      Dan Nicolaescu authored
      * eshell/esh-mode.el (eshell-mode-syntax-table)
      (command-running-p):
      * eshell/esh-ext.el (eshell-external-command):
      * eshell/esh-cmd.el (require):
      * eshell/em-unix.el (eshell-plain-locate-behavior):
      * eshell/em-cmpl.el (eshell-cmpl-initialize): Replace
      eshell-under-xemacs-p with (featurep 'xemacs).
      * eshell/esh-mode.el (characterp,char-int): Remove unused
      conditional defaliases.
      
      * pcomplete.el (pcomplete-event-matches-key-specifier-p): Rename
      from event-matches-key-specifier-p, define unconditionally.
      (event-basic-type): Remove unused defalias.
      (pcomplete-show-completions):
      Use pcomplete-event-matches-key-specifier-p.
      
      * mh-e.el (mh-xemacs-flag): Remove.
      (mh-min-colors-defined-flag):
      * mh-xface.el (mh-show-xface-function):
      * mh-utils.el (mh-colors-available-p):
      * mh-show.el (mh-show-mode):
      * mh-gnus.el (mh-gnus-local-map-property):
      * mh-folder.el (mh-folder-mode-map)
      (mh-remove-xemacs-horizontal-scrollbar, mh-folder-mode):
      * mh-comp.el (mh-insert-x-mailer): Replace uses of mh-xemacs-flag
      with (featurep 'xemacs).
      a3269bc4
  36. 15 Nov, 2007 1 commit