emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-return on non-keyword does not insert newline
@ 2016-10-28 20:51 Samuel Wales
  2016-10-28 22:44 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Wales @ 2016-10-28 20:51 UTC (permalink / raw)
  To: emacs-orgmode

in recent maint seemingly

  * |Whatever

will not return with RET, if WHATEVER is a todo kw.

a potentially amusing note: if this is correct, then this is around
the 9th bug i have reported over many years on todo kw case.  this
could mean that there were about 9 non-refactored hardcodes.  :)

possible cause: perhaps case-fold-search should be nil when using
looking-at on the complex heading regexp.

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  And
ANYBODY can get it.

Denmark: free Karina Hansen NOW.
  UPDATE 2016-10: home, but not fully free

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

* Re: org-return on non-keyword does not insert newline
  2016-10-28 20:51 org-return on non-keyword does not insert newline Samuel Wales
@ 2016-10-28 22:44 ` Nicolas Goaziou
  2016-10-28 22:59   ` Samuel Wales
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2016-10-28 22:44 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Hello,

Samuel Wales <samologist@gmail.com> writes:

> in recent maint seemingly
>
>   * |Whatever
>
> will not return with RET, if WHATEVER is a todo kw.

Fixed. Thank you.

> a potentially amusing note: if this is correct, then this is around
> the 9th bug i have reported over many years on todo kw case.  this
> could mean that there were about 9 non-refactored hardcodes.  :)
>
> possible cause: perhaps case-fold-search should be nil when using
> looking-at on the complex heading regexp.

Indeed. Matching `org-complex-heading-regexp' must be done with
`case-fold-search' set to nil. I spotted and fixed a few places where
this wasn't the case. I also added a note about it in the docstring.

Regards,

-- 
Nicolas Goaziou

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

* Re: org-return on non-keyword does not insert newline
  2016-10-28 22:44 ` Nicolas Goaziou
@ 2016-10-28 22:59   ` Samuel Wales
  0 siblings, 0 replies; 3+ messages in thread
From: Samuel Wales @ 2016-10-28 22:59 UTC (permalink / raw)
  To: Samuel Wales, emacs-orgmode

On 10/28/16, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> `case-fold-search' set to nil. I spotted and fixed a few places where
> this wasn't the case. I also added a note about it in the docstring.

thanks.

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  And
ANYBODY can get it.

Denmark: free Karina Hansen NOW.
  UPDATE 2016-10: home, but not fully free

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

end of thread, other threads:[~2016-10-28 22:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-28 20:51 org-return on non-keyword does not insert newline Samuel Wales
2016-10-28 22:44 ` Nicolas Goaziou
2016-10-28 22:59   ` Samuel Wales

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