Changeset 4169 for trunk/lisp/simple.el
- Timestamp:
- 09/30/06 09:12:06 (2 years ago)
- Files:
-
- trunk/lisp (modified) (1 prop)
- trunk/lisp/simple.el (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp
- Property svn:ignore changed from
*.elc
MANIFEST
Makefile
Makefile.unix
makefile
elc.tar.gz
cus-load.el
finder-inf.el
subdirs.el
loaddefs.el
to
*.elc
MANIFEST
Makefile
Makefile.unix
makefile
elc.tar.gz
cus-load.el
finder-inf.el
subdirs.el
loaddefs.el
pre-mh-loaddefs.el-CMD
- Property svn:ignore changed from
trunk/lisp/simple.el
r4166 r4169 129 129 :version "22.1") 130 130 131 (defcustom next-error-highlight 0. 1131 (defcustom next-error-highlight 0.5 132 132 "*Highlighting of locations in selected source buffers. 133 133 If number, highlight the locus in `next-error' face for given time in seconds. … … 142 142 :version "22.1") 143 143 144 (defcustom next-error-highlight-no-select 0. 1145 "*Highlighting of locations in non-selected source buffers.144 (defcustom next-error-highlight-no-select 0.5 145 "*Highlighting of locations in `next-error-no-select'. 146 146 If number, highlight the locus in `next-error' face for given time in seconds. 147 147 If t, highlight the locus indefinitely until some other locus replaces it. … … 2660 2660 (defcustom yank-excluded-properties 2661 2661 '(read-only invisible intangible field mouse-face help-echo local-map keymap 2662 yank-handler follow-link )2662 yank-handler follow-link fontified) 2663 2663 "*Text properties to discard when yanking. 2664 2664 The value should be a list of text properties to discard or t, … … 3497 3497 (<= ypos (- (frame-char-height)))) 3498 3498 (unless lh 3499 (let* ((wend (window-end nil t)) 3500 (evis (or (pos-visible-in-window-p wend nil t) 3501 (pos-visible-in-window-p (1- wend) nil t)))) 3502 (setq rbot (nth 3 evis) 3503 vpos (nth 5 evis)))) 3499 (let ((wend (pos-visible-in-window-p t nil t))) 3500 (setq rbot (nth 3 wend) 3501 vpos (nth 5 wend)))) 3504 3502 (cond 3505 3503 ;; If last line of window is fully visible, move forward. … … 3508 3506 ;; If cursor is not in the bottom scroll margin, move forward. 3509 3507 ((and (> vpos 0) 3510 (< (setq ppos (posn-at-point) 3511 py (cdr (or (posn-actual-col-row ppos) 3512 (posn-col-row ppos)))) 3508 (< (setq py 3509 (or (nth 1 (window-line-height)) 3510 (let ((ppos (posn-at-point))) 3511 (cdr (or (posn-actual-col-row ppos) 3512 (posn-col-row ppos)))))) 3513 3513 (min (- (window-text-height) scroll-margin 1) (1- vpos)))) 3514 3514 nil) … … 3560 3560 (let ((inhibit-point-motion-hooks t) 3561 3561 (opoint (point)) 3562 ( forward (> arg 0)))3562 (orig-arg arg)) 3563 3563 (unwind-protect 3564 3564 (progn … … 3593 3593 nil))) 3594 3594 ;; Move by arg lines, but ignore invisible ones. 3595 (let (done )3595 (let (done line-end) 3596 3596 (while (and (> arg 0) (not done)) 3597 3597 ;; If the following character is currently invisible, … … 3599 3599 (while (and (not (eobp)) (line-move-invisible-p (point))) 3600 3600 (goto-char (next-char-property-change (point)))) 3601 ;; Now move a line. 3602 (end-of-line) 3601 ;; Move a line. 3602 ;; We don't use `end-of-line', since we want to escape 3603 ;; from field boundaries ocurring exactly at point. 3604 (let ((inhibit-field-text-motion t)) 3605 (setq line-end (line-end-position))) 3606 (goto-char (constrain-to-field line-end (point) t t)) 3603 3607 ;; If there's no invisibility here, move over the newline. 3604 3608 (cond … … 3658 3662 (t 3659 3663 (line-move-finish (or goal-column temporary-goal-column) 3660 opoint forward))))))3664 opoint (> orig-arg 0))))))) 3661 3665 3662 3666 (defun line-move-finish (column opoint forward) … … 3667 3671 3668 3672 (let (new 3673 (old (point)) 3669 3674 (line-beg (save-excursion (beginning-of-line) (point))) 3670 3675 (line-end … … 3681 3686 ;; Move to the desired column. 3682 3687 (line-move-to-column column) 3688 3689 ;; Corner case: suppose we start out in a field boundary in 3690 ;; the middle of a continued line. When we get to 3691 ;; line-move-finish, point is at the start of a new *screen* 3692 ;; line but the same text line; then line-move-to-column would 3693 ;; move us backwards. Test using C-n with point on the "x" in 3694 ;; (insert "a" (propertize "x" 'field t) (make-string 89 ?y)) 3695 (and forward 3696 (< (point) old) 3697 (goto-char old)) 3698 3683 3699 (setq new (point)) 3684 3700 … … 3720 3736 (let ((inhibit-point-motion-hooks nil)) 3721 3737 (goto-char 3722 (constrain-to-field new opoint nil t 3723 'inhibit-line-move-field-capture))) 3738 ;; Ignore field boundaries if the initial and final 3739 ;; positions have the same `field' property, even if the 3740 ;; fields are non-contiguous. This seems to be "nicer" 3741 ;; behavior in many situations. 3742 (if (eq (get-char-property new 'field) 3743 (get-char-property opoint 'field)) 3744 new 3745 (constrain-to-field new opoint t t 3746 'inhibit-line-move-field-capture)))) 3724 3747 3725 3748 ;; If all this moved us to a different line,
