From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Dynamically adjusti tags position Date: Thu, 09 Jul 2009 03:49:41 +0200 Message-ID: <87vdm2eibu.fsf@bzg.ath.cx> References: <87zlbewv58.fsf@in-ulm.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOilm-0002eQ-RY for emacs-orgmode@gnu.org; Wed, 08 Jul 2009 21:49:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOili-0002c8-AE for emacs-orgmode@gnu.org; Wed, 08 Jul 2009 21:49:54 -0400 Received: from [199.232.76.173] (port=33807 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOili-0002c5-73 for emacs-orgmode@gnu.org; Wed, 08 Jul 2009 21:49:50 -0400 Received: from rv-out-0708.google.com ([209.85.198.251]:44727) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MOilh-0007s1-PC for emacs-orgmode@gnu.org; Wed, 08 Jul 2009 21:49:49 -0400 Received: by rv-out-0708.google.com with SMTP id c5so653425rvf.2 for ; Wed, 08 Jul 2009 18:49:48 -0700 (PDT) In-Reply-To: <87zlbewv58.fsf@in-ulm.de> (Benjamin Andresen's message of "Thu, 09 Jul 2009 02:35:31 +0200") 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: Benjamin Andresen Cc: emacs-orgmode@gnu.org Hi Benjamin, Benjamin Andresen writes: > I wrote a bit of code that allows me to have the tags always at the > utmost right position in the file... I often have windows that are > bigger than the standard 80 characters wide default and I dislike seeing > the tags in the middle of the window. I see... > I started doing this and found out that adjusting the tags every time I > resize a window breaks tracking org-mode files with git. If the last > window is just a bit smaller than last time, the complete line will be > shown as a diff. Therefor hooks are used to reset the column variable to > 1 so that git tracking still works. Maybe a safer solution would be to use an overlay for displaying tags. This way you don't need to worry that changes in the tag display will be seen as a diff. But maybe there are already too many overlays on an Org page... > If anyone wants to use this or want to look over it if I could do this > smarter, I'm very happy. I tried it. Just replace defcustom by setq, because the defcustom definition is wrong here. It works very well for small files, but the hooks are slowing down Emacs display for big files (i.e. the 400k Org file in which I spend my daily life.) Perhaps using overlays would also fix this... > If the response is positive I'll clean it up a bit and maybe it is worth > a contribution or a worg page. :-) Definitely worth a new "Org hacks" entry! http://orgmode.org/worg/org-hacks.php Just send me your username on repo.or.cz. Thanks! -- Bastien