From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Craig Muth Newsgroups: gmane.emacs.devel Subject: Re: Xiki framework (wiki and tree emacs features) Date: Fri, 5 Feb 2010 15:48:54 -0500 Message-ID: References: <878wb7r196.fsf@everybody.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0cd1384662a8d9047ee09487 X-Trace: ger.gmane.org 1265402951 31190 80.91.229.12 (5 Feb 2010 20:49:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Feb 2010 20:49:11 +0000 (UTC) To: emacs-devel@gnu.org, "Mark A. Hershberger" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 05 21:49:08 2010 Return-path: Envelope-to: ged-emacs-devel@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 1NdV6x-0004CN-Ay for ged-emacs-devel@m.gmane.org; Fri, 05 Feb 2010 21:49:07 +0100 Original-Received: from localhost ([127.0.0.1]:35914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NdV6w-0000H9-Ne for ged-emacs-devel@m.gmane.org; Fri, 05 Feb 2010 15:49:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NdV6q-0000FL-As for emacs-devel@gnu.org; Fri, 05 Feb 2010 15:49:00 -0500 Original-Received: from [199.232.76.173] (port=43340 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NdV6p-0000EU-R6 for emacs-devel@gnu.org; Fri, 05 Feb 2010 15:48:59 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NdV6n-0001vC-Ra for emacs-devel@gnu.org; Fri, 05 Feb 2010 15:48:59 -0500 Original-Received: from mail-px0-f192.google.com ([209.85.216.192]:46602) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NdV6n-0001ue-DC for emacs-devel@gnu.org; Fri, 05 Feb 2010 15:48:57 -0500 Original-Received: by pxi30 with SMTP id 30so4107035pxi.14 for ; Fri, 05 Feb 2010 12:48:56 -0800 (PST) Original-Received: by 10.141.105.4 with SMTP id h4mr2208394rvm.108.1265402934109; Fri, 05 Feb 2010 12:48:54 -0800 (PST) X-Originating-IP: [24.160.172.54] In-Reply-To: <878wb7r196.fsf@everybody.org> X-Google-Sender-Auth: 2f541a61e933d16b X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:120959 Archived-At: --000e0cd1384662a8d9047ee09487 Content-Type: text/plain; charset=ISO-8859-1 Here's an example of a xiki tree you might build up when working in some elisp files. Could be useful for communicating about code on mailing lists like this one. Forgive me if org mode (or something else) already does this. If so please enlighten me - I'd be interested in checking it out. - /usr/share/emacs22/ - lisp/ - isearch.el | (defun isearch-forward (&optional regexp-p no-recursive-edit) | Type \\[isearch-yank-char] to yank char from buffer onto end of search\ | (defun isearch-mode (forward &optional regexp op-fun recursive-edit word-p) | (defvar isearch-mode-map | (define-key map "\M-\C-y" 'isearch-yank-char) - Not recognizing var: | (defun isearch-yank-char (&optional arg) + all lines using the map: ##isearch-mode-map/ - You can see it compiles: ! ls -l ! -rw-r--r-- 1 craig admin 97058 Feb 2 11:58 isearch.el ! -rw-r--r-- 1 craig admin 66540 Feb 2 11:58 isearch.elc - site-lisp/ - session.el | (defcustom session-registers '((?0 . ?9) ?- ?= ?\\ ?` region (?a . ?z)) - Todo: want to include this: | CHAR or (FROM . TO) or `file' or `region' or t. Such trees are navigable in any buffer/file (you can just paste in the tree), though in note-mode they will be colorized. Normally you build up these trees (using keyboard shortcuts) for your self, for navigation while you're working and for reference later. You can also send them to other people, and they can use them to navigate (possibly changing the /usr/share/emacs22/ line first if appropriate). Note you can C-. (or C-enter, or double-click) on dirs to expand and show their files, on files to open them or expand their contents, on lines within files to jump to them, on the "!" line to run the command, and on the "##" line to expand the search (searches expand out into a sub-tree). The "- foo:" lines are ignored, and are just there for notes. The whitespace before the "| ..." lines is insignificant, so you can indent to represent the call hierarchy. --Craig --000e0cd1384662a8d9047ee09487 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Here's an example of a xiki tree you might build up when work= ing in some elisp files. =A0Could be useful for communicating about code on= mailing lists like this one. =A0Forgive me if org mode (or something else)= already does this. =A0If so please enlighten me - I'd be interested in= checking it out.

- /usr/share/emacs22/
=A0=A0- lisp/
=A0=A0 =A0- isearch.el
=A0=A0 =A0 =A0| (defun isearch-forward (&= amp;optional regexp-p no-recursive-edit)
=A0=A0 =A0 =A0 =A0| Type= \\[isearch-yank-char] to yank char from buffer onto end of search\
=A0=A0 =A0 =A0 =A0| (defun isearch-mode (forward &optional regexp = op-fun recursive-edit word-p)
=A0=A0 =A0 =A0 =A0 =A0| (defvar ise= arch-mode-map
=A0=A0 =A0 =A0 =A0 =A0 =A0| =A0 =A0 (define-key map= "\M-\C-y" 'isearch-yank-char)
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0- Not recognizing var:
=A0=A0 = =A0 =A0 =A0 =A0 =A0 =A0| (defun isearch-yank-char (&optional arg)
=

=A0=A0 =A0 =A0+ all lines using the map: ##isearch-mode= -map/

=A0=A0 =A0- You can see it compiles:
=A0=A0 =A0! ls -l
=A0=A0 =A0 =A0! -rw-r--r-- =A0 =A01 craig = =A0admin =A0 =A097058 Feb =A02 11:58 isearch.el
=A0=A0 =A0 =A0! -= rw-r--r-- =A0 =A01 craig =A0admin =A0 =A066540 Feb =A02 11:58 isearch.elc

=A0=A0- site-lisp/
=A0=A0 =A0- session.el
=A0=A0 =A0 =A0| (defcustom session-re= gisters '((?0 . ?9) ?- ?=3D ?\\ ?` region (?a . ?z))
=A0=A0 = =A0 =A0 =A0- Todo: want to include this:
=A0=A0 =A0 =A0 =A0| =A0 = CHAR or (FROM . TO) or `file' or `region' or t.

Such trees are navigable in any buffer/file (you can ju= st paste in the tree), though in note-mode they will be colorized.

Normally you build up these trees (using keyboard shortcut= s) for your self, for navigation while you're working and for reference= later. =A0You can also send them to other people, and they can use them to= navigate (possibly changing the /usr/share/emacs22/ line first if appropri= ate).

Note you can C-. (or C-enter, or double-click) on dirs = to expand and show their files, on files to open them or expand their conte= nts, on lines within files to jump to them, on the "!" line to ru= n the command, and on the "##" line to expand the search (searche= s expand out into a sub-tree). =A0The "- foo:" lines are ignored,= and are just there for notes. =A0The whitespace before the "| ...&quo= t; lines is insignificant, so you can indent to represent the call hierarch= y.

--Craig


--000e0cd1384662a8d9047ee09487--