unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jesper Harder <harder@myrealbox.com>
Subject: Re: change textheight and set position
Date: Mon, 28 Jun 2004 23:24:18 +0200	[thread overview]
Message-ID: <m3d63j74vx.fsf@defun.localdomain> (raw)
In-Reply-To: 87r7s1ar7j.fsf@tfdpc12.tfd.chalmers.se

Fabian Braennstroem <f.braennstroem@gmx.de> writes:

> I'm looking for a way to copy some text and yank it with a different
> font-size in the middle of the line.  I tried using 'set-face-font',
> but that changes the font for some existing faces. It would be the
> best, if I would be able to choose just a different font style
> before I yank the text, e.g. Info-title-1-face. Does anybody have an
> idea?

You could do something like this:

(defun my-yank (face)
  (interactive (list (read-face-name "Use face")))
  (save-restriction
    (narrow-to-region (point) (point))
    (yank)
    (put-text-property (point-min) (point-max) 'face face)))

-- 
Jesper Harder                                <http://purl.org/harder/>

  reply	other threads:[~2004-06-28 21:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-27 16:41 change textheight and set position Fabian Braennstroem
2004-06-28 21:24 ` Jesper Harder [this message]
2004-06-29  5:54   ` Fabian Braennstroem
2004-06-29  8:29     ` Jesper Harder
2004-07-01  9:41       ` Fabian Braennstroem
2004-06-30  9:28 ` Kai Grossjohann

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=m3d63j74vx.fsf@defun.localdomain \
    --to=harder@myrealbox.com \
    /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.
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).