From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Fran=C3=A7ois_Pinard?= Subject: Re: [NEW FEATURE] org-hlc.el - hidden-lines-cookies (hlc) for Org-mode Date: Fri, 24 May 2013 11:49:21 -0400 Message-ID: <86a9nktm2m.fsf@iro.umontreal.ca> References: <87zjvmiw1k.fsf@gmail.com> <6219E7E2-9951-4B05-A977-DE0DD1B120BE@gmail.com> <87a9nkcwnc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfuFD-0003Cd-KE for emacs-orgmode@gnu.org; Fri, 24 May 2013 11:49:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfuF8-0007UR-MA for emacs-orgmode@gnu.org; Fri, 24 May 2013 11:49:27 -0400 Received: from bureau.ubity.com ([64.254.249.42]:34942 helo=mercure.bureau.ubity.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfuF8-0007UA-In for emacs-orgmode@gnu.org; Fri, 24 May 2013 11:49:22 -0400 In-Reply-To: <87a9nkcwnc.fsf@gmail.com> (Thorsten Jolitz's message of "Fri, 24 May 2013 15:52:55 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Thorsten Jolitz writes: > it happened again [...]- Fran=C3=A7ois Pinard already had a fully fledged > implementation of my "new" org-mode feature: 'org-weights.el' You're quite generous when you say "full fledged" :-). There are many details in which I find org-weights.el unsatisfactory, but as it is sufficient as it stands for my day-to-day usage, I'm not overly pushing on it (the pun is purely accidental). > | * Header 1 * 2 + 1... > | ## * Header 1 [#1] I find the "* 2 + 1" far too verbose, in that it uses too much horizontal space, I much prefer the compact aspect of "[#1]". What would be ideal, but I do not know if it can be organized, would keep the weights or hidden-lines information always glued to the ellipsis, and not hiding any underlying text as org-weights currently does. On the other hand, there are some virtue to the vertical alignment of weight information. Sigh! Nothing is perfect... > [...] shows the overlay-info for *all* headlines except the one where > point is on. That exception is a sad and questionable workaround, for being able to edit the current line. When, in normal and standard Org mode, I edit a line which has an ellipsis at the end, I may edit the line like any other one without seeing undesired effects. org-weights should be equally capable, and there should be no reason (ideally) to hide the information for the line where the point is, merely for editing to work. > one problem I hit is that a visibility change does not uptdate all > cookies/weights at once, they are only updated headline per headline > when point is moved up and down. Is that for performance reasons? See the Caveats section at the end of org-weights documentation. Normally, the information to be updated may be minimized to the header above the line holding point, and then, recursively up. But there is a bug in this optimization when a header is demoted (as explained in Caveats). Another performance-related detail is the quadratic behaviour which may be seen in big, deeply nested Org files: it could be avoided by cleverly saving (in a hidden way) information on computations already done, and reusing it instead of recomputing it many times. But as usual with most cached optimization, it is difficult to get fully right. Fran=C3=A7ois