all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Andreas Schwab <schwab@linux-m68k.org>, emacs-devel@gnu.org
Subject: Re: Yanking as HTML
Date: Sun, 30 Oct 2016 12:25:49 +0100	[thread overview]
Message-ID: <87wpgq6ptu.fsf@gmx.net> (raw)
In-Reply-To: <m3insaqel8.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 30 Oct 2016 12:08:19 +0100")

On Sun, 30 Oct 2016 12:08:19 +0100 Lars Ingebrigtsen <larsi@gnus.org> wrote:

> Andreas Schwab <schwab@linux-m68k.org> writes:
>
>> What do you get from (x-get-selection-internal 'CLIPBOARD 'text/html)?
>
> nil

When I select a region of a browser page,
e.g. http://www.gnu.org/software/emacs/, with the mouse and type C-c,
then switch to *scratch* in Emacs, which already contains the above sexp
with point at the closing paren, and type C-j, I get this (displayed
here with line breaks for legibility instead of as a single line):

#("<div class=\"logo\" style=\"margin: 0px; padding: 0px; border: 0px;
 font-family: 'fira sans', sans; font-size: 18px; font-style: normal;
 font-variant: normal; font-weight: normal; line-height: 26px;
 vertical-align: baseline; overflow: hidden; text-align: center;
 z-index: 1; color: rgb(63, 59, 59); letter-spacing: normal; orphans: 2;
 text-indent: 0px; text-transform: none; white-space: normal; widows: 2;
 word-spacing: 0px; -webkit-text-size-adjust: auto;
 -webkit-text-stroke-width: 0px; background-color: rgb(245, 245,
 237);\"><a href=\"http://www.gnu.org/software/emacs/emacs.html\"
 style=\"margin: 0px; padding: 0px; border: 0px; font-family: inherit;
 font-size: inherit; font-style: inherit; font-variant: inherit;
 font-weight: inherit; line-height: inherit; vertical-align: baseline;
 color: rgb(118, 49, 159); text-decoration: none;\"><img
 src=\"http://www.gnu.org/software/emacs/images/emacs.png\"
 alt=\"Emacs\" style=\"margin: 0px; padding: 0px; border: 0px;
 font-family: inherit; font-size: inherit; font-style: inherit;
 font-variant: inherit; font-weight: inherit; line-height: inherit;
 vertical-align: top; max-height: 100px;\"></a><span
 class=\"Apple-converted-space\">\302\240</span><h1 style=\"margin: 0px
 10px; padding: 0px; border: 0px; font-family: inherit; font-size: 4em;
 font-style: inherit; font-variant: inherit; font-weight: 600;
 line-height: 110px; vertical-align: baseline; display: inline;\">GNU
 Emacs</h1></div><h2 style=\"margin: 20px auto 10px; padding: 0px;
 border: 0px; font-family: 'fira sans', sans; font-size: 2.6em;
 font-style: normal; font-variant: normal; font-weight: 300;
 line-height: 1.3em; vertical-align: baseline; z-index: 1; text-align:
 center; max-width: 760px; color: rgb(63, 59, 59); letter-spacing:
 normal; orphans: 2; text-indent: 0px; text-transform: none;
 white-space: normal; widows: 2; word-spacing: 0px;
 -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
 background-color: rgb(245, 245, 237);\">An extensible, customizable,<a
 href=\"http://www.gnu.org/philosophy/free-sw.html\" style=\"margin:
 0px; padding: 0px; border: 0px; font-family: inherit; font-size:
 inherit; font-style: inherit; font-variant: inherit; font-weight:
 inherit; line-height: inherit; vertical-align: baseline; color:
 rgb(118, 49, 159); text-decoration: none;\">free/libre</a><span
 class=\"Apple-converted-space\">\302\240</span>text editor \342\200\224
 and more.</h2>" 0 2360 (foreign-selection STRING))

Steve Berman



  reply	other threads:[~2016-10-30 11:25 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 [this message]
2016-10-30 17:17     ` Richard Stallman
2016-10-30 10:05 ` Daniel Colascione
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wpgq6ptu.fsf@gmx.net \
    --to=stephen.berman@gmx.net \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    --cc=schwab@linux-m68k.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.