From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: goof in small function where??? Date: Tue, 22 Jul 2014 05:21:54 -0400 Message-ID: <53CE2D32.2070502@mousecar.com> Reply-To: gebser@mousecar.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1406020954 27476 80.91.229.3 (22 Jul 2014 09:22:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Jul 2014 09:22:34 +0000 (UTC) To: GNU Emacs List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 22 11:22:27 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X9WHC-00088R-QD for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Jul 2014 11:22:26 +0200 Original-Received: from localhost ([::1]:38229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9WHC-0000mN-A5 for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Jul 2014 05:22:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9WGv-0000l4-JS for help-gnu-emacs@gnu.org; Tue, 22 Jul 2014 05:22:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9WGm-0007Ys-Ie for help-gnu-emacs@gnu.org; Tue, 22 Jul 2014 05:22:09 -0400 Original-Received: from mout.perfora.net ([74.208.4.197]:59491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9WGm-0007Wi-CF for help-gnu-emacs@gnu.org; Tue, 22 Jul 2014 05:22:00 -0400 Original-Received: from dellap.mousecar.net (clev-static1-cs17.static.dslohio.net [66.219.160.17]) by mrelay.perfora.net (node=mreueus002) with ESMTP (Nemesis) id 0LiBCX-1WnMr130WB-00nQJA; Tue, 22 Jul 2014 11:21:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 X-Provags-ID: V02:K0:qjI5rpAofF4brOrcJ9mEq/it043MljB7+KHeU9JP+ZJ AJPEMXIDKtGIQGLQ3S/qs7F1UKu6hm4koMYk0NQ3uorbOC9B6m rsQgcN6Mgy5kazfzCxKBn7klg55QLiMiZonWcpsGVyg64N5Vnm KJYA5Dvkxjtbi+BERrLCHXTJnxOofrL8sNlGfsOqt2le4cFfT/ RxWk2IpCGDIFToLx2mB8ObyAU3UI7SBoPMJaSeiY2NvMSD2p9a vXwLXXs4B/uEXZssyFTGBOTEDdCO3k4LygfWwoG9c4+UTzP48F Z+d7mKTE5b7mvS6oFi+1KGPlJkMCFpe8R5AbDvXDzDcpooMHik RRmidIAdhI2Yo7LpVWNOiC+gyF5E5NGdcHxJJXKm9 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 74.208.4.197 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98890 Archived-At: 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." (interactive) (let ((str (buffer-file-name))) (and str (kill-new str) (message "Copied filename %s to kill ring" str))) ) Thanks much.