all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* goof in small function where???
@ 2014-07-22  9:21 ken
  2014-07-22 10:02 ` Michael Heerdegen
  2014-07-22 10:33 ` Thorsten Jolitz
  0 siblings, 2 replies; 9+ messages in thread
From: ken @ 2014-07-22  9:21 UTC (permalink / raw)
  To: GNU Emacs List

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.



^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <mailman.5851.1406020938.1147.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2014-07-22 11:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-22  9:21 goof in small function where??? ken
2014-07-22 10:02 ` Michael Heerdegen
2014-07-22 10:28   ` ken
2014-07-22 11:07     ` Michael Heerdegen
2014-07-22 10:33 ` Thorsten Jolitz
2014-07-22 10:52   ` Thorsten Jolitz
2014-07-22 11:09     ` Michael Heerdegen
     [not found] <mailman.5851.1406020938.1147.help-gnu-emacs@gnu.org>
2014-07-22  9:41 ` Joost Kremers
2014-07-22 10:16   ` ken

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.