From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Fabian Braennstroem Newsgroups: gmane.emacs.help Subject: Re: change textheight and set position Date: Thu, 01 Jul 2004 11:41:12 +0200 Organization: Braennstroem Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87fz8c5akn.fsf@gmx.de> 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 1088685220 7839 80.91.224.253 (1 Jul 2004 12:33:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Jul 2004 12:33:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 01 14:33:26 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 1Bg0kn-0005sl-00 for ; Thu, 01 Jul 2004 14:33:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bg0mZ-0001eb-3u for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Jul 2004 08:35:15 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news2.telebyte.nl!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-X-Trace: news.uni-berlin.de VmozE17jyKjeJY1QQVUGrwIlqErjkXWzF5nhTVB0EiuvkT1HuH X-Orig-Path: rechner1.ddorf.de!news Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAAA1BMVEUA/wA0XsCoAAAADUlE QVR4nGNgGAXUBAABUAAB6+YoyQAAAABJRU5ErkJggg== User-Agent: Gnus/5.110001 (No Gnus v0.1) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:lNw5mUPKYVlirpky179mllQ/bAs= Original-Xref: shelby.stanford.edu gnu.emacs.help:124077 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:19408 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19408 Jesper Harder writes: > 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. 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