unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Per Abrahamsen <abraham@dina.kvl.dk>
Cc: teirllm@dms.auburn.edu, emacs-devel@gnu.org
Subject: Re: :format strings in Custom ending in %h
Date: Fri, 24 Oct 2003 18:00:54 +0200	[thread overview]
Message-ID: <rjn0bqk4ll.fsf@sheridan.dina.kvl.dk> (raw)
In-Reply-To: <E1ACkKl-0004f9-EU@fencepost.gnu.org> (Richard Stallman's message of "Thu, 23 Oct 2003 14:37:19 -0400")

Richard Stallman <rms@gnu.org> writes:

>     Only the one line patch is necessary.  The rest is about removing
>     redundant but harmless code, and documenting the new behavior.
>
> we can live without removing the redundant code, but documenting the
> change is essential.  can someone write the doc?

Here is a doc change:

*** widget.texi.~1.22.~	2003-10-24 15:35:50.000000000 +0200
--- widget.texi	2003-10-24 17:59:49.000000000 +0200
***************
*** 1586,1609 ****
  Function to delete a widget.  The function takes one argument, a widget,
  and should remove all traces of the widget from the buffer.
  
  @vindex value-create@r{ keyword}
  @item :value-create
  Function to expand the @samp{%v} escape in the format string.  It will
  be called with the widget as its argument and should insert a
  representation of the widget's value in the buffer.
  
  @vindex value-delete@r{ keyword}
  @item :value-delete
  Should remove the representation of the widget's value from the buffer.
  It will be called with the widget as its argument.  It doesn't have to
  remove the text, but it should release markers and delete nested widgets
! if such have been used.
! 
! The following predefined function can be used here:
! 
! @defun widget-children-value-delete widget
! Delete all @code{:children} and @code{:buttons} in @var{widget}.
! @end defun
  
  @vindex value-get@r{ keyword}
  @item :value-get
--- 1586,1616 ----
  Function to delete a widget.  The function takes one argument, a widget,
  and should remove all traces of the widget from the buffer.
  
+ The default value is:
+ 
+ @defun widget-default-delete widget
+ Remove @var{widget} from the buffer.
+ Delete all @code{:children} and @code{:buttons} in @var{widget}.
+ @end defun
+ 
+ In most cases you should not change this value, but instead use
+ @code{:value-delete} to make any additional cleanup.
+ 
  @vindex value-create@r{ keyword}
  @item :value-create
  Function to expand the @samp{%v} escape in the format string.  It will
  be called with the widget as its argument and should insert a
  representation of the widget's value in the buffer.
  
+ Nested widgets should be listed in @code{:children} or @code{:buttons}
+ to make sure they are automatically deleted.
+ 
  @vindex value-delete@r{ keyword}
  @item :value-delete
  Should remove the representation of the widget's value from the buffer.
  It will be called with the widget as its argument.  It doesn't have to
  remove the text, but it should release markers and delete nested widgets
! if these are not listed in @code{:children} or @code{:buttons}.
  
  @vindex value-get@r{ keyword}
  @item :value-get

  reply	other threads:[~2003-10-24 16:00 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-21  1:54 :format strings in Custom ending in %h Luc Teirlinck
2003-08-21 12:22 ` Per Abrahamsen
2003-08-21 20:50   ` Luc Teirlinck
2003-08-21 21:00   ` Luc Teirlinck
2003-08-22 11:22     ` Per Abrahamsen
2003-08-22 14:41       ` Luc Teirlinck
2003-08-24 15:38         ` Per Abrahamsen
2003-08-24 17:17           ` Luc Teirlinck
2003-08-24 18:30             ` Per Abrahamsen
2003-10-20 18:05               ` Luc Teirlinck
2003-10-20 21:10                 ` Luc Teirlinck
2003-10-22  9:24                   ` Richard Stallman
2003-10-22  9:41                     ` Per Abrahamsen
2003-10-23 18:37                       ` Richard Stallman
2003-10-24 16:00                         ` Per Abrahamsen [this message]
2003-10-25 22:26                           ` Richard Stallman
2003-10-21 12:03                 ` Per Abrahamsen
2003-08-23  2:44       ` Luc Teirlinck
2003-08-23 15:32       ` Luc Teirlinck
2003-08-23  3:25   ` Luc Teirlinck
2003-08-23 18:09     ` Luc Teirlinck
2003-08-23 18:32       ` Luc Teirlinck
  -- strict thread matches above, loose matches on Subject: below --
2003-08-21  1:42 Luc Teirlinck

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=rjn0bqk4ll.fsf@sheridan.dina.kvl.dk \
    --to=abraham@dina.kvl.dk \
    --cc=emacs-devel@gnu.org \
    --cc=teirllm@dms.auburn.edu \
    /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).