emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Eric J Haywiser <ejh1@MIT.EDU>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-4.20: A few observations
Date: Mon, 10 Apr 2006 22:34:05 +0200	[thread overview]
Message-ID: <f01aac3eead441c4b859a6be3be9e3c6@science.uva.nl> (raw)
In-Reply-To: <Pine.GSO.4.62L.0604101254280.6184@mint-square.mit.edu>

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 <TAB> to go to next row: PROBLEM
>
> 3) alignment problem persists as row are added
>
> 4) Moving cursor outside table and returning then typing <TAB> does
>    not resolve the problem.

> 5) However moving outside table and typing a char, killing line,
>    etc. then returning and typing <TAB> 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

  reply	other threads:[~2006-04-10 20:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-10 17:00 org-4.20: A few observations Eric J Haywiser
2006-04-10 20:34 ` Carsten Dominik [this message]
2006-04-10 21:36 ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f01aac3eead441c4b859a6be3be9e3c6@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=ejh1@MIT.EDU \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).