Show
Ignore:
Timestamp:
09/30/06 09:12:06 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

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
  • trunk/lisp/simple.el

    r4166 r4169  
    129129  :version "22.1") 
    130130 
    131 (defcustom next-error-highlight 0.1 
     131(defcustom next-error-highlight 0.5 
    132132  "*Highlighting of locations in selected source buffers. 
    133133If number, highlight the locus in `next-error' face for given time in seconds. 
     
    142142  :version "22.1") 
    143143 
    144 (defcustom next-error-highlight-no-select 0.1 
    145   "*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'
    146146If number, highlight the locus in `next-error' face for given time in seconds. 
    147147If t, highlight the locus indefinitely until some other locus replaces it. 
     
    26602660(defcustom yank-excluded-properties 
    26612661  '(read-only invisible intangible field mouse-face help-echo local-map keymap 
    2662     yank-handler follow-link
     2662    yank-handler follow-link fontified
    26632663  "*Text properties to discard when yanking. 
    26642664The value should be a list of text properties to discard or t, 
     
    34973497                (<= ypos (- (frame-char-height)))) 
    34983498        (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)))) 
    35043502        (cond 
    35053503         ;; If last line of window is fully visible, move forward. 
     
    35083506         ;; If cursor is not in the bottom scroll margin, move forward. 
    35093507         ((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)))))) 
    35133513                  (min (- (window-text-height) scroll-margin 1) (1- vpos)))) 
    35143514          nil) 
     
    35603560  (let ((inhibit-point-motion-hooks t) 
    35613561        (opoint (point)) 
    3562         (forward (> arg 0))) 
     3562        (orig-arg arg)) 
    35633563    (unwind-protect 
    35643564        (progn 
     
    35933593                            nil))) 
    35943594            ;; Move by arg lines, but ignore invisible ones. 
    3595             (let (done
     3595            (let (done line-end
    35963596              (while (and (> arg 0) (not done)) 
    35973597                ;; If the following character is currently invisible, 
     
    35993599                (while (and (not (eobp)) (line-move-invisible-p (point))) 
    36003600                  (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)) 
    36033607                ;; If there's no invisibility here, move over the newline. 
    36043608                (cond 
     
    36583662            (t 
    36593663             (line-move-finish (or goal-column temporary-goal-column) 
    3660                                opoint forward)))))) 
     3664                               opoint (> orig-arg 0))))))) 
    36613665 
    36623666(defun line-move-finish (column opoint forward) 
     
    36673671 
    36683672      (let (new 
     3673            (old (point)) 
    36693674            (line-beg (save-excursion (beginning-of-line) (point))) 
    36703675            (line-end 
     
    36813686        ;; Move to the desired column. 
    36823687        (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 
    36833699        (setq new (point)) 
    36843700 
     
    37203736        (let ((inhibit-point-motion-hooks nil)) 
    37213737          (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)))) 
    37243747 
    37253748        ;; If all this moved us to a different line,