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. 23 May, 2013 1 commit
    • Glenn Morris's avatar
      Silence many eshell compilation warnings · f87b1284
      Glenn Morris authored
      * lisp/eshell/em-tramp.el: Adjust requires.
      (eshell-parse-command): Autoload.
      
      * lisp/eshell/em-xtra.el: Adjust requires.
      (eshell-parse-command): Autoload.
      
      * lisp/eshell/esh-ext.el: Adjust requires.
      (eshell-parse-command, eshell-close-handles): Autoload.
      
      * lisp/eshell/esh-io.el: Adjust requires.
      (eshell-output-filter): Autoload.
      
      * lisp/eshell/esh-util.el: No need to load tramp when compiling.
      (tramp-file-name-structure, ange-ftp-ls, ange-ftp-file-modtime): Declare.
      (eshell-parse-ange-ls): Require ange-ftp and tramp.
      
      * lisp/eshell/em-alias.el, lisp/eshell/em-banner.el, lisp/eshell/em-basic.el:
      * lisp/eshell/em-cmpl.el, lisp/eshell/em-glob.el, lisp/eshell/em-pred.el:
      * lisp/eshell/em-prompt.el, lisp/eshell/em-rebind.el, lisp/eshell/em-smart.el:
      * lisp/eshell/em-term.el, lisp/eshell/esh-arg.el, lisp/eshell/esh-mode.el:
      * lisp/eshell/esh-opt.el, lisp/eshell/esh-proc.el:
      * lisp/eshell/esh-var.el: Adjust requires.
      
      * lisp/eshell/eshell.el: Do not require esh-util twice.
      (eshell-add-input-to-history): Declare.
      (eshell-command): Check history module is active before using it.
      f87b1284
  3. 01 Jan, 2013 1 commit
  4. 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
  5. 11 Jan, 2012 1 commit
  6. 05 Jan, 2012 1 commit
  7. 15 Nov, 2011 1 commit
  8. 05 Mar, 2011 1 commit
    • 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
  9. 25 Jan, 2011 1 commit
  10. 15 Jan, 2011 1 commit
  11. 02 Jan, 2011 1 commit
  12. 23 Nov, 2010 1 commit
  13. 13 Jan, 2010 1 commit
  14. 04 Jul, 2009 1 commit
  15. 05 Jan, 2009 1 commit
  16. 26 Aug, 2008 1 commit
    • Juanma Barranquero's avatar
      Fix typos (sync from the trunk). · d36b11e2
      Juanma Barranquero authored
      * facemenu.el (facemenu-unlisted-faces): Fix obsolescence declaration.
      
      * hi-lock.el (hi-lock-mode): Fix typo in docstring.
      
      * icomplete.el (icomplete-compute-delay, icomplete-get-keys): Doc fixes.
        (icomplete-delay-completions-threshold): Fix typo in docstring.
      
      * speedbar.el (speedbar-stealthy-function-list)
        (speedbar-verbosity-level, speedbar-supported-extension-expressions)
        (speedbar-update-current-file, speedbar-add-indicator)
        (speedbar-tag-expand): Reflow docstrings.
        (speedbar-use-imenu-flag, speedbar-use-tool-tips-flag)
        (speedbar-ignored-directory-regexp, speedbar-file-unshown-regexp)
        (speedbar-file-regexp, speedbar-message, speedbar-item-info)
        (speedbar-files-item-info, speedbar-fetch-replacement-function)
        (speedbar-maybe-add-localized-support)
        (speedbar-generic-list-positioned-group-p, speedbar-insert-generic-list)
        (speedbar-extract-one-symbol, speedbar-recenter-to-top)
        (speedbar-recenter, speedbar-separator-face): Fix typos in docstrings.
        (speedbar-ignored-directory-expressions, speedbar-handle-delete-frame)
        (speedbar-show-info-under-mouse, speedbar-directory-buttons)
        (speedbar-check-vc-this-line, speedbar-files-line-directory)
        (speedbar-buffer-buttons, speedbar-buffer-buttons-temp)
        (speedbar-buffers-line-directory): Doc fixes.
      
      * tool-bar.el (tool-bar-add-item): Fix typo in docstring.
      
      * emacs-lisp/edebug.el (edebug-unwrap*, edebug-signal)
        (edebug-restore-status): Doc fixes.
        (edebug-gensym, edebug-top-level-nonstop, edebug-eval-display)
        (edebug-eval-result-list, edebug-eval-redisplay, edebug)
        (edebug-trace): Fix typos in docstrings.
      
      * emulation/tpu-edt.el (tpu-match-beginning, tpu-match-end)
        (tpu-check-match, tpu-goto-breadcrumb, tpu-reset-screen-size)
        (tpu-toggle-overwrite-mode, tpu-include, tpu-get, tpu-what-line)
        (tpu-insert-escape, tpu-insert-formfeed, tpu-end-define-macro-key)
        (tpu-check-search-case, tpu-select, tpu-unselect, tpu-trim-line-ends)
        (tpu-toggle-control-keys): Fix typos in docstrings.
        (tpu-kill-buffer): Doc fix.
        (tpu-make-file-buffer-list, tpu-toggle-regexp, tpu-cut)
        (tpu-append-region, tpu-delete-current-char, tpu-emacs-replace):
        Reflow docstrings.
      
      * eshell/em-smart.el (eshell-review-quick-commands): Doc fix.
      
      * eshell/esh-arg.el (eshell-quote-backslash): Fix typo in docstring.
      
      * play/solitaire.el (solitaire, solitaire-mode-map, solitaire-mode-hook)
        (solitaire-mode, solitaire, solitaire-solve): Fix typos in docstrings.
      
      * progmodes/gdb-ui.el (gdb-source-info): Fix typo in docstring.
      
      * progmodes/python.el (python-comment-line-p, python-blank-line-p)
        (python-skip-out): Doc fixes.
      d36b11e2
  17. 18 Jul, 2008 1 commit
  18. 17 Jul, 2008 1 commit
  19. 03 Jul, 2008 1 commit
    • Juanma Barranquero's avatar
      Typos, doc fixes, etc. · 92439579
      Juanma Barranquero authored
      * eshell/esh-arg.el (eshell-quote-backslash): Fix typo in docstring.
      (eshell-parse-argument-hook, eshell-special-chars-inside-quoting)
      (eshell-arg-load-hook, eshell-special-chars-outside-quoting):
      Remove spurious * in defcustom docstrings.
      
      * textmodes/fill.el (fill-paragraph): Fix typo in docstring.
      (fill-individual-varying-indent, colon-double-space, enable-kinsoku)
      (adaptive-fill-mode, adaptive-fill-first-line-regexp)
      (default-justification): Remove spurious * in defcustom docstrings.
      
      * textmodes/rst.el (rst, rst-line-homogeneous-p, rst-mode-abbrev-table)
      (rst-font-lock-keywords-function, rst-mode, rst-minor-mode)
      (rst-compare-decorations, rst-default-indent, rst-update-section)
      (rst-decoration-complete-p, rst-section-tree, rst-toc-insert-node)
      (rst-toc-insert-find-delete-contents, rst-toc-count-lines)
      (rst-toc-mode-goto-section, rst-faces, rst-level-face-base-color):
      Fix typos in docstrings.
      (rst-mode-lazy): Fix typo in docstring.	 Remove spurious *.
      (rst-adjust, rst-line-homogeneous-p, rst-suggest-new-decoration)
      (rst-get-decorations-around, rst-section-tree-point)
      (rst-font-lock-adornment-point): Reflow docstrings.
      (rst-get-decoration, rst-get-decoration-match, rst-adjust-decoration):
      Doc fixes.
      (rst-re-enumerations): Comment out.
      92439579
  20. 06 May, 2008 1 commit
  21. 10 Apr, 2008 1 commit
  22. 07 Jan, 2008 1 commit
  23. 05 Dec, 2007 1 commit
  24. 25 Jul, 2007 1 commit
  25. 21 Jan, 2007 1 commit
  26. 09 Dec, 2006 1 commit
  27. 06 Feb, 2006 1 commit
  28. 26 Aug, 2005 1 commit
  29. 01 Aug, 2005 1 commit
  30. 04 Jul, 2005 1 commit
  31. 16 Apr, 2004 1 commit
  32. 08 Sep, 2003 1 commit
  33. 01 Sep, 2003 1 commit
  34. 15 Jul, 2001 1 commit
  35. 10 May, 2001 1 commit
    • John Wiegley's avatar
      (eshell-parse-argument-hook): If a number is encountered as an · 8634b66a
      John Wiegley authored
      argument, don't convert it right away, but tag the first character of
      the string with the text properties `number', which signifies to
      `eshell-lisp-command' that the argument should be passed through
      `string-to-number' if it is actually used in the call to a Lisp
      function.
      8634b66a
  36. 16 Oct, 2000 1 commit
  37. 13 Oct, 2000 1 commit
  38. 26 Jun, 2000 1 commit
  39. 23 Jun, 2000 1 commit