emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Behavior of M-q on comments in code blocks
Date: Wed, 05 Feb 2014 15:09:58 +0100	[thread overview]
Message-ID: <86a9e5bqh5.fsf@somewhere.org> (raw)
In-Reply-To: 87r47hahnq.fsf@bzg.ath.cx

Hi Thorsten and Bastien,

Bastien wrote:
> "Sebastien Vauban" writes:
>
>> Though, I can't say whether the fact it does not work anymore is due to
>> changes in Org or in my Emacs configuration. Any hint?
>
> Works fine here, surely something in your configuration.

Here is a reproducible recipe... Can you please try it, and confirm me
you see the same things as I do?

Org file:

--8<---------------cut here---------------start------------->8---
* Test

The comment in the code block is not correctly refilled (on M-q).

#+begin_src sh
  # display symbol definitions, as found in the relevant manual (for AWK, C, Emacs Lisp, LaTeX, M4, Makefile, Sh and other languages that have documentation in Info)
  echo Some text
#+end_src
--8<---------------cut here---------------end--------------->8---

Minimal Emacs configuration file:

--8<---------------cut here---------------start------------->8---
;; Org mode
(add-to-list 'load-path "~/Public/Repositories/org-mode/lisp")

(org-babel-do-load-languages
 'org-babel-load-languages '((emacs-lisp . t)
                             (sh         . t)))

(find-file "~/test.org")

(message "Loading Minimal Emacs... Done")
--8<---------------cut here---------------end--------------->8---

See the demo at http://screencast.com/t/fA0hIhnCQgbr.

I just type M-q on the comment line and the lines are completely mixed
up:

--8<---------------cut here---------------start------------->8---
#+begin_src sh
  # display symbol definitions, as found in the relevant manual (for
  AWK, C, Emacs Lisp, LaTeX, M4, Makefile, Sh and other languages that
  have documentation in Info) echo Some text
#+end_src
--8<---------------cut here---------------end--------------->8---

Best regards,
  Seb

-- 
Sebastien Vauban

  reply	other threads:[~2014-02-05 14:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-05 10:44 Behavior of M-q on comments in code blocks Sebastien Vauban
2014-02-05 11:37 ` Thorsten Jolitz
2014-02-05 12:05 ` Bastien
2014-02-05 14:09   ` Sebastien Vauban [this message]
2014-02-05 15:26     ` Bastien
2014-02-05 15:32       ` Sebastien Vauban
2014-02-05 16:18         ` Bastien
2014-02-13 14:46   ` Sebastien Vauban

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=86a9e5bqh5.fsf@somewhere.org \
    --to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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 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).