From: Jesper Harder <harder@myrealbox.com>
Subject: Re: change textheight and set position
Date: Tue, 29 Jun 2004 10:29:08 +0200 [thread overview]
Message-ID: <m3brj2n4x7.fsf@defun.localdomain> (raw)
In-Reply-To: 87pt7isycd.fsf@tfdpc12.tfd.chalmers.se
Fabian Braennstroem <f.braennstroem@gmx.de> writes:
> Jesper Harder <harder@myrealbox.com> writes:
>
>> (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)))
>
> Thanks! I think this is exactly what I want, but when I choose some
> face, e.g. 'italic' or 'Info-title-2-face', there is no change in my
> text-property. It does not change compared to the old one.
Strange, it works for me.
> One question to this function. Shouldn't I be able to call the
> function 'put-text-property' with 'M-x'?
No. It's not an interactive function.
> Ah, I see, probably just because it is a build-in function!?
It doesn't matter if it's built-in or not. It's only a question about
if it's interactive or non-interactive.
--
Jesper Harder <http://purl.org/harder/>
next prev parent reply other threads:[~2004-06-29 8:29 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
2004-06-29 5:54 ` Fabian Braennstroem
2004-06-29 8:29 ` Jesper Harder [this message]
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=m3brj2n4x7.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).