all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org mode alignment problem
@ 2014-03-23 15:22 Guido Van Hoecke
  2014-03-23 17:59 ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Guido Van Hoecke @ 2014-03-23 15:22 UTC (permalink / raw)
  To: emacs-orgmode

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.

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

* Re: org mode alignment problem
  2014-03-23 15:22 org mode alignment problem Guido Van Hoecke
@ 2014-03-23 17:59 ` Bastien
  2014-03-23 19:20   ` Guido Van Hoecke
  0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2014-03-23 17:59 UTC (permalink / raw)
  To: Guido Van Hoecke; +Cc: emacs-orgmode

Hi Guido,

Guido Van Hoecke <guivho@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

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

* Re: org mode alignment problem
  2014-03-23 17:59 ` Bastien
@ 2014-03-23 19:20   ` Guido Van Hoecke
  2014-03-23 20:23     ` Guido Van Hoecke
  2014-03-23 20:48     ` Bastien
  0 siblings, 2 replies; 7+ messages in thread
From: Guido Van Hoecke @ 2014-03-23 19:20 UTC (permalink / raw)
  To: Bastien; +Cc: orgmode

Hi Bastien,

Bastien <bzg@gnu.org> writes:

> Hi Guido,
>
> Guido Van Hoecke <guivho@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

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

* Re: org mode alignment problem
  2014-03-23 19:20   ` Guido Van Hoecke
@ 2014-03-23 20:23     ` Guido Van Hoecke
  2014-03-23 20:48     ` Bastien
  1 sibling, 0 replies; 7+ messages in thread
From: Guido Van Hoecke @ 2014-03-23 20:23 UTC (permalink / raw)
  To: Bastien; +Cc: orgmode

Hi Bastien,

Guido Van Hoecke <guivho@gmail.com> writes:

> Hi Bastien,
>
> Bastien <bzg@gnu.org> writes:
>
>> Hi Guido,
>>
>> Guido Van Hoecke <guivho@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.]

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

* Re: org mode alignment problem
  2014-03-23 19:20   ` Guido Van Hoecke
  2014-03-23 20:23     ` Guido Van Hoecke
@ 2014-03-23 20:48     ` Bastien
  2014-03-23 21:51       ` Guido Van Hoecke
  1 sibling, 1 reply; 7+ messages in thread
From: Bastien @ 2014-03-23 20:48 UTC (permalink / raw)
  To: Guido Van Hoecke; +Cc: orgmode

Hi Guido,

Guido Van Hoecke <guivho@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

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

* Re: org mode alignment problem
  2014-03-23 20:48     ` Bastien
@ 2014-03-23 21:51       ` Guido Van Hoecke
  2014-03-24 20:53         ` Guido Van Hoecke
  0 siblings, 1 reply; 7+ messages in thread
From: Guido Van Hoecke @ 2014-03-23 21:51 UTC (permalink / raw)
  To: Bastien; +Cc: orgmode

Hi Bastien,

Bastien <bzg@gnu.org> writes:

> Hi Guido,
>
> Guido Van Hoecke <guivho@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.

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

* Re: org mode alignment problem
  2014-03-23 21:51       ` Guido Van Hoecke
@ 2014-03-24 20:53         ` Guido Van Hoecke
  0 siblings, 0 replies; 7+ messages in thread
From: Guido Van Hoecke @ 2014-03-24 20:53 UTC (permalink / raw)
  To: Bastien; +Cc: orgmode

Bastien,

On 23 March 2014 22:51, Guido Van Hoecke <guivho@gmail.com> wrote:
> Hi Bastien,
>
> Bastien <bzg@gnu.org> writes:
>
>> Hi Guido,
>>
>> Guido Van Hoecke <guivho@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

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

end of thread, other threads:[~2014-03-24 20:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-23 15:22 org mode alignment problem Guido Van Hoecke
2014-03-23 17:59 ` Bastien
2014-03-23 19:20   ` Guido Van Hoecke
2014-03-23 20:23     ` Guido Van Hoecke
2014-03-23 20:48     ` Bastien
2014-03-23 21:51       ` Guido Van Hoecke
2014-03-24 20:53         ` Guido Van Hoecke

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.