From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: How to put default-directory into kill-ring? Date: Tue, 4 Feb 2014 06:01:14 -0800 (PST) Message-ID: <0b3ac5b2-4bbe-42b1-9362-b628a5a2c3ea@default> References: <20140204120722.75a765ff@aga-netbook> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1391522652 7954 80.91.229.3 (4 Feb 2014 14:04:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Feb 2014 14:04:12 +0000 (UTC) To: Marcin Borkowski , GNU Emacs users list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 04 15:04:18 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 1WAgZQ-00046T-No for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Feb 2014 15:01:48 +0100 Original-Received: from localhost ([::1]:52677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAgZQ-0001OY-Ca for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Feb 2014 09:01:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAgZ8-0001Nj-AC for help-gnu-emacs@gnu.org; Tue, 04 Feb 2014 09:01:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WAgYy-0008NF-66 for help-gnu-emacs@gnu.org; Tue, 04 Feb 2014 09:01:30 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:36118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAgYy-0008Mz-0l for help-gnu-emacs@gnu.org; Tue, 04 Feb 2014 09:01:20 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s14E1GQj008837 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 4 Feb 2014 14:01:17 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s14E1Ffa007729 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 4 Feb 2014 14:01:16 GMT Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s14E1EEl028859; Tue, 4 Feb 2014 14:01:14 GMT In-Reply-To: <20140204120722.75a765ff@aga-netbook> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 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:95898 Archived-At: > is there any function to do this? M-x cd RET C-x DEL C-g `cd' changes directory, and the default is `default-directory'. `C-x DEL' is `backward-kill-sentence', which kills the dir in the minibuffer. You can alternatively use `C-a C-k' to do this. (DEL is Backspace.) If you have `insert-default-directory' =3D nil then do `M-n' after `M-x cd RET', to get the default dir in the minibuffer. And yes, if you do this often, you could simply define a command and key for it.