From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mikiya Matsuzaka" Newsgroups: gmane.emacs.devel Subject: Re: Low-stress useful project Date: Sat, 12 Aug 2006 16:28:32 +0900 Message-ID: <001e01c6bde0$ead3c970$1501a8c0@kodama1> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1155367758 23309 80.91.229.2 (12 Aug 2006 07:29:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 12 Aug 2006 07:29:18 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 12 09:29:17 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GBnvo-0003XY-Qv for ged-emacs-devel@m.gmane.org; Sat, 12 Aug 2006 09:29:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GBnvo-0005vT-4h for ged-emacs-devel@m.gmane.org; Sat, 12 Aug 2006 03:29:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GBnvZ-0005vO-JH for emacs-devel@gnu.org; Sat, 12 Aug 2006 03:29:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GBnvY-0005uU-9a for emacs-devel@gnu.org; Sat, 12 Aug 2006 03:29:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GBnvY-0005uR-5k for emacs-devel@gnu.org; Sat, 12 Aug 2006 03:29:00 -0400 Original-Received: from [220.111.47.140] (helo=smtp.tiara.ocn.ne.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GBo0q-0000jj-Pt for emacs-devel@gnu.org; Sat, 12 Aug 2006 03:34:29 -0400 Original-Received: from kodama1 (p1162-ipbf413osakakita.osaka.ocn.ne.jp [222.147.164.162]) by smtp.tiara.ocn.ne.jp (Postfix) with SMTP id E72072DD0 for ; Sat, 12 Aug 2006 16:28:39 +0900 (JST) Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:58308 Archived-At: Eshell.info has 'Function and Variable Index' section, but almost empty. This means we must read the source code to customize Eshell. I invoked grep command to list all interactive commands of eshell, and edited its output. The list follows. I hope somebody does the list of variables. ------------------------------------------------------------------------ (defun eshell (&optional arg) "Create an interactive Eshell buffer. The buffer used for Eshell sessions is determined by the value of `eshell-buffer-name'. If there is already an Eshell session active in that buffer, Emacs will simply switch to it. Otherwise, a new session will begin. A numeric prefix arg (as in `C-u 42 M-x eshell RET') switches to the session with that number, creating it if necessary. A nonnumeric prefix arg means to create a new session. Returns the buffer selected (or created)." (interactive "P") (defun eshell-command (&optional command arg) "Execute the Eshell command string COMMAND. With prefix ARG, insert output into the current buffer at point." (interactive) (defun eshell-report-bug (topic) "Report a bug in Eshell. Prompts for the TOPIC. Leaves you in a mail buffer. Please include any configuration details that might be involved." (interactive "sBug Subject: ") (defun eshell-insert-envvar (envvar-name) "Insert ENVVAR-NAME into the current buffer at point." (interactive (list (read-envvar-name "Name of environment variable: " t))) (defun eshell-test-goto-func () "Jump to the function that defines a particular test." (interactive) (defun eshell-run-one-test (&optional arg) "Jump to the function that defines a particular test." (interactive "P") (defun eshell-test (&optional arg) "Test Eshell to verify that it works as expected." (interactive "P") (defun eshell-insert-process (process) "Insert the name of PROCESS into the current buffer at point." (interactive (list (get-process (eshell-read-process-name "Name of process: ")))) (defun eshell-interrupt-process () "Interrupt a process." (interactive) (defun eshell-kill-process () "Kill a process." (interactive) (defun eshell-quit-process () "Send quit signal to process." (interactive) (defun eshell-send-eof-to-process () "Send EOF to process." (interactive) (defun eshell-toggle-direct-send () (interactive) (defun eshell-self-insert-command (N) (interactive "i") (defun eshell-find-tag (&optional tagname next-p regexp-p) "A special version of `find-tag' that ignores read-onlyness." (interactive) (defun eshell-forward-argument (&optional arg) "Move forward ARG arguments." (interactive "p") (eshell-move-argument (point-max) 'forward-char 'arg-end arg)) (defun eshell-backward-argument (&optional arg) "Move backward ARG arguments." (interactive "p") (defun eshell-repeat-argument (&optional arg) (interactive "p") (defun eshell-bol () "Goes to the beginning of line, then skips past the prompt, if any." (interactive) (defun eshell-queue-input (&optional use-region) "Queue the current input text for execution by Eshell. Particularly, don't send the text to the current process, even if it's waiting for input." (interactive "P") (defun eshell-send-input (&optional use-region queue-p no-newline) "Send the input received to Eshell for parsing and processing. After `eshell-last-output-end', sends all text from that marker to point as input. Before that marker, calls `eshell-get-old-input' to retrieve old input, copies it to the end of the buffer, and sends it. If USE-REGION is non-nil, the current region (between point and mark) will be used as input. If QUEUE-P is non-nil, input will be queued until the next prompt, rather than sent to the currently active process. If no process, the input is processed immediately. If NO-NEWLINE is non-nil, the input is sent without an implied final newline." (interactive "P") (defun eshell-kill-output () "Kill all output from interpreter since last input. Does not delete the prompt." (interactive) (defun eshell-show-output (&optional arg) "Display start of this batch of interpreter output at top of window. Sets mark to the value of point when this command is run. With a prefix argument, narrows region to last command output." (interactive "P") (defun eshell-mark-output (&optional arg) "Display start of this batch of interpreter output at top of window. Sets mark to the value of point when this command is run. With a prefix argument, narrows region to last command output." (interactive "P") (defun eshell-kill-input () "Kill all text from last stuff output by interpreter to point." (interactive) (defun eshell-show-maximum-output (&optional interactive) "Put the end of the buffer at the bottom of the window. When run interactively, widen the buffer first." (interactive "p") (defun eshell-copy-old-input () "Insert after prompt old input at point as new input to be edited." (interactive) (defun eshell-life-is-too-much () "Kill the current buffer (or bury it). Good-bye Eshell." (interactive) (defun eshell-truncate-buffer () "Truncate the buffer to `eshell-buffer-maximum-lines'. This function could be on `eshell-output-filter-functions' or bound to a key." (interactive) (defun eshell-send-invisible (str) "Read a string without echoing. Then send it to the process running in the current buffer." (interactive "P") ; Defeat snooping via C-x ESC ESC (defun eshell-insert-buffer-name (buffer-name) "Insert BUFFER-NAME into the current buffer at point." (interactive "BName of buffer: ") (defun eshell-occur-mode-goto-occurrence () "Go to the occurrence the current line describes." (interactive) (defun eshell-occur-mode-mouse-goto (event) "In Occur mode, go to the occurrence whose line you click on." (interactive "e") (defun eshell-diff-quit () "Restore the window configuration previous to diff'ing." (interactive) (defun eshell-smart-goto-end () "Like `end-of-buffer', but do not push a mark." (interactive) (defun eshell-source-file (file &optional args subcommand-p) "Execute a series of Eshell commands in FILE, passing ARGS. Comments begin with '#'." (interactive "f") (defun eshell-lock-local-map (&optional arg) "Lock or unlock the current local keymap. Within a prefix arg, set the local keymap to its normal value, and lock it at that." (interactive "P") (defun eshell-delete-backward-char (n &optional killflag) "Delete the last character, unless it's part of the output." (interactive "P") (defun eshell-delchar-or-maybe-eof (arg) "Delete ARG characters forward or send an EOF to subprocess. Sends an EOF only if point is at the end of the buffer and there is no input." (interactive "p") (defun eshell-backward-matching-input (regexp arg) "Search backward through buffer for match for REGEXP. Matches are searched for on lines that match `eshell-prompt-regexp'. With prefix argument N, search for Nth previous match. If N is negative, find the next or Nth next match." (interactive (eshell-regexp-arg "Backward input matching (regexp): ")) (defun eshell-forward-matching-input (regexp arg) "Search forward through buffer for match for REGEXP. Matches are searched for on lines that match `eshell-prompt-regexp'. With prefix argument N, search for Nth following match. If N is negative, find the previous or Nth previous match." (interactive (eshell-regexp-arg "Forward input matching (regexp): ")) (defun eshell-next-prompt (n) "Move to end of Nth next prompt in the buffer. See `eshell-prompt-regexp'." (interactive "p") (defun eshell-previous-prompt (n) "Move to end of Nth previous prompt in the buffer. See `eshell-prompt-regexp'." (interactive "p") (defun eshell-display-predicate-help () (interactive) (defun eshell-display-modifier-help () (interactive) (defun eshell-list-history () "List in help buffer the buffer's input history." (interactive) (defun eshell-get-next-from-history () "After fetching a line from input history, this fetches the next. In other words, this recalls the input line after the line you recalled last. You can use this to repeat a sequence of input lines." (interactive) (defun eshell-previous-input (arg) "Cycle backwards through input history." (interactive "*p") (defun eshell-next-input (arg) "Cycle forwards through input history." (interactive "*p") (defun eshell-previous-matching-input (regexp arg) "Search backwards through input history for match for REGEXP. \(Previous history elements are earlier commands.) With prefix argument N, search for Nth previous match. If N is negative, find the next or Nth next match." (interactive (eshell-regexp-arg "Previous input matching (regexp): ")) (defun eshell-next-matching-input (regexp arg) "Search forwards through input history for match for REGEXP. \(Later history elements are more recent commands.) With prefix argument N, search for Nth following match. If N is negative, find the previous or Nth previous match." (interactive (eshell-regexp-arg "Next input matching (regexp): ")) (defun eshell-previous-matching-input-from-input (arg) "Search backwards through input history for match for current input. \(Previous history elements are earlier commands.) With prefix argument N, search for Nth previous match. If N is negative, search forwards for the -Nth following match." (interactive "p") (defun eshell-next-matching-input-from-input (arg) "Search forwards through input history for match for current input. \(Following history elements are more recent commands.) With prefix argument N, search for Nth following match. If N is negative, search backwards for the -Nth previous match." (interactive "p") (defun eshell-isearch-backward (&optional invert) "Do incremental regexp search backward through past commands." (interactive) (defun eshell-isearch-repeat-backward (&optional invert) "Do incremental regexp search backward through past commands." (interactive) (defun eshell-isearch-forward () "Do incremental regexp search backward through past commands." (interactive) (defun eshell-isearch-repeat-forward () "Do incremental regexp search backward through past commands." (interactive) (defun eshell-isearch-cancel () (interactive) (defun eshell-isearch-abort () (interactive) (defun eshell-isearch-delete-char () (interactive) (defun eshell-isearch-return () (interactive) (defun eshell-completion-help () (interactive) ------------------------------------------------------------------------.