mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.

commit 87cd592adcc1f67120dcd662b5d8a17c748b32e4
Author: Matthew L. Fidler <[email protected]>
Date:   Thu Jun 19 06:50:21 2014 -0500

    Take out `mark-whole-buffer'
---
 ergoemacs-functions.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ergoemacs-functions.el b/ergoemacs-functions.el
index 14c8086..2a4ba3d 100644
--- a/ergoemacs-functions.el
+++ b/ergoemacs-functions.el
@@ -1815,7 +1815,9 @@ If arg is a negative prefix, copy file path only"
         (setq fn (file-name-nondirectory fn))))
     (with-temp-buffer
       (insert fn)
-      (mark-whole-buffer)
+      (push-mark (point))
+      (push-mark (point-max) nil t)
+      (goto-char (point-min))
       (ergoemacs-cut-line-or-region))))
 
 (defun ergoemacs-copy-file-name ()

Reply via email to