From: Jambunathan K <kjambunathan@gmail.com>
To: Luca Ferrari <fluca1978@infinito.it>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: font faces across a copy and paste
Date: Tue, 30 Jul 2013 16:57:46 +0530 [thread overview]
Message-ID: <87d2q0waml.fsf@gmail.com> (raw)
In-Reply-To: <CAKoxK+61TW0erAAnuGYK9uNernvQ330piHOiVxkb_PEEhBnTcg@mail.gmail.com> (Luca Ferrari's message of "Tue, 30 Jul 2013 08:30:12 +0200")
Luca Ferrari <fluca1978@infinito.it> writes:
> Hi,
> this is just a curiosity: I noted that if I'm editing a text buffer
> and a code buffer, let's say C/Java, and I copy and paste the code
> from the code buffer into the text one than the pasted text maintains
> the faces (e.g., colors). I was thinking that faces were applied at a
> buffer level, and therefore the code should become faced as a text
> chunk, but apparently Emacs stores faces somewhere in memory related
> to the text chunk itself. Is this correct? There is something I'm
> missing?
When you move the text, the text properties (face is one of the
properties) also move with it.
1. Put your cursor on a piece of text.
2. C-u C-x =
3. Go to the end of the resulting buffer.
4. You will see text properties (usually fontified t, and a
font-lock-face-*), overlay etc.
But when you copy the pasted text in to buffer that has font-lock-mode
on, the copied text will usually change colors. This "changing of
colors", (I believe) happens very fast that it is barely noticeable.
>
> Thanks,
> Luca
next prev parent reply other threads:[~2013-07-30 11:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-30 6:30 font faces across a copy and paste Luca Ferrari
2013-07-30 9:05 ` Peter Dyballa
2013-07-30 11:29 ` Jambunathan K
2013-07-30 12:44 ` Peter Dyballa
2013-07-30 13:36 ` Jambunathan K
2013-08-01 22:50 ` Peter Dyballa
2013-07-30 11:27 ` Jambunathan K [this message]
[not found] <mailman.2078.1375165817.12400.help-gnu-emacs@gnu.org>
2013-07-30 7:37 ` Sebastien Vauban
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=87d2q0waml.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=fluca1978@infinito.it \
--cc=help-gnu-emacs@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 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.