From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Funny bug with org-get-heading Date: Mon, 05 Dec 2016 14:36:00 +0100 Message-ID: <8760mypkfz.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDtRs-0005W8-5Z for emacs-orgmode@gnu.org; Mon, 05 Dec 2016 08:36:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cDtRp-00069U-5E for emacs-orgmode@gnu.org; Mon, 05 Dec 2016 08:36:52 -0500 Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:34403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDtRo-000676-JO for emacs-orgmode@gnu.org; Mon, 05 Dec 2016 08:36:49 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 4C9B1E630C for ; Mon, 5 Dec 2016 14:36:27 +0100 (CET) Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ElggpynpwYOV for ; Mon, 5 Dec 2016 14:36:12 +0100 (CET) Received: from localhost (static-dwadziewiec-jedenpiec7.echostar.pl [109.232.29.157]) by mail.mojserwer.eu (Postfix) with ESMTPSA id E2C18E62BD for ; Mon, 5 Dec 2016 14:36:11 +0100 (CET) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" 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