From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: A patch for `pwd' - copying the current directory to the kill ring
Date: Thu, 25 Jan 2018 18:23:38 -0500 [thread overview]
Message-ID: <jwvmv11sey5.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: CAPM58ojYdyogr5B3f8UKa_pafOXcFHtUTwqJgdwSAL1xQpxxNA@mail.gmail.com
> I evaluated those two forms, and this one:
> (global-set-key [?\C-c ?p] #'copy-next-command-output)
Probably in a buffer not using lexical-binding.
This code (like most of the code I write) presumes lexical-binding.
> I think the generalisation is unwarranted in this case anyway. I bind
> C-c f to a command that puts the pwd on the kill ring, with a few
> tweaks to make it more useful to me (it optionally replaces "/" with
> "\", and if called in a buffer visiting a file, returns the file's
> name). It's more specialised, not more general. I use it a lot.
One doesn't oppose the other. I just think it's a fairly common request
to be able to insert the output of a command in the current buffer or
copy it to the clipboard, and rather than tweak each and every command
to add some clever way to do that, I think Emacs would benefit from
having a way to do it in general.
Stefan
next prev parent reply other threads:[~2018-01-25 23:23 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-25 13:13 A patch for `pwd' - copying the current directory to the kill ring Marcin Borkowski
2018-01-25 13:44 ` Kaushal Modi
2018-01-25 14:36 ` Stefan Monnier
2018-01-25 20:13 ` Stefan Monnier
2018-01-25 23:05 ` Richard Copley
2018-01-25 23:23 ` Stefan Monnier [this message]
2018-02-01 21:11 ` Marcin Borkowski
2018-02-01 22:03 ` Alexis
2018-02-02 1:59 ` Stefan Monnier
2018-02-02 8:51 ` Eli Zaretskii
2018-02-02 17:29 ` Stefan Monnier
2018-02-03 0:02 ` Richard Copley
2018-02-02 23:59 ` Richard Copley
2018-02-06 21:03 ` Marcin Borkowski
2018-01-26 7:55 ` Eli Zaretskii
2018-01-26 14:40 ` Stefan Monnier
2018-01-26 15:40 ` Eli Zaretskii
2018-02-01 21:09 ` Marcin Borkowski
2018-02-01 21:08 ` Marcin Borkowski
2018-01-25 15:47 ` Yuri Khan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvmv11sey5.fsf-monnier+gmane.emacs.devel@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).