From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lars Hansen Newsgroups: gmane.emacs.devel Subject: Re: [BUG] widget-field-overlay becomes wrong Date: Tue, 03 Aug 2004 23:25:41 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <411002D5.7050902@math.ku.dk> References: <40E28BE8.4030300@math.ku.dk> <40EF09AA.3010207@math.ku.dk> <40F4DA0F.5000608@math.ku.dk> <410E0468.6070700@math.ku.dk> <41100113.2010703@math.ku.dk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020202050603010402000705" X-Trace: sea.gmane.org 1091568382 25069 80.91.224.253 (3 Aug 2004 21:26:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Aug 2004 21:26:22 +0000 (UTC) Cc: abraham@dina.kvl.dk, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 03 23:26:14 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 1Bs6nW-0004K6-00 for ; Tue, 03 Aug 2004 23:26:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bs6qy-0005qC-Dn for ged-emacs-devel@m.gmane.org; Tue, 03 Aug 2004 17:29:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bs6qq-0005q6-SM for emacs-devel@gnu.org; Tue, 03 Aug 2004 17:29:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bs6qq-0005pu-CN for emacs-devel@gnu.org; Tue, 03 Aug 2004 17:29:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bs6qq-0005pr-96 for emacs-devel@gnu.org; Tue, 03 Aug 2004 17:29:40 -0400 Original-Received: from [213.170.224.162] (helo=smtp.kabelnettet.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bs6n0-00066P-9C; Tue, 03 Aug 2004 17:25:42 -0400 Original-Received: from math.ku.dk (0x52b410f4.dhcp.kabelnettet.dk [82.180.16.244]) by smtp.kabelnettet.dk (Postfix) with ESMTP id C8FCD609A62; Tue, 3 Aug 2004 23:25:39 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021213 Debian/1.2.1-2.bunk X-Accept-Language: en Original-To: rms@gnu.org In-Reply-To: <41100113.2010703@math.ku.dk> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26173 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26173 This is a multi-part message in MIME format. --------------020202050603010402000705 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lars Hansen wrote: > I suggest the attached patch. Oops, I didn't delete the word "static" in the programming example. This is corrected in the attachment. --------------020202050603010402000705 Content-Type: text/plain; name="widget.texi.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="widget.texi.diff" *** widget.texi.~1.26.~ Sun May 2 07:30:17 2004 --- widget.texi Tue Aug 3 23:20:28 2004 *************** *** 213,226 **** Editable text fields are created by the @code{editable-field} widget. ! An editable field must be surrounded by static text on both sides, that ! is, text that does not change in the lifetime of the widget. If the ! field extends to the end of the line, the terminating line-feed character ! will count as the necessary static text on that end, but you will have ! to provide the static text before the field yourself. The ! @code{:format} keyword is useful for generating the static text; for ! instance, if you give it a value of @code{"Name: %v"}, the "Name: " part ! will count as the static text. The editing text fields are highlighted with the @code{widget-field-face} face, making them easy to find. --- 213,229 ---- Editable text fields are created by the @code{editable-field} widget. ! @strong{Warning:} In an @code{editable-field} widget, the editable ! field is not allowed to be adjacent to another widget, there must be ! some text in between. This text must be part of the ! @code{editable-field} widget itself or inserted with ! @code{widget-insert}. The @code{:format} keyword is useful for ! generating the necessary text; for instance, if you give it a value of ! @code{"Name: %v "}, the "Name: " part will provide the text before the ! field and the trailing space will provide the text after the field. ! If no @code{:size} argument is given the field will extends to the end ! of the line, and then the terminating line-feed character will count ! as the necessary text after the field. The editing text fields are highlighted with the @code{widget-field-face} face, making them easy to find. *************** *** 345,350 **** --- 348,354 ---- (widget-insert "Here is some documentation.\n\nName: ") (widget-create 'editable-field :size 13 + :format "%v " ; Text after the field! "My Name") (widget-create 'menu-choice :tag "Choose" --------------020202050603010402000705 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --------------020202050603010402000705--