From: Bastien <bzg@altern.org>
To: Eric Fraga <e.fraga@ucl.ac.uk>
Cc: "emacs-orgmode@gnu.org Mailing List" <emacs-orgmode@gnu.org>,
Meng Weng Wong <mengwong@gmail.com>
Subject: Re: suggestion: M-m should move point to first word on line
Date: Tue, 12 Feb 2013 08:33:27 +0100 [thread overview]
Message-ID: <87pq06x9yw.fsf@bzg.ath.cx> (raw)
In-Reply-To: <87halidnem.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Tue, 12 Feb 2013 17:33:29 +1030")
[-- Attachment #1: Type: text/plain, Size: 575 bytes --]
Hi Eric,
thanks for testing.
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> this seems to cause a problem with org-ctrl-c-minus when trying to cycle
> a bullet point past +. That is, it works if the bullet is - so you can
> cycle to the next which is + but you cannot cycle past that.
Attached patch (against master) fixes this problem.
I'm not sure I'm in favor of this change, though, I expect
it to cause other problems and the benefit looks small for
now.
Do you see other reasons than M-m where stars as whitespace
chars are useful? What about *markup*?
Thanks,
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-org.el-org-mode-Set-to-be-syntactically-a-whitespace.patch --]
[-- Type: text/x-patch, Size: 1603 bytes --]
From a41bc3569e6812ce0c35e50abfc91590a47919c6 Mon Sep 17 00:00:00 2001
From: Bastien Guerry <bzg@altern.org>
Date: Tue, 12 Feb 2013 08:30:14 +0100
Subject: [PATCH] org.el (org-mode): Set ?* to be syntactically a whitespace
character
* org-list.el (org-list-bullet-string): Don't skip all
whitespace characters, skip whitespace and tab explicitely.
* org.el (org-mode): Set ?* to be syntactically a whitespace
character.
---
lisp/org-list.el | 4 ++--
lisp/org.el | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/org-list.el b/lisp/org-list.el
index d86746f..e4d6d6d 100644
--- a/lisp/org-list.el
+++ b/lisp/org-list.el
@@ -1081,8 +1081,8 @@ It determines the number of whitespaces to append by looking at
org-list-two-spaces-after-bullet-regexp bullet))
" "
" ")))
- (string-match "\\S-+\\([ \t]*\\)" bullet)
- (replace-match spaces nil nil bullet 1))))
+ (if (string-match "[^ \t]+\\([ \t]*\\)" bullet)
+ (replace-match spaces nil nil bullet 1)))))
(defun org-list-swap-items (beg-A beg-B struct)
"Swap item starting at BEG-A with item starting at BEG-B in STRUCT.
diff --git a/lisp/org.el b/lisp/org.el
index 461cdf0..a58c10b 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5173,6 +5173,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))
--
1.8.1.2
[-- Attachment #3: Type: text/plain, Size: 14 bytes --]
--
Bastien
next prev parent reply other threads:[~2013-02-12 7:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-08 2:42 suggestion: M-m should move point to first word on line Meng Weng Wong
2013-02-08 4:35 ` Yagnesh Raghava Yakkala
2013-02-11 15:15 ` Bastien
2013-02-12 7:03 ` Eric S Fraga
2013-02-12 7:33 ` Bastien [this message]
2013-02-12 22:42 ` Eric S Fraga
2013-02-15 11:02 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pq06x9yw.fsf@bzg.ath.cx \
--to=bzg@altern.org \
--cc=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=mengwong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).