emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: [bug] orgstruct++-mode breaks backward-sentence
Date: Tue, 24 Mar 2015 23:01:57 +0100	[thread overview]
Message-ID: <87384uyrze.fsf@gmx.us> (raw)
In-Reply-To: <87d23yru77.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Tue, 24 Mar 2015 21:55:56 +0100")


Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

>>> Consider the following test file in text-mode where "|" is the cursor.
>>>    1.  Foo bar
>>>        baz|
>>> Before turning on orgstruct++-mode backward-sentence will correctly go to
>>> "|Foo".  When turning on orgstruct-mode, backward-sentence will also work
>>> correctly.  So somehow orgstruct++ does something that ruins
>>> backward-sentence.  Note that (sentence-end) does not seem to be affected
>>> by orgstruct++-mode.
>> This is actually not particular to orgstruct++-mode.  It also happens in
>> org-mode.  With orgstruct-mode fill-paragraph does not work on lists.
>> Maybe you can't have both?
> I'm confused. Your first message talks about `backward-sentence' and the
> second one about `fill-paragraph'. Could you explain what the bug is?

Forget about fill-paragraph.  Try this with test-org as nil and non-nil:

(let ((test-org nil))
  (switch-to-buffer "test.org")
  (if test-org (org-mode) (text-mode))
  (insert "1. foo bar\n   baz")

When the buffer is in org-mode backward sentence behaves differently from
when it's in text-mode.  I think text-mode behaves correctly.

[The aside was that this does not happen in orgstruct-mode, but in
 orgstruct-mode fill-paragraph does not work.]


And I faced endless streams of vendor-approved Ikea furniture. . .

  reply	other threads:[~2015-03-24 22:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-24 18:53 [bug] orgstruct++-mode breaks backward-sentence Rasmus
2015-03-24 18:59 ` Rasmus
2015-03-24 20:55   ` Nicolas Goaziou
2015-03-24 22:01     ` Rasmus [this message]
2015-03-29 12:15       ` Nicolas Goaziou
2015-05-22 15:52         ` Rasmus
2015-05-23 19:35           ` Nicolas Goaziou
2015-05-23 19:53             ` Rasmus
2015-05-23 20:03               ` Nicolas Goaziou
2015-05-23 20:05                 ` Rasmus
2015-05-24 10:37             ` Rasmus

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:

  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=87384uyrze.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \


* 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


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).