From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alin Soare Newsgroups: gmane.emacs.help Subject: format text in TreeWidget. Date: Mon, 10 Jan 2011 11:08:08 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00248c0ee6507a2e8004997a4ead X-Trace: dough.gmane.org 1294658990 18158 80.91.229.12 (10 Jan 2011 11:29:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 10 Jan 2011 11:29:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 10 12:29:46 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PcFwY-0003mz-18 for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Jan 2011 12:29:46 +0100 Original-Received: from localhost ([127.0.0.1]:38022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcFwX-0005Iz-F1 for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Jan 2011 06:29:45 -0500 Original-Received: from [140.186.70.92] (port=35172 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcDl6-0000Ij-C0 for help-gnu-emacs@gnu.org; Mon, 10 Jan 2011 04:09:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcDjY-0003U8-Qc for help-gnu-emacs@gnu.org; Mon, 10 Jan 2011 04:08:13 -0500 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:38735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcDjY-0003Tx-E9 for help-gnu-emacs@gnu.org; Mon, 10 Jan 2011 04:08:12 -0500 Original-Received: by wyj26 with SMTP id 26so20107590wyj.0 for ; Mon, 10 Jan 2011 01:08:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=NnFIJ4SPOHR4nNUgtbCn+Lb0nuQWZ9SozYrK8w5EqbE=; b=WDbOsHiu7TTWPucOO1reJa7VxogvPn5Jx0cCkbktSvX/bZeMpX8/AgulLAL1yM8NnA PXcKNQVkH+kRZ/tEK4TPWXq8XMwQuGpKh5IdqrQhNvl/VSUQKpkqeN3jRHnWsP8y3rup DK95QHG1H38ZUNI7/FQqko7RPbZHIg1iWV4+o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=JX+LZnBsPmoOFddci2ktTCRuAMnz2tuMPzGFgnkOBjmprMHc1ZiRzKUoHbKQvtd4un to/gwB6vxI0iJ5lINnqQwySANxXNmNqcTZkALlogzBVkpeizSQGCYPSAfcRaUrtr2F8c THFwjE3AazZsq4SNXib2FbGRgya6zjr7znd3E= Original-Received: by 10.227.175.74 with SMTP id w10mr11699236wbz.163.1294650488531; Mon, 10 Jan 2011 01:08:08 -0800 (PST) Original-Received: by 10.227.38.162 with HTTP; Mon, 10 Jan 2011 01:08:08 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Mon, 10 Jan 2011 06:29:08 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78356 Archived-At: --00248c0ee6507a2e8004997a4ead Content-Type: text/plain; charset=UTF-8 I did write the following code. As the :tag text is very long on some lines, and pass over the end the line, it is displayed on myltiple lines, and the tree looks spoiled. I wish to make the tree widget show the text formatted correctly, and on maximum N columns. (widget-create (quote tree-widget) :node (quote (push-button :tag "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" :format "%[%t%] ")) (quote (tree-widget :tag "...............................................................................................................................................................................................) ")) (quote (tree-widget :tag "#################################################################################################################################################################################################################################")) (quote (tree-widget :tag "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$"))) How can I do this ? Thanks for any help. --00248c0ee6507a2e8004997a4ead Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I did write the following code.

As the :tag text is=C2=A0 very long = on some lines, and pass over the end the line,=C2=A0 it is displayed on myl= tiple lines, and the tree looks spoiled. I wish to make the tree widget sho= w the text formatted correctly, and on maximum N columns.




(widget-create (quote tree-widget) :node (quote (push-button :tag &quo= t;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" :format "%[%t%]
&qu= ot;))
=C2=A0(quote (tree-widget :tag "......................................= ...........................................................................= ...........................................................................= ...) "))
=C2=A0(quote (tree-widget :tag "######################################= ###########################################################################= ###########################################################################= #####################################"))
=C2=A0(quote (tree-widget :tag "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$= $$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$= $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$= $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$= $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$= $$$$$$
$$$")))



How can I do this ?


Thanks= for any help.


--00248c0ee6507a2e8004997a4ead--