emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-yank improvement?


From: Thorsten
Subject: Re: [O] org-yank improvement?
Date: Thu, 12 Apr 2012 15:56:05 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux)

Bastien <address@hidden> writes:

Hi Bastien,

> Thorsten <address@hidden> writes:
>
>> Memnon Anon <address@hidden> writes:
>>
>>> address@hidden (François Pinard) writes:
>>
>>>> However, by mistake, it happens that the cursor is on the only visible
>>>> bullet star of the next heading  instead of really being at the start
>>>> of the line. 
>>
>> I recently edited some org files in clean mode for the first time (It
>> might be the default mode on Worg?) and was surprised and a bit confused
>> that my cursor(point) was invisible when on the invisible bullet stars
>> at the beginning of the line. 
>> I had to move point to the (only) visible bullet star on the line to find out
>> where I am in the buffer. Maybe only a peculiarity of my color-settings,
>> but nevertheless convincing me not to use clean mode. 
>
> Then we should fix org-indent.el accordingly.
>
> (Please avoid "Clean mode" as a way to refer to org-indent, it suggests
> other views are not clean!  Maybe the doc should be updated wrt this.)
>
> I must confess I'm not a user of org-indent.  I have been testing it a
> few times and always had the feeling it goes against Org's "What You See
> is What You Have" core principle.  But let's fix bugs in it anyway.

It might not really be a bug. I just double-checked in both my console
and my X11 session, and the symptom only appears in the console session
(overlays not visible?). 

So, on a user level, the solution might be to activate org-indent-mode
conditional of the display type, something like this:

,-------------------------------------------------------------------
| (defun my-org-indent-conditional-activation-function ()
|     "Activates org-indent-mode conditional on the display type."
|     (if (display-graphic-p)
|           (setq org-indent-mode t)))
`-------------------------------------------------------------------

If Emacs is used 'the standard way', call this function once in your
.emacs should suffice. When using one Emacs daemon with many Emacsclients
in console as well as X11 sessions (as I do), this function should be
added to the server-visit-hook, so each emacsclient acts conditional on
the display-type of his session. 

-- 
cheers,
Thorsten



reply via email to

[Prev in Thread] Current Thread [Next in Thread]