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:18:11 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <41100113.2010703@math.ku.dk> References: <40E28BE8.4030300@math.ku.dk> <40EF09AA.3010207@math.ku.dk> <40F4DA0F.5000608@math.ku.dk> <410E0468.6070700@math.ku.dk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090608070509030006050207" X-Trace: sea.gmane.org 1091567944 16099 80.91.224.253 (3 Aug 2004 21:19:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Aug 2004 21:19:04 +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:18:56 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 1Bs6gR-0003kV-00 for ; Tue, 03 Aug 2004 23:18:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bs6ju-0003lA-AR for ged-emacs-devel@m.gmane.org; Tue, 03 Aug 2004 17:22:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bs6jn-0003kj-GM for emacs-devel@gnu.org; Tue, 03 Aug 2004 17:22:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bs6jm-0003kX-NJ for emacs-devel@gnu.org; Tue, 03 Aug 2004 17:22:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bs6jm-0003kU-L8 for emacs-devel@gnu.org; Tue, 03 Aug 2004 17:22:22 -0400 Original-Received: from [213.170.224.162] (helo=smtp.kabelnettet.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bs6fm-00056H-8J; Tue, 03 Aug 2004 17:18:14 -0400 Original-Received: from math.ku.dk (0x52b410f4.dhcp.kabelnettet.dk [82.180.16.244]) by smtp.kabelnettet.dk (Postfix) with ESMTP id 44652609A89; Tue, 3 Aug 2004 23:18:10 +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: 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:26172 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26172 This is a multi-part message in MIME format. --------------090608070509030006050207 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Richard Stallman wrote: >We could add that some cases of this will actually work ok >but it would be too much trouble to try to explain which. > >Where in widget.texi is a good place to say this? > > I don't see much point in that, so I don't know where it would fit in. I suggest the attached patch. --------------090608070509030006050207 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 22:39:21 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 " ; Static text after the field! "My Name") (widget-create 'menu-choice :tag "Choose" --------------090608070509030006050207 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 --------------090608070509030006050207--