Skip to content

Instantly share code, notes, and snippets.

@gongo
Created December 5, 2012 07:32
Show Gist options
  • Save gongo/4213425 to your computer and use it in GitHub Desktop.
Save gongo/4213425 to your computer and use it in GitHub Desktop.
mu4e の headers view で region 指定の refile を行った際、最初のメールの移動先が後方のメールにまで反映されるのを防ぐ感じの修正
--- mu4e-mark.el.orig 2012-12-05 16:29:48.410403140 +0900
+++ mu4e-mark.el 2012-12-05 16:31:16.450407255 +0900
@@ -189,6 +189,8 @@
(let ((cant-go-further) (eor (region-end)))
(goto-char (region-beginning))
(while (and (<= (point) eor) (not cant-go-further))
+ (when (eq mark 'refile)
+ (setq target (mu4e~mark-get-target mark target)))
(mu4e-mark-at-point mark target)
(setq cant-go-further (not (mu4e-headers-next))))))))
@gongo
Copy link
Author

gongo commented Dec 5, 2012

pull request しました

djcb/mu#108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment