Re: [O] org mode alignment problem

2014-03-24 Thread Guido Van Hoecke
Bastien,

On 23 March 2014 22:51, Guido Van Hoecke gui...@gmail.com wrote:
 Hi Bastien,

 Bastien b...@gnu.org writes:

 Hi Guido,

 Guido Van Hoecke gui...@gmail.com writes:

 The problem remains if I replace '[' and ']' with either '{' and
 '}' or '(' and ')'.

 It disappears if I replace them by e.g. '#' and '+'.

 I smell a bad interaction with some other package.

 Can you reproduce the problem with emacs -q (loading Org
 from master, since you're using this Org version)?

 Nope.

 If the problem disappear when you don't load your emacs.el,
 then maybe you can bisect and see what's wrong there.

 I'll investigate this tomorrow and report back with the name of the
 culprit :)

Here's the culprit:
(require 'linum)
(global-linum-mode)

Turning global-linum-mode off solved the problem, as far as I can tell now.

Thanks for your help and time.

Guido



[O] org mode alignment problem

2014-03-23 Thread Guido Van Hoecke
Hi,

Emacs org mode aligns strangely and I wonder whether that could be due
to my setup.

Using a small 5 line input file:

* 1
** capello [ka-PEL-lo]
** cappello [kap-PEL-lo]
** bello [BEL-lo]
** caffè [kaf-FÈ]

I have org-hide-leading-stars set to t so leading stars are displayed
as spaces. I'll use _ to show them hereafter for clarity.

Initially the file shows as expected:

* 1
_* capello [ka-PEL-lo]
_* cappello [kap-PEL-lo]
_* bello [BEL-lo]
_* caffè [kaf-FÈ]

My cursor sits below the last line in the file.

When I put the cusor behind the last character of the last line, the
displayed portion of this line moves one position to the left and the
buffer displays as:

* 1
_* capello [ka-PEL-lo]
_* cappello [kap-PEL-lo]
_* bello [BEL-lo]
* caffè [kaf-FÈ]

When I hit the up arrow, it looks like this:
* 1
_* capello [ka-PEL-lo]
_* cappello [kap-PEL-lo]
* bello [BEL-lo]
_* caffè [kaf-FÈ]

I now hit the down arrow twice, and this is how it looks now:
* 1
_* capello [ka-PEL-lo]
_* cappello [kap-PEL-lo]
* bello [BEL-lo]
* caffè [kaf-FÈ]

Hitting one more down arrow, it reverts to the orignal expected display:
* 1
_* capello [ka-PEL-lo]
_* cappello [kap-PEL-lo]
_* bello [BEL-lo]
_* caffè [kaf-FÈ]

If this works as expected, I would at least like to understand this
behaviour.

But I'm pretty sure this is not normal, so any help or suggestion
would be usefull.

I am using 

Org-mode version 8.2.5h 
(release_8.2.5h-830-gb3a10b @ /Users/guivho/.emacs.d/org-mode/lisp/)

GNU Emacs 24.3.1
(x86_64-apple-darwin, NS apple-appkit-1187.37) of 2013-05-18.

TIA,


Guido

--
The Following Subsume All Physical and Human Laws:

1. You can't push on a string.
2. Ain't no free lunches.
3. Them as has, gets.
4. You can't win them all, but you sure as hell can lose them all.



Re: [O] org mode alignment problem

2014-03-23 Thread Bastien
Hi Guido,

Guido Van Hoecke gui...@gmail.com writes:

 But I'm pretty sure this is not normal, so any help or suggestion
 would be usefull.

Yes, this is not normal.  Can you try

M-x global-font-lock-mode RET

to prevent the hiding of leading stars and

M-x visible-mode RET

to prevent invisibility properties?

This will help figure out what's wrong.

Thanks,

-- 
 Bastien



Re: [O] org mode alignment problem

2014-03-23 Thread Guido Van Hoecke
Hi Bastien,

Bastien b...@gnu.org writes:

 Hi Guido,

 Guido Van Hoecke gui...@gmail.com writes:

 But I'm pretty sure this is not normal, so any help or suggestion
 would be usefull.

 Yes, this is not normal.  Can you try

 M-x global-font-lock-mode RET

 to prevent the hiding of leading stars and

 M-x visible-mode RET

 to prevent invisibility properties?

 This will help figure out what's wrong.


Basically it's the same behaviour. The level 2 lines display as

_** text

or

** text

FWIW, I'am pretty sure it is related to the presence of bracket
pairs.

The problem remains if I replace '[' and ']' with either '{' and
'}' or '(' and ')'.

It disappears if I replace them by e.g. '#' and '+'.

HTH,


Guido

--
Everything should be made as simple as possible, but not simpler.
-- Albert Einstein



Re: [O] org mode alignment problem

2014-03-23 Thread Guido Van Hoecke
Hi Bastien,

Guido Van Hoecke gui...@gmail.com writes:

 Hi Bastien,

 Bastien b...@gnu.org writes:

 Hi Guido,

 Guido Van Hoecke gui...@gmail.com writes:

 But I'm pretty sure this is not normal, so any help or suggestion
 would be usefull.

 Yes, this is not normal.  Can you try

 M-x global-font-lock-mode RET

 to prevent the hiding of leading stars and

 M-x visible-mode RET

 to prevent invisibility properties?

 This will help figure out what's wrong.


 Basically it's the same behaviour. The level 2 lines display as

 _** text

 or

 ** text

 FWIW, I'am pretty sure it is related to the presence of bracket
 pairs.

 The problem remains if I replace '[' and ']' with either '{' and
 '}' or '(' and ')'.

 It disappears if I replace them by e.g. '#' and '+'.

This me be a hasty conclusion. Let's stick with 'far less frequent' as I
am also experiencing the problem very sporadically with a file that has
no brackets.


Guido

--
Populus vult decipi.
[The people like to be deceived.]



Re: [O] org mode alignment problem

2014-03-23 Thread Bastien
Hi Guido,

Guido Van Hoecke gui...@gmail.com writes:

 The problem remains if I replace '[' and ']' with either '{' and
 '}' or '(' and ')'.

 It disappears if I replace them by e.g. '#' and '+'.

I smell a bad interaction with some other package.

Can you reproduce the problem with emacs -q (loading Org
from master, since you're using this Org version)?

If the problem disappear when you don't load your emacs.el,
then maybe you can bisect and see what's wrong there.

Best,

-- 
 Bastien



Re: [O] org mode alignment problem

2014-03-23 Thread Guido Van Hoecke
Hi Bastien,

Bastien b...@gnu.org writes:

 Hi Guido,

 Guido Van Hoecke gui...@gmail.com writes:

 The problem remains if I replace '[' and ']' with either '{' and
 '}' or '(' and ')'.

 It disappears if I replace them by e.g. '#' and '+'.

 I smell a bad interaction with some other package.

 Can you reproduce the problem with emacs -q (loading Org
 from master, since you're using this Org version)?

Nope.

 If the problem disappear when you don't load your emacs.el,
 then maybe you can bisect and see what's wrong there.

I'll investigate this tomorrow and report back with the name of the
culprit :)


Guido

--
The government has just completed work on a missile that turned out
to be a bit of a boondoggle; nicknamed Civil Servant, it won't work
and they can't fire it.