emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/gnus/gnus-salt.el


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/lisp/gnus/gnus-salt.el
Date: Mon, 06 Sep 2004 23:52:42 -0400

Index: emacs/lisp/gnus/gnus-salt.el
diff -c emacs/lisp/gnus/gnus-salt.el:1.9 emacs/lisp/gnus/gnus-salt.el:1.10
*** emacs/lisp/gnus/gnus-salt.el:1.9    Sat Sep  4 13:13:43 2004
--- emacs/lisp/gnus/gnus-salt.el        Tue Sep  7 03:47:29 2004
***************
*** 230,236 ****
    (let* ((echo-keystrokes 0)
         (start-posn (event-start start-event))
         (start-point (posn-point start-posn))
!        (start-line (1+ (count-lines 1 start-point)))
         (start-window (posn-window start-posn))
         (bounds (gnus-window-edges start-window))
         (top (nth 1 bounds))
--- 230,236 ----
    (let* ((echo-keystrokes 0)
         (start-posn (event-start start-event))
         (start-point (posn-point start-posn))
!          (start-line (1+ (count-lines (point-min) start-point)))
         (start-window (posn-window start-posn))
         (bounds (gnus-window-edges start-window))
         (top (nth 1 bounds))
***************
*** 266,282 ****
             ;; Are we moving within the original window?
             ((and (eq (posn-window end) start-window)
                   (integer-or-marker-p end-point))
!       ;; Go to START-POINT first, so that when we move to END-POINT,
              ;; if it's in the middle of intangible text,
              ;; point jumps in the direction away from START-POINT.
              (goto-char start-point)
              (goto-char end-point)
              (gnus-pick-article)
              ;; In case the user moved his mouse really fast, pick
!           ;; articles on the line between this one and the last one.
!             (let* ((this-line (1+ (count-lines 1 end-point)))
                     (min-line (min this-line start-line))
                     (max-line (max this-line start-line)))
                (while (< min-line max-line)
                  (goto-line min-line)
                  (gnus-pick-article)
--- 266,283 ----
             ;; Are we moving within the original window?
             ((and (eq (posn-window end) start-window)
                   (integer-or-marker-p end-point))
!             ;; Go to START-POINT first, so that when we move to END-POINT,
              ;; if it's in the middle of intangible text,
              ;; point jumps in the direction away from START-POINT.
              (goto-char start-point)
              (goto-char end-point)
              (gnus-pick-article)
              ;; In case the user moved his mouse really fast, pick
!             ;; articles on the line between this one and the last one.
!             (let* ((this-line (1+ (count-lines (point-min) end-point)))
                     (min-line (min this-line start-line))
                     (max-line (max this-line start-line)))
+               ;; Why not use `forward-line'?  --Stef
                (while (< min-line max-line)
                  (goto-line min-line)
                  (gnus-pick-article)
***************
*** 787,793 ****
          (setq beg (point))
          (forward-char -1)
          ;; Draw "-" lines leftwards.
!         (while (and (> (point) 1)
                      (eq (char-after (1- (point))) ? ))
            (delete-char -1)
            (insert (car gnus-tree-parent-child-edges))
--- 788,794 ----
          (setq beg (point))
          (forward-char -1)
          ;; Draw "-" lines leftwards.
!         (while (and (not (bobp))
                      (eq (char-after (1- (point))) ? ))
            (delete-char -1)
            (insert (car gnus-tree-parent-child-edges))
***************
*** 858,864 ****
                (gnus-extent-detached-p gnus-selected-tree-overlay))
        ;; Create a new overlay.
        (gnus-overlay-put
!        (setq gnus-selected-tree-overlay (gnus-make-overlay 1 2))
         'face gnus-selected-tree-face))
        ;; Move the overlay to the article.
        (gnus-move-overlay
--- 859,866 ----
                (gnus-extent-detached-p gnus-selected-tree-overlay))
        ;; Create a new overlay.
        (gnus-overlay-put
!        (setq gnus-selected-tree-overlay
!              (gnus-make-overlay (point-min) (1+ (point-min))))
         'face gnus-selected-tree-face))
        ;; Move the overlay to the article.
        (gnus-move-overlay
***************
*** 1062,1066 ****
  
  (provide 'gnus-salt)
  
! ;;; arch-tag: 35449164-77b3-4398-bcbd-a2e3e998f810
  ;;; gnus-salt.el ends here
--- 1064,1068 ----
  
  (provide 'gnus-salt)
  
! ;; arch-tag: 35449164-77b3-4398-bcbd-a2e3e998f810
  ;;; gnus-salt.el ends here




reply via email to

[Prev in Thread] Current Thread [Next in Thread]