emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Funny bug with org-get-heading
@ 2016-12-05 13:36 Marcin Borkowski
  2016-12-05 14:51 ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: Marcin Borkowski @ 2016-12-05 13:36 UTC (permalink / raw)
  To: Org-Mode mailing list

Hi all,

try this: put point at a line saying

--8<---------------cut here---------------start------------->8---
* todo lists
--8<---------------cut here---------------end--------------->8---

and do M-: (org-get-heading t t)

It will strip the "todo" (even though it should only strip "TODO").  It
seems that a (let ((case-fold-search nil)) ...) is missing somewhere
(manually setting case-fold-search to nil made org-get-heading behave
properly).

BTW, I discovered it when clocking an Org task about cleaning up my Org
tasks.  How meta! ;-)

Best,

-- 
Marcin Borkowski

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

* Re: Funny bug with org-get-heading
  2016-12-05 13:36 Funny bug with org-get-heading Marcin Borkowski
@ 2016-12-05 14:51 ` Carsten Dominik
  2016-12-05 18:23   ` Marcin Borkowski
  0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2016-12-05 14:51 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: Org-Mode mailing list

[-- Attachment #1: Type: text/plain, Size: 757 bytes --]

Hi Martin,

I am not able to reproduce this with Org 9.0.1.

Carsten

On Mon, Dec 5, 2016 at 2:36 PM, Marcin Borkowski <mbork@mbork.pl> wrote:

> Hi all,
>
> try this: put point at a line saying
>
> --8<---------------cut here---------------start------------->8---
> * todo lists
> --8<---------------cut here---------------end--------------->8---
>
> and do M-: (org-get-heading t t)
>
> It will strip the "todo" (even though it should only strip "TODO").  It
> seems that a (let ((case-fold-search nil)) ...) is missing somewhere
> (manually setting case-fold-search to nil made org-get-heading behave
> properly).
>
> BTW, I discovered it when clocking an Org task about cleaning up my Org
> tasks.  How meta! ;-)
>
> Best,
>
> --
> Marcin Borkowski
>
>

[-- Attachment #2: Type: text/html, Size: 1270 bytes --]

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

* Re: Funny bug with org-get-heading
  2016-12-05 14:51 ` Carsten Dominik
@ 2016-12-05 18:23   ` Marcin Borkowski
  0 siblings, 0 replies; 3+ messages in thread
From: Marcin Borkowski @ 2016-12-05 18:23 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Org-Mode mailing list


On 2016-12-05, at 15:51, Carsten Dominik <dominik@uva.nl> wrote:

> Hi Martin,
     Marcin

> I am not able to reproduce this with Org 9.0.1.

So, sorry for the noise - I'm still at 8.3.4.  I'll try to update on my
next Emacs restart (probably within a week or two) and make sure it
doesn't persist.

> Carsten

Best,

-- 
Marcin Borkowski

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

end of thread, other threads:[~2016-12-05 18:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-05 13:36 Funny bug with org-get-heading Marcin Borkowski
2016-12-05 14:51 ` Carsten Dominik
2016-12-05 18:23   ` Marcin Borkowski

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