[Top][All Lists]

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

goof in small function where???

From: ken
Subject: goof in small function where???
Date: Tue, 22 Jul 2014 05:21:54 -0400
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

The function below half works: it does put the buffer-file-name into the kill ring, but nothing is displayed in the minibuffer. Why? And how to fix this?

(defun file-name-into-kill-buffer ()
"Put path/filename of current buffer onto kill-ring so to paste
into an X application.  Also display it in minibuffer."
     (let ((str (buffer-file-name)))
       (and str
            (kill-new str)
            (message "Copied filename %s to kill ring" str)))

Thanks much.

reply via email to

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