aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/gnus/gnus-salt.el16
1 files changed, 9 insertions, 7 deletions
diff --git a/lisp/gnus/gnus-salt.el b/lisp/gnus/gnus-salt.el
index d9720c819b2..0f4984112f5 100644
--- a/lisp/gnus/gnus-salt.el
+++ b/lisp/gnus/gnus-salt.el
@@ -230,7 +230,7 @@ This must be bound to a button-down mouse event."
230 (let* ((echo-keystrokes 0) 230 (let* ((echo-keystrokes 0)
231 (start-posn (event-start start-event)) 231 (start-posn (event-start start-event))
232 (start-point (posn-point start-posn)) 232 (start-point (posn-point start-posn))
233 (start-line (1+ (count-lines 1 start-point))) 233 (start-line (1+ (count-lines (point-min) start-point)))
234 (start-window (posn-window start-posn)) 234 (start-window (posn-window start-posn))
235 (bounds (gnus-window-edges start-window)) 235 (bounds (gnus-window-edges start-window))
236 (top (nth 1 bounds)) 236 (top (nth 1 bounds))
@@ -266,17 +266,18 @@ This must be bound to a button-down mouse event."
266 ;; Are we moving within the original window? 266 ;; Are we moving within the original window?
267 ((and (eq (posn-window end) start-window) 267 ((and (eq (posn-window end) start-window)
268 (integer-or-marker-p end-point)) 268 (integer-or-marker-p end-point))
269 ;; Go to START-POINT first, so that when we move to END-POINT, 269 ;; Go to START-POINT first, so that when we move to END-POINT,
270 ;; if it's in the middle of intangible text, 270 ;; if it's in the middle of intangible text,
271 ;; point jumps in the direction away from START-POINT. 271 ;; point jumps in the direction away from START-POINT.
272 (goto-char start-point) 272 (goto-char start-point)
273 (goto-char end-point) 273 (goto-char end-point)
274 (gnus-pick-article) 274 (gnus-pick-article)
275 ;; In case the user moved his mouse really fast, pick 275 ;; In case the user moved his mouse really fast, pick
276 ;; articles on the line between this one and the last one. 276 ;; articles on the line between this one and the last one.
277 (let* ((this-line (1+ (count-lines 1 end-point))) 277 (let* ((this-line (1+ (count-lines (point-min) end-point)))
278 (min-line (min this-line start-line)) 278 (min-line (min this-line start-line))
279 (max-line (max this-line start-line))) 279 (max-line (max this-line start-line)))
280 ;; Why not use `forward-line'? --Stef
280 (while (< min-line max-line) 281 (while (< min-line max-line)
281 (goto-line min-line) 282 (goto-line min-line)
282 (gnus-pick-article) 283 (gnus-pick-article)
@@ -787,7 +788,7 @@ Two predefined functions are available:
787 (setq beg (point)) 788 (setq beg (point))
788 (forward-char -1) 789 (forward-char -1)
789 ;; Draw "-" lines leftwards. 790 ;; Draw "-" lines leftwards.
790 (while (and (> (point) 1) 791 (while (and (not (bobp))
791 (eq (char-after (1- (point))) ? )) 792 (eq (char-after (1- (point))) ? ))
792 (delete-char -1) 793 (delete-char -1)
793 (insert (car gnus-tree-parent-child-edges)) 794 (insert (car gnus-tree-parent-child-edges))
@@ -858,7 +859,8 @@ Two predefined functions are available:
858 (gnus-extent-detached-p gnus-selected-tree-overlay)) 859 (gnus-extent-detached-p gnus-selected-tree-overlay))
859 ;; Create a new overlay. 860 ;; Create a new overlay.
860 (gnus-overlay-put 861 (gnus-overlay-put
861 (setq gnus-selected-tree-overlay (gnus-make-overlay 1 2)) 862 (setq gnus-selected-tree-overlay
863 (gnus-make-overlay (point-min) (1+ (point-min))))
862 'face gnus-selected-tree-face)) 864 'face gnus-selected-tree-face))
863 ;; Move the overlay to the article. 865 ;; Move the overlay to the article.
864 (gnus-move-overlay 866 (gnus-move-overlay
@@ -1062,5 +1064,5 @@ The following commands are available:
1062 1064
1063(provide 'gnus-salt) 1065(provide 'gnus-salt)
1064 1066
1065;;; arch-tag: 35449164-77b3-4398-bcbd-a2e3e998f810 1067;; arch-tag: 35449164-77b3-4398-bcbd-a2e3e998f810
1066;;; gnus-salt.el ends here 1068;;; gnus-salt.el ends here