From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Problems with whole buffer Custom functions. Date: Sun, 22 Jan 2006 02:45:47 +0200 Organization: JURTA Message-ID: <87acdp8jnv.fsf@jurta.org> References: <200601130332.k0D3WKo16648@raven.dms.auburn.edu> <87psmrr3vg.fsf@jurta.org> <200601170413.k0H4Do825655@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1137894254 1555 80.91.229.2 (22 Jan 2006 01:44:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 22 Jan 2006 01:44:14 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 22 02:44:13 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F0UH5-00027I-F2 for ged-emacs-devel@m.gmane.org; Sun, 22 Jan 2006 02:44:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F0UJe-00058g-65 for ged-emacs-devel@m.gmane.org; Sat, 21 Jan 2006 20:46:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F0UGf-0002N7-Mq for emacs-devel@gnu.org; Sat, 21 Jan 2006 20:43:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F0UGd-0002LG-K5 for emacs-devel@gnu.org; Sat, 21 Jan 2006 20:43:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F0UGd-0002Kr-2j for emacs-devel@gnu.org; Sat, 21 Jan 2006 20:43:43 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1F0UL6-000585-Fb for emacs-devel@gnu.org; Sat, 21 Jan 2006 20:48:20 -0500 Original-Received: from mail.neti.ee (80-235-32-6-dsl.mus.estpak.ee [80.235.32.6]) by Relayhost1.neti.ee (Postfix) with ESMTP id 7BC9716D0; Sun, 22 Jan 2006 03:40:47 +0200 (EET) Original-To: Luc Teirlinck In-Reply-To: <200601170413.k0H4Do825655@raven.dms.auburn.edu> (Luc Teirlinck's message of "Mon, 16 Jan 2006 22:13:50 -0600 (CST)") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:49372 Archived-At: > Of course, ordinary self-inserting characters _should_ self-insert in > editable fields. But note that TAB still moves to next button or > editable field (I guess that list should now also include "link"). In the patch below I've added "link" to the docstring of `custom-mode' to custom.texi, and fixed examples in custom.texi since links in customization buffer don't have square brackets anymore. Index: lisp/cus-edit.el =================================================================== RCS file: /sources/emacs/emacs/lisp/cus-edit.el,v retrieving revision 1.279 diff -c -r1.279 cus-edit.el *** lisp/cus-edit.el 19 Jan 2006 23:26:04 -0000 1.279 --- lisp/cus-edit.el 22 Jan 2006 00:33:54 -0000 *************** *** 4425,4436 **** The following commands are available: ! Move to next button or editable field. \\[widget-forward] ! Move to previous button or editable field. \\[widget-backward] ! \\\ Complete content of editable text field. \\[widget-complete] \\\ ! Invoke button under the mouse pointer. \\[Custom-move-and-invoke] Invoke button under point. \\[widget-button-press] Set all options from current text. \\[Custom-set] Make values in current text permanent. \\[Custom-save] --- 4430,4442 ---- The following commands are available: ! \\\ ! Move to next button, link or editable field. \\[widget-forward] ! Move to previous button, link or editable field. \\[widget-backward] ! \\\ Complete content of editable text field. \\[widget-complete] \\\ ! Invoke button under the mouse pointer. \\[widget-move-and-invoke] Invoke button under point. \\[widget-button-press] Set all options from current text. \\[Custom-set] Make values in current text permanent. \\[Custom-save] Index: man/custom.texi =================================================================== RCS file: /sources/emacs/emacs/man/custom.texi,v retrieving revision 1.104 diff -c -r1.104 custom.texi *** man/custom.texi 19 Jan 2006 17:34:34 -0000 1.104 --- man/custom.texi 22 Jan 2006 00:34:47 -0000 *************** *** 202,208 **** The appearance of the example buffers in this section is typically different under a window system, since faces are then used to indicate ! buttons and editable fields. @menu * Groups: Customization Groups. How settings are classified in a structure. --- 202,208 ---- The appearance of the example buffers in this section is typically different under a window system, since faces are then used to indicate ! buttons, links and editable fields. @menu * Groups: Customization Groups. How settings are classified in a structure. *************** *** 232,243 **** /- Emacs group: ---------------------------------------------------\ [State]: visible group members are all at standard values. Customization of the One True Editor. ! See also [Manual]. ! Editing group: [Go to Group] Basic text editing facilities. ! External group: [Go to Group] Interfacing to external utilities. @var{more second-level groups} --- 232,243 ---- /- Emacs group: ---------------------------------------------------\ [State]: visible group members are all at standard values. Customization of the One True Editor. ! See also Manual. ! Editing group: Go to Group Basic text editing facilities. ! External group: Go to Group Interfacing to external utilities. @var{more second-level groups} *************** *** 256,271 **** @cindex editable fields (customization buffer) @cindex buttons (customization buffer) Most of the text in the customization buffer is read-only, but it typically includes some @dfn{editable fields} that you can edit. ! There are also @dfn{buttons}, which do something when you @dfn{invoke} ! them. To invoke a button, either click on it with @kbd{Mouse-1}, or ! move point to it and type @key{RET}. ! ! For example, the phrase @samp{[Go to Group]} that appears in a ! second-level group is a button. Invoking it creates a new ! customization buffer, which shows that group and its contents. This ! is a kind of hypertext link to another group. The @code{Emacs} group includes a few settings, but mainly it contains other groups, which contain more groups, which contain the --- 256,273 ---- @cindex editable fields (customization buffer) @cindex buttons (customization buffer) + @cindex links (customization buffer) Most of the text in the customization buffer is read-only, but it typically includes some @dfn{editable fields} that you can edit. ! There are also @dfn{buttons} and @dfn{links}, which do something when ! you @dfn{invoke} them. To invoke a button or a link, either click on ! it with @kbd{Mouse-1}, or move point to it and type @key{RET}. ! ! For example, the phrase @samp{[State]} that appears in ! a second-level group is a button. It operates on the same ! customization buffer. But the phrase @samp{Go to Group} is a kind ! of hypertext link to another group. Invoking it creates a new ! customization buffer, which shows that group and its contents. The @code{Emacs} group includes a few settings, but mainly it contains other groups, which contain more groups, which contain the *************** *** 288,295 **** @samp{[+]}. When the group contents are visible, this button changes to @samp{[-]}; invoking that hides the group contents. ! Each setting in this buffer has a button which says @samp{[Group]}, ! @samp{[Option]} or @samp{[Face]}. Invoking this button creates an ordinary customization buffer showing just that group and its contents, just that user option, or just that face. This is the way to change settings that you find with @kbd{M-x customize-browse}. --- 290,297 ---- @samp{[+]}. When the group contents are visible, this button changes to @samp{[-]}; invoking that hides the group contents. ! Each setting in this buffer has a link which says @samp{Group}, ! @samp{Option} or @samp{Face}. Invoking this link creates an ordinary customization buffer showing just that group and its contents, just that user option, or just that face. This is the way to change settings that you find with @kbd{M-x customize-browse}. -- Juri Linkov http://www.jurta.org/emacs/