From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aidan Gauland Subject: Re: TODO keyword completion bug Date: Wed, 22 Aug 2012 07:43:56 +1200 Message-ID: <87txvw2fpf.fsf@no8wireless.co.nz> References: <877gss98lr.fsf@dimension8.tehua.net> <87boi4qtxp.fsf@altern.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3uMc-00078U-4V for emacs-orgmode@gnu.org; Tue, 21 Aug 2012 15:43:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3uMR-0002RH-20 for emacs-orgmode@gnu.org; Tue, 21 Aug 2012 15:43:46 -0400 Received: from plane.gmane.org ([80.91.229.3]:47360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3uMQ-0002R3-Rl for emacs-orgmode@gnu.org; Tue, 21 Aug 2012 15:43:34 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T3uMP-0004u0-8j for emacs-orgmode@gnu.org; Tue, 21 Aug 2012 21:43:33 +0200 Received: from 114-134-7-113.rurallink.co.nz ([114.134.7.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Aug 2012 21:43:33 +0200 Received: from aidalgol by 114-134-7-113.rurallink.co.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Aug 2012 21:43:33 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Bastien writes: > Hi Aidan, > Aidan Gauland writes: >> I have some (buffer-local) keywords defined that contain dashes to >> separate words (because I couldn't think of a single word that would be >> clear). M- completion does not appear to work for these keywords. >> >> This has made me reconsider my choice of keywords, but since they're >> valid keywords, shouldn't they be valid candidates for completion >> (i.e. is this a bug)? > > "Keywords" is ambiguous here. > > TODO keywords like "MY-TODO" complete fine with M-TAB. > > #+MY_KEYWORD does not complete fine with M-TAB, but since this keyword > appears in the buffer anyway, you can simply use M-/. OK, so I'll just use M-/. I have the keywords defined with #+TODO:. I just tried playing around with them a bit, and I have found that the "problem" is not exactly as I thought: keywords with dashes, such as MY-TODO, do not complete with M-TAB if I try to complete from after the dash, i.e. M-TAB on MY- does not complete. TODO keyword completion does not work at all if there is already a headline, e.g. * TO[M-TAB here] Buy bread So, if this is a bug, I now have a workaround; if it's not a bug, then I now know how to properly use TODO completion. I'll leave it to you (the Org-mode devs) to decide whether to treat this as a bug. Thanks, Aidan Gauland