all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: pinard@iro.umontreal.ca (François Pinard)
To: emacs-orgmode@gnu.org
Subject: org-special-ctrl-a/e induces problems in items
Date: Fri, 03 Feb 2012 10:14:37 -0500	[thread overview]
Message-ID: <87ipjoymn6.fsf@iro.umontreal.ca> (raw)

Hi, Org mode maintainers.

When org-special-ctrl-a/e is active, and when a list item is a whole
paragraph spanning many visual lines, `C-a' and `C-e' both misbehave.

`C-e' moves to the end of the visual paragraph (that is, the end of the
physical line) instead of moving at the end of the visual line.

`C-a' produces an error if the cursor is after the first visual line in
the visual paragraph, see the traceback below.  My guess is that
(org-list.el) org-at-item-p should return true only when on the first
visual line, while currently, it always return a true value.

François



Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  >(11477 nil)
  (or (> pos after-bullet) (= (point) pos))
  (if (or (> pos after-bullet) (= ... pos)) (progn (goto-char after-bullet)))
  (when (or (> pos after-bullet) (= ... pos)) (goto-char after-bullet))
  (if (eq special t) (when (or ... ...) (goto-char after-bullet)) (when (and ... ...) (goto-char after-bullet)))
  (let ((after-bullet ...)) (if (eq special t) (when ... ...) (when ... ...)))
  (cond ((and ... ...) (setq refpos ...) (goto-char ...)) ((org-at-item-p) (let ... ...)))
  (progn (cond (... ... ...) (... ...)))
  (if special (progn (cond ... ...)))
  (when special (cond (... ... ...) (... ...)))
  (let ((pos ...) (special ...) refpos) (if (org-bound-and-true-p line-move-visual) (beginning-of-visual-line 1) (beginning-of-line 1)) (if (and arg ...) (call-interactively ...) (if ... nil ... ...)) (when special (cond ... ...)) (org-no-warnings (and ... ...)))
  org-beginning-of-line(nil)
  call-interactively(org-beginning-of-line nil nil)

             reply	other threads:[~2012-02-03 15:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-03 15:14 François Pinard [this message]
2012-02-04 15:41 ` org-special-ctrl-a/e induces problems in items Nicolas Goaziou
2012-02-04 16:18   ` François Pinard

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ipjoymn6.fsf@iro.umontreal.ca \
    --to=pinard@iro.umontreal.ca \
    --cc=emacs-orgmode@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.