Re: org-return not being given 't' for INDENT parameter

2022-10-20 Thread Ihor Radchenko
jebb Bungo  writes:

> I am having an odd behavior with org-return. I use hard indents, and I have
> set 'org-adapt-indentation' to t in my .emacs file. However, I have noticed
> that sometimes when I press RET under a heading, instead of getting an
> indent to match the indentation of the heading after the *'s, point is set
> right at 0. For example, the expected behavior of pressing RET at the end
> of the line '* Heading' would be that point is placed on the next line
> below the heading, at column 2.
>
> I am having an issue pinpointing what is causing the error, however, as I
> haven't found any consistency. Sometimes RET works as expected in my files,
> othertimes it does not. The bug does seem to only 'fix' in between
> instances of Emacs. I run Emacs as a daemon, and I noticed that sometimes
> the files will work and other times not work, but only between instances of
> the daemon/between system boots.

Sorry for the late reply.
Are you still seeing the problem?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: org-return not being given 't' for INDENT parameter

2022-10-13 Thread Ihor Radchenko
jebb Bungo  writes:

> I am having an odd behavior with org-return. I use hard indents, and I have 
> set 'org-adapt-indentation' to t in my .emacs file. However, I have noticed 
> that sometimes when I press RET under a heading, instead of getting an indent 
> to match the indentation of the heading after the *'s, point is set right at 
> 0. For example, the expected behavior of pressing RET at the end of the line 
> '* Heading' would be that point is placed on the next line below the heading, 
> at column 2.
>
> I am having an issue pinpointing what is causing the error, however, as I 
> haven't found any consistency. Sometimes RET works as expected in my files, 
> othertimes it does not. The bug does seem to only 'fix' in between instances 
> of Emacs. I run Emacs as a daemon, and I noticed that sometimes the files 
> will work and other times not work, but only between instances of the 
> daemon/between system boots.

Sorry for the late reply.
Are you still experiencing the problem?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: org-return not being given 't' for INDENT parameter

2022-04-04 Thread jebb Bungo
From: jebb Bungo 
Sent: Thu, 31 Mar 2022 10:14:43 -0400
To: zixx...@gmail.com 
Subject: org-return not being given 't' for INDENT parameter

Hello,

I am having an odd behavior with org-return. I use hard indents, and I have set 
'org-adapt-indentation' to t in my .emacs file. However, I have noticed that 
sometimes when I press RET under a heading, instead of getting an indent to 
match the indentation of the heading after the *'s, point is set right at 0. 
For example, the expected behavior of pressing RET at the end of the line '* 
Heading' would be that point is placed on the next line below the heading, at 
column 2.

I am having an issue pinpointing what is causing the error, however, as I 
haven't found any consistency. Sometimes RET works as expected in my files, 
othertimes it does not. The bug does seem to only 'fix' in between instances of 
Emacs. I run Emacs as a daemon, and I noticed that sometimes the files will 
work and other times not work, but only between instances of the daemon/between 
system boots.

I have tried restarting org mode through the menu-bar option "restart org-mode 
(new version)", as well as disabling and renabling org-mode, as well as simply 
calling org-mode. No avail.

When I tried to debug the function, I really didn't have a clue what I was 
doing, but I think I narrowed the issue down to org-mode not getting the right 
context on where point is. I think this because org-return functions as 
expected when called with 't' as an argument, such as (org-return t), but I get 
the issue when calling just (org-return), which is bound to RET.

My work-around, for the time being, has just been to disable 
electric-indent-mode, and use C-J to get the desired behavior, as that calls 
(org-return-and-maybe-indent), and gives t if org-adapt-indentation is t and 
electric-indent-mode is disabled.

I apologize if my bug report is not up to scratch, but I have tried my best to 
give as much detail as I can, and this is my first time trying a bug report, as 
I am unsure how to proceed with this on my own.

Thank you,
Kevan B.



UPDATE: it seems to be caused by a double quote character. Upon continuing to 
type my notes in my journal, I noticed that I had a quote and hit RET before I 
remembered to close the quote, and suddenly RET worked as expected! Then, after 
collecting my wits and after the end of my happy dance, I moved point up and 
away, to the heading preceding the one I was working under, and RET didn't 
indent properly.

It seems that the open double quote might be masking the correct context.

My apologies for not specifying originally, but I am on org 9.5.2 from melpa, 
using emacs 27.2.


org-return not being given 't' for INDENT parameter

2022-03-31 Thread jebb Bungo
Hello,

I am having an odd behavior with org-return. I use hard indents, and I have
set 'org-adapt-indentation' to t in my .emacs file. However, I have noticed
that sometimes when I press RET under a heading, instead of getting an
indent to match the indentation of the heading after the *'s, point is set
right at 0. For example, the expected behavior of pressing RET at the end
of the line '* Heading' would be that point is placed on the next line
below the heading, at column 2.

I am having an issue pinpointing what is causing the error, however, as I
haven't found any consistency. Sometimes RET works as expected in my files,
othertimes it does not. The bug does seem to only 'fix' in between
instances of Emacs. I run Emacs as a daemon, and I noticed that sometimes
the files will work and other times not work, but only between instances of
the daemon/between system boots.

I have tried restarting org mode through the menu-bar option "restart
org-mode (new version)", as well as disabling and renabling org-mode, as
well as simply calling org-mode. No avail.

When I tried to debug the function, I really didn't have a clue what I was
doing, but I think I narrowed the issue down to org-mode not getting the
right context on where point is. I think this because org-return functions
as expected when called with 't' as an argument, such as (org-return t),
but I get the issue when calling just (org-return), which is bound to RET.

My work-around, for the time being, has just been to disable
electric-indent-mode, and use C-J to get the desired behavior, as that
calls (org-return-and-maybe-indent), and gives t if org-adapt-indentation
is t and electric-indent-mode is disabled.

I apologize if my bug report is not up to scratch, but I have tried my best
to give as much detail as I can, and this is my first time trying a bug
report, as I am unsure how to proceed with this on my own.

Thank you,
Kevan B.