Merge pull request #360 from sabof/prevent-point-motion-in-headers
* mu4e: try not to move, when executing marks
This commit is contained in:
@ -269,6 +269,8 @@ headers."
|
||||
(when (buffer-live-p mu4e~headers-buffer)
|
||||
(with-current-buffer mu4e~headers-buffer
|
||||
(let* ((docid (mu4e-message-field msg :docid))
|
||||
(initial-message-at-point (mu4e~headers-docid-at-point))
|
||||
(initial-column (current-column))
|
||||
(point (mu4e~headers-docid-pos docid)))
|
||||
(when point ;; is the message present in this list?
|
||||
|
||||
@ -304,8 +306,14 @@ headers."
|
||||
(unless is-move
|
||||
(mu4e~headers-header-handler msg point))
|
||||
|
||||
(if (and initial-message-at-point
|
||||
(mu4e~headers-goto-docid initial-message-at-point))
|
||||
(progn
|
||||
(move-to-column initial-column)
|
||||
(mu4e~headers-highlight initial-message-at-point))
|
||||
;; attempt to highlight the corresponding line and make it visible
|
||||
(mu4e~headers-highlight docid))))))
|
||||
(mu4e~headers-highlight docid))
|
||||
)))))
|
||||
|
||||
|
||||
(defun mu4e~headers-remove-handler (docid)
|
||||
|
||||
Reference in New Issue
Block a user