erc-commit
[Top][All Lists]
Advanced

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

[Erc-commit] [commit][master] move-to-prompt: Deactivate mark before mov


From: mwolson
Subject: [Erc-commit] [commit][master] move-to-prompt: Deactivate mark before moving point.
Date: Sun, 20 Jan 2008 19:40:04 -0500

commit d4d7f5b262d6f52acb90e8086f92fda12ac8061b
Author: Michael W. Olson <address@hidden>
Date:   Sun Jan 20 19:31:33 2008 -0500

    move-to-prompt: Deactivate mark before moving point.

diff --git a/ChangeLog b/ChangeLog
index 9b0132e..b502d13 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,9 +3,9 @@
        * erc-goodies.el (move-to-prompt): Use the "XEmacs" method
        instead, because the [remap ...] method interferes with
        delete-selection-mode.
-       (erc-move-to-prompt): Rename from erc-move-to-prompt-xemacs.  Call
-       push-mark before moving point.  Thanks to bojohan for the
-       suggestion.
+       (erc-move-to-prompt): Rename from erc-move-to-prompt-xemacs.
+       Deactivate mark and call push-mark before moving point.  Thanks to
+       bojohan for the suggestion.
        (erc-move-to-prompt-setup): Rename from
        erc-move-to-prompt-init-xemacs.
 
diff --git a/erc-goodies.el b/erc-goodies.el
index 2649dda..091a90e 100644
--- a/erc-goodies.el
+++ b/erc-goodies.el
@@ -146,6 +146,7 @@ does not appear in the ERC buffer after the user presses 
ENTER.")
   "Move the point to the ERC prompt if this is a self-inserting command."
   (when (and erc-input-marker (< (point) erc-input-marker)
              (eq 'self-insert-command this-command))
+    (deactivate-mark)
     (push-mark)
     (goto-char (point-max))))
 




reply via email to

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