From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-4.20: A few observations Date: Mon, 10 Apr 2006 22:34:05 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FT35D-0006oA-GT for emacs-orgmode@gnu.org; Mon, 10 Apr 2006 16:33:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FT35B-0006ny-V4 for emacs-orgmode@gnu.org; Mon, 10 Apr 2006 16:33:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FT35B-0006nv-ME for emacs-orgmode@gnu.org; Mon, 10 Apr 2006 16:33:57 -0400 Received: from [194.134.35.149] (helo=smtp08.wanadoo.nl) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FT39t-0005Zl-QV for emacs-orgmode@gnu.org; Mon, 10 Apr 2006 16:38:50 -0400 In-Reply-To: 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 J Haywiser Cc: emacs-orgmode@gnu.org Hi Eric, thanks for your report and careful observations. > * Observations from using org-4.19d & 4.20 > > ** Problem: table creating with bracket link with font-lock enabled [...] > 1) Create a table row with links: OK > > 2) with cursor at "x" press to go to next row: PROBLEM > > 3) alignment problem persists as row are added > > 4) Moving cursor outside table and returning then typing does > not resolve the problem. > 5) However moving outside table and typing a char, killing line, > etc. then returning and typing fixes alignment First of all, if anything goes wrong with table realignment, you can always force a realign of the table with C-c C-c which in Org-mode generally has the meaning of "update" (exception: tags). The org-mode table editor works by re-aligning the table each time you press TAB or RET in a table. When the tables get large, this constant re-aligning does get kind of slow, so the table editor tries to be really smart and do the re-alignment only if necessary. For example, it inserts and deletes characters in table fields, and if the column width is not affected, it does not trigger a re-align. And it also tries to re-insert new rows without triggering a re-align. This has worked really well so far, but indeed with hiding of link text the code inserting a new row without triggering re-align is broken. For now I will fix it by triggering a re-align whenever a new line is inserted. When I get around to it I will fix the insertion code (which is a bit more complicated. The reason why leaving the table, doing a buffer modification, getting back into the table and pressing TAB fixes the indentation is precisely because then Org-mode know the buffer has changed and a re-align might be necessary, so it triggers one. > 6) Alignment after HTML export is correct ;) Yes, this is fully independent. > > ** Problem: ispell hangs in org buffers with bracket links when font > lock is on > > N.B. This is probably an old ispell. Can someone running a > newer version confirm this behavior? I have tried quickly and not seen a problem with 3.6 - but I did not test exhaustively. > > ispell-version's value is > "ispell.el 3.4 -- Fri Aug 4 09:41:50 PDT 2000" > > ** Problem: Strange edit behavior with links > > *** Kill-line behavior depends on font lock state with links in column > 0 > Consider the following pair of links with the cursor on the > blank line between them, executing kill-line > kills next two lines when font lock mode is on but only one line when > font lock mode is off. > > [[http://www.google.com][Google]] > > [[http://www.google.com][Google]] > > *** Not a problem for links in column >1 > > [[http://www.google.com][Google]] > > [[http://www.google.com][Google]] > > [[http://www.google.com][Google]] > > [[http://www.google.com][Google]] This is interesting, but right now I don't know how to fix this. Hmmm. I guess this really is an Emacs bug. > ** Observation: TODO sequences and dynamic setting of org-todo-keywords When starting Org-mode, a number of regular expressions are computed and set. Among others, there are the regular expressions matching the TODO keywords and other settings. When you change the settings while Emacs is running, these expressions need to be re-computed. M-x normal-mode does simply restart Org-mode and trigger this. For the same money you could do M-x fundamental-mode and then M-x org-mode. The only way to avoid this would be to compute the regular expressions again before each command using them, which I find not acceptable. The best way to experiment with TODO keywords in *not* putting Lisp code into the buffer and eval it with eval-region. It is much better to use #+TYP_TODO: TODO WAITING DONE in the buffer and then press C-c C-c when you have changed one of those lines to update. > If so, this may be something to put in the info files. I am also > aware that normal-mode is required after updating HTML style > specifications. I don't think this is true, is it? Which specifications? > However, it may be pleasing for newbies to understand the > reason. C-h f normal-mode isn't particularly illuminating in this > regard. I have tried to explain this well in the documents, but I guess it can be improved. Yes I am not saying much about the "why", but you are the first to care :-) I'll take another look at the documentation and see if this can be improved. - Carsten