From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cassio Koshikumo Subject: Re: Synopsis view - moving trees around based on a synopsis Date: Sun, 12 Dec 2010 22:33:53 -0200 Message-ID: References: <877hfe28qt.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=47106 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRwMp-00082C-Sk for emacs-orgmode@gnu.org; Sun, 12 Dec 2010 19:34:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRwMo-0000cs-Mx for emacs-orgmode@gnu.org; Sun, 12 Dec 2010 19:34:15 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:51671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PRwMo-0000cQ-EO for emacs-orgmode@gnu.org; Sun, 12 Dec 2010 19:34:14 -0500 Received: by wwb17 with SMTP id 17so5692952wwb.30 for ; Sun, 12 Dec 2010 16:34:13 -0800 (PST) In-Reply-To: <877hfe28qt.fsf@ucl.ac.uk> 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: Eric S Fraga Cc: Matt Lundin , emacs-orgmode@gnu.org, Carsten Dominik Oh, I definitely think you should keep the ellipsis if you like them; that was only a suggestion. I'm working without them for a while and it's really not that bad, at least for me. But the idea of using unicode glyphs is nice. Gonna try it. Now, an update: after playing with the function a little more, I came to a new version. Its behavior is a bit different: it'll only show the synopsis of VISIBLE subtrees. That's useful because now you can use the synopsis view on a sparse tree; before, it would go to Contents view automatically. (So, to replicate the old behavior, you just need to go to Contents view with S-TAB before entering synopsis view). Again, if anyone knows how to improve it, please leave a note. (defun k-synopsis-view () (interactive) (save-excursion (goto-char (point-min)) (while (outline-next-heading) (when (not (org-invisible-p)) (hide-entry) (let ((end (save-excursion (outline-next-heading) (point)))) (when (re-search-forward "\\(^[ \t]*:SYNOPSIS:[. \t]*$\\)" end t) (org-flag-drawer nil) (re-search-forward "^[ \t]*:END:[ \t]*" nil t) (outline-flag-region (match-beginning 0) (match-end 0) t) )))) )) 2010/12/12 Eric S Fraga : > Cassio Koshikumo writes: > > > [...] > >> 3. For even better results, I recommend setting org-ellipsis to " ": >> >> (setq org-ellipsis " ") > > You may wish to set this to something still conveys the hiding of text > but which may look a little less "dirty", as you say. =C2=A0Maybe somethi= ng > like " =E2=96=B7" (space followed by unicode character #x25b7, also known= as a > white right-pointing triangle)? =C2=A0This works quite nicely for me. =C2= =A0I > would find having a blank alone scary or, at best, confusing? > > -- > : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 > : using Org-mode version 7.4 (release_7.4.10.g93135f) > --=20 C=C3=A1ssio Koshikumo