emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* fontification strikethrough unpleasantness with error forms in tables
@ 2007-06-06 17:37 William Henney
  2007-06-06 17:47 ` William Henney
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: William Henney @ 2007-06-06 17:37 UTC (permalink / raw)
  To: emacs-orgmode

Hi list

Consider the following table:

         | line | variance             | mean               |
         |------+----------------------+--------------------|
         | oiii | 115.1801 +/- 37.7650 | 18.6588 +/- 2.6645 |
         | ha   | 197.3689 +/- 35.9261 | 19.5581 +/- 2.8181 |
         | nii  | 107.8689 +/- 32.3098 | 20.4745 +/- 2.9728 |
         |------+----------------------+--------------------|

Org seems to assume that the + in the bottom right cell and the first
+ in bottom hline are matching strikethrough indicators and fontifies
it accordingly! Is it possible to fix this?

Cheers

Will

P.S. I tried "#+OPTIONS: *:nil" but this has no effect

-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: fontification strikethrough unpleasantness with error forms in tables
  2007-06-06 17:37 fontification strikethrough unpleasantness with error forms in tables William Henney
@ 2007-06-06 17:47 ` William Henney
  2007-06-07  5:38 ` Carsten Dominik
  2007-06-07  7:23 ` Giovanni Ridolfi
  2 siblings, 0 replies; 9+ messages in thread
From: William Henney @ 2007-06-06 17:47 UTC (permalink / raw)
  To: emacs-orgmode

In the meantime, I have discovered a work-around is to add a blank row
to the table before the hline:

         | line | variance             | mean               |
         |------+----------------------+--------------------|
         | oiii | 115.1801 +/- 37.7650 | 18.6588 +/- 2.6645 |
         | ha   | 197.3689 +/- 35.9261 | 19.5581 +/- 2.8181 |
         | nii  | 107.8689 +/- 32.3098 | 20.4745 +/- 2.9728 |
         |      |                      |                    |
         |------+----------------------+--------------------|

Cheers

Will

On 6/6/07, William Henney <whenney@gmail.com> wrote:
> Hi list
>
> Consider the following table:
>
>          | line | variance             | mean               |
>          |------+----------------------+--------------------|
>          | oiii | 115.1801 +/- 37.7650 | 18.6588 +/- 2.6645 |
>          | ha   | 197.3689 +/- 35.9261 | 19.5581 +/- 2.8181 |
>          | nii  | 107.8689 +/- 32.3098 | 20.4745 +/- 2.9728 |
>          |------+----------------------+--------------------|
>
> Org seems to assume that the + in the bottom right cell and the first
> + in bottom hline are matching strikethrough indicators and fontifies
> it accordingly! Is it possible to fix this?
>
> Cheers
>
> Will
>
> P.S. I tried "#+OPTIONS: *:nil" but this has no effect
>
> --
>
>   Dr William Henney, Centro de Radioastronomía y Astrofísica,
>   Universidad Nacional Autónoma de México, Campus Morelia
>


-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: fontification strikethrough unpleasantness with error forms in tables
  2007-06-06 17:37 fontification strikethrough unpleasantness with error forms in tables William Henney
  2007-06-06 17:47 ` William Henney
@ 2007-06-07  5:38 ` Carsten Dominik
  2007-06-07  7:23 ` Giovanni Ridolfi
  2 siblings, 0 replies; 9+ messages in thread
From: Carsten Dominik @ 2007-06-07  5:38 UTC (permalink / raw)
  To: William Henney; +Cc: emacs-orgmode

I am not able to reproduce this.....

- Carsten

On Jun 6, 2007, at 19:37, William Henney wrote:

> Hi list
>
> Consider the following table:
>
>         | line | variance             | mean               |
>         |------+----------------------+--------------------|
>         | oiii | 115.1801 +/- 37.7650 | 18.6588 +/- 2.6645 |
>         | ha   | 197.3689 +/- 35.9261 | 19.5581 +/- 2.8181 |
>         | nii  | 107.8689 +/- 32.3098 | 20.4745 +/- 2.9728 |
>         |------+----------------------+--------------------|
>
> Org seems to assume that the + in the bottom right cell and the first
> + in bottom hline are matching strikethrough indicators and fontifies
> it accordingly! Is it possible to fix this?
>
> Cheers
>
> Will
>
> P.S. I tried "#+OPTIONS: *:nil" but this has no effect
>
> -- 
>
>  Dr William Henney, Centro de Radioastronomía y Astrofísica,
>  Universidad Nacional Autónoma de México, Campus Morelia
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: fontification strikethrough unpleasantness with error forms in tables
  2007-06-06 17:37 fontification strikethrough unpleasantness with error forms in tables William Henney
  2007-06-06 17:47 ` William Henney
  2007-06-07  5:38 ` Carsten Dominik
@ 2007-06-07  7:23 ` Giovanni Ridolfi
  2007-06-07 14:00   ` William Henney
  2 siblings, 1 reply; 9+ messages in thread
From: Giovanni Ridolfi @ 2007-06-07  7:23 UTC (permalink / raw)
  To: emacs-orgmode

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="it@euro", Size: 761 bytes --]

On Wed, Jun 06, 2007 at 12:37:13PM -0500, William Henney wrote:
>         | line | variance             | mean               |
>         |------+----------------------+--------------------|
>         | oiii | 115.1801 +/- 37.7650 | 18.6588 +/- 2.6645 |
>         | ha   | 197.3689 +/- 35.9261 | 19.5581 +/- 2.8181 |
>         | nii  | 107.8689 +/- 32.3098 | 20.4745 +/- 2.9728 |
>         |------+----------------------+--------------------|
> 
> Org seems to assume that the + in the bottom right cell and the first
> + in bottom hline are matching strikethrough indicators and fontifies
> it accordingly! Is it possible to fix this?
> 
I can't reproduce this either.
However did you consider using the symbol  " ± " ? ;-))

cheers, 
Giovanni

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: fontification strikethrough unpleasantness with error forms in tables
  2007-06-07  7:23 ` Giovanni Ridolfi
