From mboxrd@z Thu Jan 1 00:00:00 1970 From: Renzo Been Subject: Re: org-toc.el - browsable table of contents for Org Date: Sat, 29 Sep 2007 07:37:23 +0000 (UTC) Message-ID: References: <87hclla1lb.fsf@bzg.ath.cx> <200709241731.13418.zslevin@gmail.com> <87r6kny87i.fsf@bzg.ath.cx> <87ve9xxvfy.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IbWta-0007BI-1j for emacs-orgmode@gnu.org; Sat, 29 Sep 2007 03:37:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IbWtY-0007B5-Pr for emacs-orgmode@gnu.org; Sat, 29 Sep 2007 03:37:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbWtY-0007B2-Je for emacs-orgmode@gnu.org; Sat, 29 Sep 2007 03:37:48 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IbWtY-0004bV-0J for emacs-orgmode@gnu.org; Sat, 29 Sep 2007 03:37:48 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IbWtO-0007Mg-L4 for emacs-orgmode@gnu.org; Sat, 29 Sep 2007 07:37:38 +0000 Received: from 239.192-78-194.adsl-fix.skynet.be ([194.78.192.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Sep 2007 07:37:38 +0000 Received: from swangdoodles by 239.192-78-194.adsl-fix.skynet.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Sep 2007 07:37:38 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Bastien writes: > I must acknowledge that the boxquote stuff wrapping your e-mails always > looked a bit weird to me.. I usually see this as a way to quote emails > or code examples, not to encapsulate your own prose. True, I was kind of misusing the boxquotes. I just liked the looks of them. For e-mailing to friends that's oke, but on a mail-list like this one it looks a bit confusing... Sorry for that. > I don't see any way to make boxquotes works with the TOC anyway, since > there would be too many complexity when displaying several levels at the > same time. Agreed > But I like the idea of having some kind of margin, just as linum.el does > for line numbers: > http://stud4.tuwien.ac.at/~e0225855/linum/linum.html Yes, I had a look at linum, and it looks like a good mechanism that can be of use in the TOC. If you could make such a margin, that would be great for the TOC... > What kind of information you would like to be displayed in this margin? > (Remember there is org-toc-info already, so the margin and the echo-area > should work in a complementary way.) Maybe the margin could display how many sub-headings are below the heading that shows in the TOC? Or how many lines of text there are folded inside it? Or the number of TODO's that are below it? Or maybe it's better to keep things simple. And put no extra information in the margin? Just put two or three symbols (ones that do not conflict with org-mode) there, to make the TOC display distinguishable from the base-buffer. You could use a symbol from the utf-8 coding table. I've put some examples here: http://swangdoodles.googlepages.com/Unicodes-for-org-toc.html > I don't know "h-line"... did you mean "hl-line? I think the purpose of > global-hl-line-mode is only to highlight the current line, not several > lines. Yes, I meant hl-line... I'm using it in my agenda-views. But your right, it only works on one line. > I tried to insert this at the end of a file: > # Local Variables: > # eval: (org-show-table-of-contents) > # End: > but it requires M-x normal-mode, which I don't understand. Even by > setting both `enable-local-variables' and `enable-local-eval' to t > (which is not recommended!) ... any hint on this is welcome! When I set in my .emacs: '(enable-local-eval t) And at the bottom of the org-file: # Local Variables: # eval: (org-toc-show) # End: What happens is that the TOC-buffer does open. But it is opened as a full view buffer, not as a split screen together with the org-file What might also be handy is to limit the size of the TOC-buffer. Right now, what happens when I'm in a large org-file, and use the TOC, is that it takes over half the screen... Ciao, Renzo