From: Daniel Colascione <dancol@dancol.org>
To: emacs-devel@gnu.org
Subject: Re: Yanking as HTML
Date: Sun, 30 Oct 2016 03:05:00 -0700 [thread overview]
Message-ID: <r0251syyp2yb.fsf@dancol.org> (raw)
In-Reply-To: <m360oarx59.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 30 Oct 2016 10:42:10 +0100")
Lars Ingebrigtsen <larsi@gnus.org> writes:
> I've tried googling for this for a few minutes, but I haven't found
> anything promising (without relying on uncommon external programs).
>
> I sometimes copy text from Firefox to Emacs, and when I'm pasting into
> HTML documents, I would sometimes prefer to retain the HTML formatting
> of what I'm copying.
>
> Does Emacs have support for this somehow? And if not, has anybody
> thought about what this support should look like? Obviously, the user
> must be able to control "how much" richness should be yanked when
> yanking (just the text; the HTML formatting; perhaps images too?).
A long time ago, I implemented support for rich-text copying _out_ of
Emacs in the HAVE_NTGUI case, but that code never landed in the
tree. The feature you're requesting is pretty straightforward to
implement, but it needs platform-specific C code. I agree about the user
options for controlling it --- perhaps on an operation-by-operation
basis via some kind of special prefix flag.
next prev parent reply other threads:[~2016-10-30 10:05 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-30 9:42 Yanking as HTML Lars Ingebrigtsen
2016-10-30 9:51 ` Andreas Schwab
2016-10-30 10:41 ` Lars Ingebrigtsen
2016-10-30 11:01 ` Andreas Schwab
2016-10-30 11:08 ` Lars Ingebrigtsen
2016-10-30 11:25 ` Stephen Berman
2016-10-30 17:17 ` Richard Stallman
2016-10-30 10:05 ` Daniel Colascione [this message]
2016-10-30 10:47 ` Lars Ingebrigtsen
2016-10-30 10:52 ` Daniel Colascione
2016-10-30 10:15 ` YAMAMOTO Mitsuharu
2016-10-30 10:43 ` Lars Ingebrigtsen
2016-10-30 10:59 ` Yuri Khan
2016-10-30 11:18 ` Lars Ingebrigtsen
2016-10-30 11:34 ` mituharu
2016-10-30 12:01 ` Lars Ingebrigtsen
2016-10-30 15:26 ` Lars Ingebrigtsen
2016-10-31 12:41 ` Ted Zlatanov
2016-10-31 13:21 ` Lars Ingebrigtsen
2016-10-31 15:48 ` Eli Zaretskii
2016-11-03 23:55 ` Chad Brown
2016-10-30 11:25 ` Lars Ingebrigtsen
2016-10-30 10:38 ` Igor Sosa Mayor
2016-11-04 7:13 ` Thierry Volpiatto
2016-11-04 8:49 ` Lars Ingebrigtsen
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=r0251syyp2yb.fsf@dancol.org \
--to=dancol@dancol.org \
--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).