From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.help Subject: Re: change textheight and set position Date: Tue, 29 Jun 2004 10:29:08 +0200 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <87r7s1ar7j.fsf@tfdpc12.tfd.chalmers.se> <87pt7isycd.fsf@tfdpc12.tfd.chalmers.se> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088539235 28967 80.91.224.253 (29 Jun 2004 20:00:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2004 20:00:35 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 29 22:00:28 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BfOmJ-0001br-00 for ; Tue, 29 Jun 2004 22:00:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfOnz-0003Yh-HU for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2004 16:02:11 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!news.tele.dk!news.tele.dk!small.news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19355 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19355 Fabian Braennstroem writes: > Jesper Harder 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