• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/emacs-93/emacs/lisp/eshell/

Lines Matching +defs:beginning +defs:of +defs:buffer

8 ;; This file is part of GNU Emacs.
11 ;; it under the terms of the GNU General Public License as published by
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;; You should have received a copy of the GNU General Public License
37 ;; keystrokes for navigating the buffer, and accessing the command
51 ;; Some of the other features of the command interaction mode are:
58 ;; @ <C-c C-t> can be used to truncate the buffer if it grows too
61 ;; @ <C-c C-r> will move point to the beginning of the output of the
96 This hook is only run if exiting actually kills the buffer."
101 "*If non-nil, kill the Eshell buffer on the `exit' command.
102 Otherwise, the buffer will simply be buried."
120 Each function is passed two arguments, which bounds the region of the
128 buffer. If `this', scroll only the selected window.
132 (const :tag "Scroll all windows showing the buffer" all)
139 buffer. If `this', scroll only the selected window. If `others',
145 (const :tag "Scroll all windows showing the buffer" all)
159 (defcustom eshell-buffer-maximum-lines 1024
162 number, if the function `eshell-truncate-buffer' is on
177 "*Functions to call before output is inserted into the buffer.
191 "*A function called from beginning of line to skip the prompt."
205 ;; these are only set to `nil' initially for the sake of the
345 (define-key eshell-command-map [(control ?t)] 'eshell-truncate-buffer)
391 ;; variables they define to be visible, since some of the core
392 ;; modules sometimes take advantage of their functionality if used.
432 (add-hook 'kill-buffer-hook
515 "A special version of `find-tag' that ignores read-onlyness."
576 "Goes to the beginning of line, then skips past the prompt, if any."
578 (beginning-of-line)
583 "Push a mark at the end of the last input text."
589 "Goto the start of the last command input.
597 "Print STRING to the eshell display buffer."
601 "This function outputs a newline if not at beginning of line."
637 (message "Expecting completion of delimeter %c ..."
671 retrieve old input, copies it to the end of the buffer, and sends it.
716 (setq input (buffer-substring-no-properties
724 (setq input (buffer-substring-no-properties
768 (let ((oprocbuf (if process (process-buffer process)
769 (current-buffer)))
776 (if (and string oprocbuf (buffer-name oprocbuf))
777 (let ((obuf (current-buffer))
779 (set-buffer oprocbuf)
783 (let ((buffer-read-only nil)
808 (set-buffer obuf)))))
812 (save-current-buffer
819 "Go to the end of buffer in all windows showing it.
823 `hilit-yank'. Depends on the value of
829 (current (current-buffer))
837 (when (and (eq (window-buffer window) current)
846 "Go to the end of buffer in all windows showing it.
847 Does not scroll if the current line is the last line in the buffer.
848 Depends on the value of `eshell-scroll-to-bottom-on-output' and
853 (current (current-buffer))
859 (if (eq (window-buffer window) current)
873 ;; ends at the bottom of the window.
881 (set-buffer current))))
886 (defun eshell-beginning-of-input ()
887 "Return the location of the start of the previous input."
890 (defun eshell-beginning-of-output ()
891 "Return the location of the end of the previous output block."
894 (defun eshell-end-of-output ()
895 "Return the location of the end of the previous output block."
905 (goto-char (eshell-beginning-of-output))
907 (delete-region (point) (eshell-end-of-output))))
918 "Display start of this batch of interpreter output at top of window.
919 Sets mark to the value of point when this command is run.
922 (goto-char (eshell-beginning-of-output))
925 (goto-char (eshell-beginning-of-input))
926 (line-beginning-position)))
928 (narrow-to-region (eshell-beginning-of-output)
929 (eshell-end-of-output)))
930 (eshell-end-of-output))
933 "Display start of this batch of interpreter output at top of window.
934 Sets mark to the value of point when this command is run.
949 "Put the end of the buffer at the bottom of the window.
950 When run interactively, widen the buffer first."
960 (buffer-substring (min (point) (mark))
963 (beginning-of-line)
967 (end-of-line)
968 (buffer-substring beg (point))))))
984 "Leave or kill the Eshell buffer, depending on `eshell-kill-on-exit'."
988 "Kill the current buffer (or bury it). Good-bye Eshell."
991 (bury-buffer)
992 (kill-buffer (current-buffer))))
994 (defun eshell-truncate-buffer ()
995 "Truncate the buffer to `eshell-buffer-maximum-lines'.
1003 (forward-line (- eshell-buffer-maximum-lines))
1004 (beginning-of-line)
1011 (message "Truncated buffer from %d to %d lines (%.1fk freed)"
1012 lines eshell-buffer-maximum-lines
1016 'eshell-truncate-buffer)
1020 Then send it to the process running in the current buffer."
1033 buffer's process if STRING contains a password prompt defined by
1040 (beginning-of-line)
1054 (beginning-of-line))
1064 (beginning-of-line)