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

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

12 ;; This file is part of GNU Emacs.
15 ;; it under the terms of the GNU General Public License as published by
20 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
24 ;; You should have received a copy of the GNU General Public License
31 ;; This package emulates the mark, copy, cut and paste look-and-feel of motif
33 ;; It modifies the keybindings of the cursor keys and the next, prior,
35 ;; You can still get the old behaviour of cursor moving with the
48 ;; to add the -mark and -nomark functionality of cursor moving.
53 ;; Kevin Cutts <cutts@ukraine.corp.mot.com> added the beginning-of-buffer
54 ;; and end-of-buffer functions which I modified a little.
59 ;; concerning setting of this-command.
65 ;; Ok, some details about the idea of PC Selection mode:
91 "*Non-nil means don't generate error on scrolling past edge of buffer.
94 past the top or bottom of the buffer. This is annoying when selecting
118 "The values of the variables before PC Selection mode was toggled on.
120 for its own purposes. This alist holds the original values of the
156 ([S-end] . end-of-line-mark)
157 ([end] . end-of-line-nomark)
158 ([S-C-end] . end-of-buffer-mark)
159 ([C-end] . end-of-buffer-nomark)
160 ([S-M-end] . end-of-buffer-mark)
161 ([M-end] . end-of-buffer-nomark)
169 ([S-home] . beginning-of-line-mark)
170 ([home] . beginning-of-line-nomark)
171 ([S-C-home] . beginning-of-buffer-mark)
172 ([C-home] . beginning-of-buffer-nomark)
173 ([S-M-home] . beginning-of-buffer-mark)
174 ([M-home] . beginning-of-buffer-nomark)
222 ([C-escape] . electric-buffer-list))))
235 "The list of key bindings controlled by `pc-select-meta-moves-sexp'.
236 The bindings in the car of this list get installed if
237 `pc-select-meta-moves-sexp' is t, the bindings in the cadr of this
247 "The list of key bindings controlled by `pc-select-selection-keys-only'.
252 "Holds the old mapping of [M-delete] in the `function-key-map'.
295 On reaching end of buffer, stop and signal error."
303 If an edge of the buffer is reached, point is left there
326 "Ensure mark is active; move forward to end of paragraph.
330 \(if `paragraph-separate' matches it also) or is the first line of a paragraph.
331 A paragraph end is the beginning of a line which is not part of the paragraph
332 to which the end of the previous line belongs, or the end of the buffer."
341 column, or at the end of the line if it is not long enough.
342 If there is no line in the buffer after this one, behavior depends on the
343 value of `next-line-add-newlines'. If non-nil, it inserts a newline character
345 cursor to the end of the buffer \(if already at the end of the buffer, an error
357 (defun end-of-line-mark (&optional arg)
358 "Ensure mark is active; move point to end of current line.
360 If scan reaches end of buffer, stop there without error."
363 (end-of-line arg)
364 (setq this-command 'end-of-line))
385 (beginning-of-buffer (goto-char (point-min)))))
388 (defun end-of-buffer-mark (&optional arg)
389 "Ensure mark is active; move point to the end of the buffer.
390 With arg N, put point N/10 of the way from the end.
392 If the buffer is narrowed, this command uses the beginning and size
393 of the accessible part of the buffer.
403 ;; Avoid overflow for large buffer sizes!
408 ;; If we went to a place in the middle of the buffer,
409 ;; adjust it to the beginning of a line.
411 ;; If the end of the buffer is not already on the screen,
428 On reaching end of buffer, stop and signal error."
436 If an edge of the buffer is reached, point is left there
459 "Deactivate mark; move forward to end of paragraph.
463 \(if `paragraph-separate' matches it also) or is the first line of a paragraph.
464 A paragraph end is the beginning of a line which is not part of the paragraph
465 to which the end of the previous line belongs, or the end of the buffer."
474 column, or at the end of the line if it is not long enough.
475 If there is no line in the buffer after this one, behavior depends on the
476 value of `next-line-add-newlines'. If non-nil, it inserts a newline character
478 cursor to the end of the buffer (if already at the end of the buffer, an error
490 (defun end-of-line-nomark (&optional arg)
491 "Deactivate mark; move point to end of current line.
493 If scan reaches end of buffer, stop there without error."
496 (end-of-line arg)
497 (setq this-command 'end-of-line))
518 (beginning-of-buffer (goto-char (point-min)))))
521 (defun end-of-buffer-nomark (&optional arg)
522 "Deactivate mark; move point to the end of the buffer.
523 With arg N, put point N/10 of the way from the end.
525 If the buffer is narrowed, this command uses the beginning and size
526 of the accessible part of the buffer.
536 ;; Avoid overflow for large buffer sizes!
541 ;; If we went to a place in the middle of the buffer,
542 ;; adjust it to the beginning of a line.
544 ;; If the end of the buffer is not already on the screen,
562 On attempt to pass beginning or end of buffer, stop and signal error."
568 "Ensure mark is active; move backward until encountering the end of a word.
583 "Ensure mark is active; move backward to start of paragraph.
586 A paragraph start is the beginning of a line which is a
587 `first-line-of-paragraph' or which is ordinary text and follows a
588 paragraph-separating line; except: if the first real line of a
601 column, or at the end of the line if it is not long enough.
607 If you are thinking of using this in a Lisp program, consider using
615 (defun beginning-of-line-mark (&optional arg)
616 "Ensure mark is active; move point to beginning of current line.
618 If scan reaches end of buffer, stop there without error."
621 (beginning-of-line arg))
633 (end-of-buffer (goto-char (point-max)))))
636 (defun beginning-of-buffer-mark (&optional arg)
637 "Ensure mark is active; move point to the beginning of the buffer.
638 With arg N, put point N/10 of the way from the beginning.
640 If the buffer is narrowed, this command uses the beginning and size
641 of the accessible part of the buffer.
651 ;; Avoid overflow for large buffer sizes!
664 On attempt to pass beginning or end of buffer, stop and signal error."
670 "Deactivate mark; move backward until encountering the end of a word.
685 "Deactivate mark; move backward to start of paragraph.
688 A paragraph start is the beginning of a line which is a
689 `first-line-of-paragraph' or which is ordinary text and follows a
690 paragraph-separating line; except: if the first real line of a
703 column, or at the end of the line if it is not long enough.
713 (defun beginning-of-line-nomark (&optional arg)
714 "Deactivate mark; move point to beginning of current line.
716 If scan reaches end of buffer, stop there without error."
719 (beginning-of-line arg))
730 (end-of-buffer (goto-char (point-max)))))
733 (defun beginning-of-buffer-nomark (&optional arg)
734 "Deactivate mark; move point to the beginning of the buffer.
735 With arg N, put point N/10 of the way from the beginning.
737 If the buffer is narrowed, this command uses the beginning and size
738 of the accessible part of the buffer.
748 ;; Avoid overflow for large buffer sizes!
767 restore the previous value of that key binding from SAVED-MAP."
777 cdr of that cell with VAL. Otherwise, make a new cons cell
793 "Call the function MODE; save the old value of the variable MODE.
795 save the value of the variable MODE on `pc-select-saved-settings-alist'.
797 nil as an argument. If MODE-VAR is specified, save the value of the
798 variable MODE-VAR (instead of the value of the variable MODE) on
807 "Restore the previous value of the variable VAR.
816 "Restore the previous state (either on or off) of the minor mode MODE.
817 Look up the value of the variable MODE on `pc-select-saved-settings-alist'.
818 If the value is non-nil, call the function MODE with an argument of
819 1, otherwise call it with an argument of -1."
834 which modify the status of the mark.
851 HOME moves to beginning of line, disabling the mark.
852 S-HOME moves to beginning of line, leaving the mark behind.
853 With Ctrl or Meta, these keys move to beginning of buffer instead.
855 END moves to end of line, disabling the mark.
856 S-END moves to end of line, leaving the mark behind.
857 With Ctrl or Meta, these keys move to end of buffer instead.
930 ;; do not clobber the values of the variables that were