diff options
author | Ye Wenbin <wenbinye@gmail.com> | 2007-05-21 07:01:00 +0000 |
---|---|---|
committer | Ye Wenbin <wenbinye@gmail.com> | 2007-05-21 07:01:00 +0000 |
commit | fcc4cfffacdab4e3eef129e3a1e4a28b60c1c4ea (patch) | |
tree | 60e7f314b799d9d63a0afbc952cecb85c3427c76 | |
parent | 8b3c65357e684ae794b5c488c927a093e6d6967a (diff) |
Deactivate mark when mark activate
darcs-hash:20070521070130-94065-b642910b76fcc3aa1c344b1f543fe1f91edb43ed.gz
-rw-r--r-- | emms-tag-editor.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/emms-tag-editor.el b/emms-tag-editor.el index 09cc57f..0fc4149 100644 --- a/emms-tag-editor.el +++ b/emms-tag-editor.el @@ -288,8 +288,9 @@ will only take on the tracks in the region." (unwind-protect (save-excursion (save-restriction - (if (and mark-active transient-mark-mode) - (narrow-to-region (region-beginning) (region-end))) + (when (and mark-active transient-mark-mode) + (narrow-to-region (region-beginning) (region-end)) + (deactivate-mark)) (setq tag (concat (regexp-quote tag) "[ \t]+=[ \t]+")) (goto-char (point-min)) (map-y-or-n-p |