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: Mon, 23 Jan 2006 03:42:54 +0200 Organization: JURTA Message-ID: <87zmlnu3c1.fsf@jurta.org> References: <200601130332.k0D3WKo16648@raven.dms.auburn.edu> <87psmrr3vg.fsf@jurta.org> <200601170413.k0H4Do825655@raven.dms.auburn.edu> <87acdp8jnv.fsf@jurta.org> <200601220146.k0M1kU101753@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 1137981380 22761 80.91.229.2 (23 Jan 2006 01:56:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Jan 2006 01:56:20 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 23 02:56:20 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 1F0qwM-00063B-Eg for ged-emacs-devel@m.gmane.org; Mon, 23 Jan 2006 02:56:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F0qyy-0007sk-Lt for ged-emacs-devel@m.gmane.org; Sun, 22 Jan 2006 20:59:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F0qyo-0007sc-5S for emacs-devel@gnu.org; Sun, 22 Jan 2006 20:58:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F0qyn-0007sP-Bb for emacs-devel@gnu.org; Sun, 22 Jan 2006 20:58:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F0qyn-0007sM-9k for emacs-devel@gnu.org; Sun, 22 Jan 2006 20:58:49 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1F0r3R-0008Po-Po for emacs-devel@gnu.org; Sun, 22 Jan 2006 21:03:38 -0500 Original-Received: from mail.neti.ee (80-235-32-219-dsl.mus.estpak.ee [80.235.32.219]) by Relayhost1.neti.ee (Postfix) with ESMTP id F35981CC7; Mon, 23 Jan 2006 03:55:53 +0200 (EET) Original-To: Luc Teirlinck In-Reply-To: <200601220146.k0M1kU101753@raven.dms.auburn.edu> (Luc Teirlinck's message of "Sat, 21 Jan 2006 19:46:30 -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:49424 Archived-At: > 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. > > In latest CVS, they apparently still do (in emacs -nw -q). Actually, I meant that links in customization buffer don't have square brackets with my latest patch I posted on another thread. Below I've extracted that part into a separate patch. I think it is inappropriate to enclose links into square brackets. Square brackets are a textual representation of buttons to indicate a rectangular area around them that looks like buttons. OTOH, links are underlined blue and don't need additional markup like square brackets. So I propose not to display links in square brackets even on a tty and to update the manual: Index: lisp/cus-edit.el =================================================================== RCS file: /sources/emacs/emacs/lisp/cus-edit.el,v retrieving revision 1.280 diff -c -r1.280 cus-edit.el *** lisp/cus-edit.el 23 Jan 2006 01:21:24 -0000 1.280 --- lisp/cus-edit.el 23 Jan 2006 01:41:57 -0000 *************** *** 4450,4458 **** ;; may not be optimal. (when custom-raised-buttons (set (make-local-variable 'widget-push-button-prefix) "") ! (set (make-local-variable 'widget-push-button-suffix) "") ! (set (make-local-variable 'widget-link-prefix) "") ! (set (make-local-variable 'widget-link-suffix) "")) (add-hook 'widget-edit-functions 'custom-state-buffer-message nil t) (run-mode-hooks 'custom-mode-hook)) --- 4451,4459 ---- ;; may not be optimal. (when custom-raised-buttons (set (make-local-variable 'widget-push-button-prefix) "") ! (set (make-local-variable 'widget-push-button-suffix) "")) ! (set (make-local-variable 'widget-link-prefix) "") ! (set (make-local-variable 'widget-link-suffix) "") (add-hook 'widget-edit-functions 'custom-state-buffer-message nil t) (run-mode-hooks 'custom-mode-hook)) Index: man/custom.texi =================================================================== RCS file: /sources/emacs/emacs/man/custom.texi,v retrieving revision 1.105 diff -c -r1.105 custom.texi *** man/custom.texi 23 Jan 2006 01:30:13 -0000 1.105 --- man/custom.texi 23 Jan 2006 01:41:59 -0000 *************** *** 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} *************** *** 265,271 **** For example, the phrase @samp{[State]} that appears in a second-level group is a button. It operates on the same ! customization buffer. 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. --- 265,271 ---- 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. *************** *** 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}. --- 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/