[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: change textheight and set position
From: |
Jesper Harder |
Subject: |
Re: change textheight and set position |
Date: |
Tue, 29 Jun 2004 10:29:08 +0200 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
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/>