From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Behavior of M-q on comments in code blocks Date: Wed, 05 Feb 2014 15:09:58 +0100 Message-ID: <86a9e5bqh5.fsf@somewhere.org> References: <86fvnxg7o9.fsf@somewhere.org> <87r47hahnq.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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