From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry OReilly Newsgroups: gmane.emacs.help Subject: Re: How to put default-directory into kill-ring? Date: Wed, 12 Feb 2014 09:44:14 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1392216266 17687 80.91.229.3 (12 Feb 2014 14:44:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Feb 2014 14:44:26 +0000 (UTC) To: mbork@wmi.amu.edu.pl, help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 12 15:44:35 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 1WDb3B-0005qb-DC for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Feb 2014 15:44:33 +0100 Original-Received: from localhost ([::1]:39425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDb3B-00078Q-36 for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Feb 2014 09:44:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDb2y-00075z-UI for help-gnu-emacs@gnu.org; Wed, 12 Feb 2014 09:44:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDb2t-00080s-Pd for help-gnu-emacs@gnu.org; Wed, 12 Feb 2014 09:44:20 -0500 Original-Received: from mail-oa0-x22e.google.com ([2607:f8b0:4003:c02::22e]:39911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDb2t-00080n-LQ for help-gnu-emacs@gnu.org; Wed, 12 Feb 2014 09:44:15 -0500 Original-Received: by mail-oa0-f46.google.com with SMTP id n16so10932650oag.5 for ; Wed, 12 Feb 2014 06:44:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=noFSRpZFiLFjPZoND8mWF934E6YMu0A4geWSsyOym78=; b=Crg1DNIF6jQkMXvkJbsoqCargN6a5EQji9NCtiG2RTkBQnIpWxWlfoOWwqyyXmQXRB s5zDM44zioJAnPO0SvH783QAtYXIq9CY+NdFqB6Qa7t6XkxX3dZ6d6E5GpoeqFAHftMb /zP+zwF7Vi2Od5J9Ub760rLQs8xWeD5T4XMAjIS0P+51KOsgB8i3Lf7CLHmPEWRfZgue dD6fd4LWszGTPIeD9vV9DEbpK9qhqfEPeUftTp5i6ydjQU1U/PkQV+SuhS1jF20pKwh2 d0nl+NKtICQ7XSXvcr1Pi6+lSd8R/qcEmkvrWcr4ER7dlTXs1S+BQQOdYTVEU1gUlcWK xc0w== X-Received: by 10.60.123.75 with SMTP id ly11mr37624453oeb.1.1392216254538; Wed, 12 Feb 2014 06:44:14 -0800 (PST) Original-Received: by 10.76.21.84 with HTTP; Wed, 12 Feb 2014 06:44:14 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c02::22e X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:96036 Archived-At: > quite often I want to put some full path to some file (usually > init.el). It would be quite convenient for M-x pwd (or maybe C-u M-x > pwd?) to put its output into the kill ring, which is does not. So: > is there any function to do this? (I can easily write it myself, but > don't want to reinvent the wheel.) If not, could this be considered > a feature request? I usually go to buffer-menu and copy the buffer name, path, whatever. I bind buffer-menu to 'f' in an Evil keymap because of how often I use it. So in this setup, the typed keys for copying the absolute directory path containing the current file would be: f$?/ then RET then vBy .