[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: change textheight and set position
From: |
Fabian Braennstroem |
Subject: |
Re: change textheight and set position |
Date: |
Thu, 01 Jul 2004 11:41:12 +0200 |
User-agent: |
Gnus/5.110001 (No Gnus v0.1) Emacs/21.3 (gnu/linux) |
Jesper Harder <harder@myrealbox.com> writes:
> 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.
Now, it works for me too :-) The first time I tried it in the scratch-buffer;
probably I should not do that.
>> 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.
Thanks I didn't know this!
Greetings!
--
Fabian Braennstroem
Duesseldorf/Berlin
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: change textheight and set position,
Fabian Braennstroem <=