From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: suggestion: M-m should move point to first word on line Date: Mon, 11 Feb 2013 16:15:27 +0100 Message-ID: <87a9rahofk.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4v6h-0000Mk-HI for emacs-orgmode@gnu.org; Mon, 11 Feb 2013 10:15:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4v6b-0006Td-Pd for emacs-orgmode@gnu.org; Mon, 11 Feb 2013 10:15:47 -0500 Received: from mail-wi0-f180.google.com ([209.85.212.180]:42158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4v6b-0006TY-Is for emacs-orgmode@gnu.org; Mon, 11 Feb 2013 10:15:41 -0500 Received: by mail-wi0-f180.google.com with SMTP id hi8so3229110wib.13 for ; Mon, 11 Feb 2013 07:15:40 -0800 (PST) In-Reply-To: (Meng Weng Wong's message of "Fri, 8 Feb 2013 10:42:01 +0800") 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: Meng Weng Wong Cc: "emacs-orgmode@gnu.org Mailing List" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hi Meng Weng, Meng Weng Wong writes: > Ordinarily, M-m is bound to (back-to-indentation) – move point to > the first non-whitespace character on the line. It differs from C-a. > > Might it make sense for org-mode to override M-m? Not to override `M-m' but perhaps to define "*" as a syntactic whitespace character. Patch attached -- use with caution. I tested it a bit and it seems to work, but not all tests pass and there may be side-effects that I could not observe. In the meantime, I guess org-special-ctrl-a org-special-ctrl-a/e are useful enough, as already pointed. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=syntax.patch diff --git a/lisp/org.el b/lisp/org.el index 4555ed1..d6ae281 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5177,6 +5177,7 @@ The following commands are available: (org-set-tag-faces 'org-tag-faces org-tag-faces)) ;; Calc embedded (org-set-local 'calc-embedded-open-mode "# ") + (modify-syntax-entry ?* " ") (modify-syntax-entry ?@ "w") (modify-syntax-entry ?\" "\"") (if org-startup-truncated (setq truncate-lines t)) --=-=-= Content-Type: text/plain -- Bastien --=-=-=--