@ 2007-06-07 14:00   ` William Henney
  2007-06-07 14:31     ` Giovanni Ridolfi
  0 siblings, 1 reply; 9+ messages in thread
From: William Henney @ 2007-06-07 14:00 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1709 bytes --]

> I can't reproduce this either.

Strange. I'm attaching a (heavily compressed) screen shot that
illustrates the problem. (Please let me know if this is a breach of
list etiquette...)

This is what I get when I do "C-u C-x =" on one of the characters in
the problem area:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  character: 0 (48, #o60, #x30, U+0030)
    charset: ascii (ASCII (ISO646 IRV))
 code point: #x30
     syntax: w 	which means: word
   category: a:ASCII l:Latin
buffer code: #x30
  file code: #x30 (encoded by coding system undecided-unix)
    display: by this font (glyph code)
     -apple-monaco-medium-r-normal--14-140-72-72-m-140-iso10646-1 (#x30)

There are text properties here:
  face                 (:strike-through t org-table)
  font-lock-multiline  t
  fontified            t
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Does it have something to do with the font-lock-multiline variable?

> However did you consider using the symbol  " ± " ? ;-))

Funnily enough, I had thought of that. This is OK so long as as you
are not using formulae, but calc will not interpret a ± b correctly as
an error form.

Slightly off-topic, but another problem I had with using unicode math
characters in tables is that the special characters (e.g., √〈α²〉) are
variable width, even though I use what is supposedly a fixed-width
font. I imagine that this is very system specific (I'm using aquamacs
on os x), but I wonder if anyone on the list has a solution to this
(on any system...).

Cheers

Will

-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia

