From: Lars Hansen <larsh@math.ku.dk>
Cc: abraham@dina.kvl.dk, emacs-devel@gnu.org
Subject: Re: [BUG] widget-field-overlay becomes wrong
Date: Tue, 03 Aug 2004 23:18:11 +0200 [thread overview]
Message-ID: <41100113.2010703@math.ku.dk> (raw)
In-Reply-To: <E1Bs56j-0006Yi-EV@fencepost.gnu.org>
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
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.
[-- Attachment #2: widget.texi.diff --]
[-- Type: text/plain, Size: 2049 bytes --]
*** 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"
[-- Attachment #3: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2004-08-03 21:18 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-30 9:46 [BUG] widget-field-overlay becomes wrong Lars Hansen
2004-07-01 17:14 ` Richard Stallman
2004-07-01 20:08 ` Lars Hansen
2004-07-02 6:02 ` Lars Hansen
2004-07-03 18:20 ` Richard Stallman
2004-07-04 9:47 ` Lars Hansen
2004-07-07 16:02 ` Per Abrahamsen
2004-07-08 12:30 ` Lars Hansen
2004-07-08 23:18 ` Richard Stallman
2004-07-09 21:10 ` Lars Hansen
2004-07-13 15:00 ` Per Abrahamsen
2004-07-14 7:00 ` Lars Hansen
2004-07-19 7:31 ` Per Abrahamsen
2004-07-19 18:44 ` Richard Stallman
2004-07-23 16:24 ` Per Abrahamsen
2004-07-24 16:28 ` Lars Hansen
2004-08-01 15:18 ` Per Abrahamsen
2004-08-02 9:08 ` Lars Hansen
2004-08-02 12:21 ` Per Abrahamsen
2004-07-24 19:43 ` Richard Stallman
2004-08-01 15:33 ` Per Abrahamsen
2004-08-02 9:07 ` Lars Hansen
2004-08-03 19:37 ` Richard Stallman
2004-08-03 21:18 ` Lars Hansen [this message]
2004-08-03 21:25 ` Lars Hansen
2004-08-05 4:22 ` Richard Stallman
2004-08-05 6:22 ` Lars Hansen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41100113.2010703@math.ku.dk \
--to=larsh@math.ku.dk \
--cc=abraham@dina.kvl.dk \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).