From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.help Subject: Re: How to put default-directory into kill-ring? Date: Wed, 05 Feb 2014 01:34:29 +0800 Message-ID: References: <20140204120722.75a765ff@aga-netbook> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391536406 28160 80.91.229.3 (4 Feb 2014 17:53:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Feb 2014 17:53:26 +0000 (UTC) Cc: GNU Emacs users list To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 04 18:53:34 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 1WAkBh-0001qk-T7 for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Feb 2014 18:53:34 +0100 Original-Received: from localhost ([::1]:53653 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAkBh-0002zK-JF for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Feb 2014 12:53:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAk99-0005x7-UR for help-gnu-emacs@gnu.org; Tue, 04 Feb 2014 12:51:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WAjtW-0003FI-Gq for help-gnu-emacs@gnu.org; Tue, 04 Feb 2014 12:39:03 -0500 Original-Received: from mail-pd0-x22b.google.com ([2607:f8b0:400e:c02::22b]:58047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAjtW-0003FB-A7 for help-gnu-emacs@gnu.org; Tue, 04 Feb 2014 12:34:46 -0500 Original-Received: by mail-pd0-f171.google.com with SMTP id g10so8445672pdj.16 for ; Tue, 04 Feb 2014 09:34:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=GGVV8WHCjGxYMIIuAKRLgw95FBM4iYkQwks9U9VUjy0=; b=Sm7ouwmqPF/LFlsO+VjAyXOiuiOUqxgwMxLPgu0KG/wy5YodFaIhkfLzxNx9nB+vV7 81rku7dL16h0F0EELZqUAHF0v1GydOhenmx/+34c2PMESchlFwmMBK4SCiyVbj91KCq6 wYxIZCruEYn3/4kIRucBL3NEx31bfrdFSP5q8HQYfViAFyNx8CJWFWvxIdw0SpbRzUfX 5L9MO63HrP37PFfCZ+L8parz3ZXoAzdiAIDioxd5eoiwfVc2C+Zmibzwg1+799OXn+uB nk0F3qOxO8Y+B0e3ECfrmRaEMd7+mMrIQdtMBHuMSTCQWuIHARvUg0Yr6wwbx8TP1dQh vpdA== X-Received: by 10.66.66.234 with SMTP id i10mr44918453pat.127.1391535281725; Tue, 04 Feb 2014 09:34:41 -0800 (PST) Original-Received: from localhost ([61.148.244.108]) by mx.google.com with ESMTPSA id ve15sm166832372pab.8.2014.02.04.09.34.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Feb 2014 09:34:41 -0800 (PST) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII= In-Reply-To: <20140204120722.75a765ff@aga-netbook> (Marcin Borkowski's message of "Tue, 4 Feb 2014 12:07:22 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.9.1) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::22b 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:95907 Archived-At: On 2014-02-04 19:07 +0800, Marcin Borkowski wrote: > 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? A small package for many such tasks: https://github.com/leoliu/easy-kill M-w b copies buffer-file-name or default-directory with the following keys modifies the kill: -: remove the basename 0: remove the directory name +: full path Leo