From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: How to put default-directory into kill-ring? Date: Wed, 5 Feb 2014 18:03:41 +0100 Organization: WMI UAM Message-ID: <20140205180341.15352900@aga-netbook> References: <20140204120722.75a765ff@aga-netbook> <0b3ac5b2-4bbe-42b1-9362-b628a5a2c3ea@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1391619849 14132 80.91.229.3 (5 Feb 2014 17:04:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Feb 2014 17:04:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 05 18: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 1WB5tX-0006qN-Vx for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Feb 2014 18:04:16 +0100 Original-Received: from localhost ([::1]:60379 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WB5tX-0006ry-Gs for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Feb 2014 12:04:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WB5t6-0006k7-F2 for help-gnu-emacs@gnu.org; Wed, 05 Feb 2014 12:03:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WB5t2-0004uV-4v for help-gnu-emacs@gnu.org; Wed, 05 Feb 2014 12:03:48 -0500 Original-Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:40931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WB5t1-0004uO-UY for help-gnu-emacs@gnu.org; Wed, 05 Feb 2014 12:03:44 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 7089366385 for ; Wed, 5 Feb 2014 18:03:43 +0100 (CET) Original-Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZjhorrIrUmoc for ; Wed, 5 Feb 2014 18:03:43 +0100 (CET) Original-Received: from aga-netbook (jedenzero6-jeden5osiem.echostar.pl [213.156.106.158]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 464EE6556A for ; Wed, 5 Feb 2014 18:03:43 +0100 (CET) In-Reply-To: <0b3ac5b2-4bbe-42b1-9362-b628a5a2c3ea@default> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.20; i686-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:808:114:2::50 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:95929 Archived-At: Dnia 2014-02-04, o godz. 06:01:14 Drew Adams napisa=C5=82(a): > > is there any function to do this? >=20 > M-x cd RET C-x DEL C-g >=20 > `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.) >=20 > 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. This is a bit lengthy, but thanks nonetheless. > And yes, if you do this often, you could simply define a > command and key for it. Of course. Thanks! --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University