[-- Attachment #2: orgstrikethrough.jpg --]
[-- Type: image/jpeg, Size: 8620 bytes --]

[-- Attachment #3: Type: text/plain, Size: 149 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Re: fontification strikethrough unpleasantness with error forms in tables
  2007-06-07 14:00   ` William Henney
@ 2007-06-07 14:31     ` Giovanni Ridolfi
  2007-06-08 17:00       ` William Henney
  0 siblings, 1 reply; 9+ messages in thread
From: Giovanni Ridolfi @ 2007-06-07 14:31 UTC (permalink / raw)
  To: emacs-orgmode

On Thu, Jun 07, 2007 at 09:00:25AM -0500, William Henney wrote:
> >I can't reproduce this either.
> 
> Strange. I'm attaching a (heavily compressed) screen shot that
> illustrates the problem. 
> (I'm using aquamacs
> on os x), but I wonder if anyone on the list has a solution to this
So If I'm correct: 
Operating system  Mac OsX ... version?
emacs version     aquamacs ?     
org-mode version           ?

here I have:  
winxp, 
GNU Emacs 22.0.990.1 (i386-mingw-nt5.1.2600) of 2007-05-23 on
LENNART-69DE564 (patched)
Org-mode version 4.67c

Cheers,
Giovanni

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Re: fontification strikethrough unpleasantness with error forms in tables
  2007-06-07 14:31     ` Giovanni Ridolfi
@ 2007-06-08 17:00       ` William Henney
  2007-06-09  8:33         ` Carsten Dominik
  0 siblings, 1 reply; 9+ messages in thread
From: William Henney @ 2007-06-08 17:00 UTC (permalink / raw)
  To: emacs-orgmode

On 6/7/07, Giovanni Ridolfi <gio.rido@tiscali.it> wrote:
> So If I'm correct:
> Operating system  Mac OsX ... version?
> emacs version     aquamacs ?
> org-mode version           ?
>
> here I have:
> winxp,
> GNU Emacs 22.0.990.1 (i386-mingw-nt5.1.2600) of 2007-05-23 on
> LENNART-69DE564 (patched)
> Org-mode version 4.67c
>

Yes, you are quite right that I should have reported my system
details. I have now run some more extensive tests and I can reproduce
the strikethrough problem using a recent build of vanilla emacs,
disabling all my customizations and without loading any extra packages
(apart from org-mode):

GNU Emacs 22.1.50 (powerpc-apple-darwin7.9.0, Carbon Version 1.6.0) of
2007-06-05 on applecore.inf.ed.ac.uk

This is with org version 4.77 and the only contents of my .emacs are as follows:

(add-to-list 'load-path (expand-file-name "~/emacs/lisp/org"))
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-directory "~/Org/")

Note that the problem does not exist with the version of org that
ships with emacs (4.67c)

Can anyone else reproduce the bug?

Cheers

Will


-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: fontification strikethrough unpleasantness with error forms in tables
  2007-06-08 17:00       ` William Henney
@ 2007-06-09  8:33         ` Carsten Dominik
  2007-06-09 16:21           ` William Henney
  0 siblings, 1 reply; 9+ messages in thread
From: Carsten Dominik @ 2007-06-09  8:33 UTC (permalink / raw)
  To: William Henney; +Cc: emacs-orgmode

I have the latest CVS emacs and still cannot reproduce this.

Until I can, I would not know how to fix it.

- Carsten

On Jun 8, 2007, at 19:00, William Henney wrote:

> On 6/7/07, Giovanni Ridolfi <gio.rido@tiscali.it> wrote:
>> So If I'm correct:
>> Operating system  Mac OsX ... version?
>> emacs version     aquamacs ?
>> org-mode version           ?
>>
>> here I have:
>> winxp,
>> GNU Emacs 22.0.990.1 (i386-mingw-nt5.1.2600) of 2007-05-23 on
>> LENNART-69DE564 (patched)
>> Org-mode version 4.67c
>>
>
> Yes, you are quite right that I should have reported my system
> details. I have now run some more extensive tests and I can reproduce
> the strikethrough problem using a recent build of vanilla emacs,
> disabling all my customizations and without loading any extra packages
> (apart from org-mode):
>
> GNU Emacs 22.1.50 (powerpc-apple-darwin7.9.0, Carbon Version 1.6.0) of
> 2007-06-05 on applecore.inf.ed.ac.uk
>
> This is with org version 4.77 and the only contents of my .emacs are 
> as follows:
>
> (add-to-list 'load-path (expand-file-name "~/emacs/lisp/org"))
> (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
> (define-key global-map "\C-cl" 'org-store-link)
> (define-key global-map "\C-ca" 'org-agenda)
> (setq org-directory "~/Org/")
>
> Note that the problem does not exist with the version of org that
> ships with emacs (4.67c)
>
> Can anyone else reproduce the bug?
>
> Cheers
>
> Will
>
>
> -- 
>
>  Dr William Henney, Centro de Radioastronomía y Astrofísica,
>  Universidad Nacional Autónoma de México, Campus Morelia
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: fontification strikethrough unpleasantness with error forms in tables
  2007-06-09  8:33         ` Carsten Dominik
@ 2007-06-09 16:21           ` William Henney
  0 siblings, 0 replies; 9+ messages in thread
From: William Henney @ 2007-06-09 16:21 UTC (permalink / raw)
  To: emacs-orgmode

On 6/9/07, Carsten Dominik <dominik@science.uva.nl> wrote:
> I have the latest CVS emacs and still cannot reproduce this.
>
> Until I can, I would not know how to fix it.

Yeah, I appreciate that. I will put in some more effort to pin down
the exact conditions needed to trigger the bug. Won't be for a few
days though - too much real work to do ....

Cheers

Will


-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-06-09 16:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-06 17:37 fontification strikethrough unpleasantness with error forms in tables William Henney
2007-06-06 17:47 ` William Henney
2007-06-07  5:38 ` Carsten Dominik
2007-06-07  7:23 ` Giovanni Ridolfi
2007-06-07 14:00   ` William Henney
2007-06-07 14:31     ` Giovanni Ridolfi
2007-06-08 17:00       ` William Henney
2007-06-09  8:33         ` Carsten Dominik
2007-06-09 16:21           ` William Henney

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).