From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: speed-keys access tweak Date: Sun, 14 Jan 2018 10:05:38 +0100 Message-ID: <87vag46c9p.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eaeEb-0007dl-5T for emacs-orgmode@gnu.org; Sun, 14 Jan 2018 04:05:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eaeEa-0003oF-Iw for emacs-orgmode@gnu.org; Sun, 14 Jan 2018 04:05:45 -0500 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:37824) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eaeEa-0003nP-DJ for emacs-orgmode@gnu.org; Sun, 14 Jan 2018 04:05:44 -0500 In-Reply-To: (Michael Ax's message of "Fri, 12 Jan 2018 17:53:28 +0100") 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: Michael Ax Cc: Org-mode Hello, Michael Ax writes: > With the (bolp) check snipped, org-speed-commands > work up to the end of org-outline-regexp. > > (defun org-speed-command-activate (keys) > (when (or (looking-at org-outline-regexp) > (and (functionp org-use-speed-commands) > (funcall org-use-speed-commands))) > (cdr (assoc keys (append org-speed-commands-user > org-speed-commands-default))))) > > Works for me. Could this be legit --- or safer? It would also work in the non-desirable following case, where X is point: *** Headline x*** Text Besides, according the manual, Single keys can be made to execute commands when the cursor is at the beginning of a headline, i.e., before the first star. Regards, -- Nicolas Goaziou