Re: [O] Behavior of M-q on comments in code blocks
Hi 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. Fond the culprit: --8---cut here---start-8--- ;; automatically fill comments (but not code) in programming modes (add-hook 'prog-mode-hook (lambda () (auto-fill-mode 1) (set (make-local-variable 'fill-nobreak-predicate) (lambda () (not (eq (get-text-property (point) 'face) 'font-lock-comment-face)) --8---cut here---end---8--- Weird. Best regards, Seb -- Sebastien Vauban
Re: [O] Behavior of M-q on comments in code blocks
Sebastien Vauban sva-n...@mygooglest.com writes: Hello, Some time ago, doing a M-q on a comment in a code block did work. For example, the following: I followed up to you post using gnus/message-mode with outorg (i.e. writing the mail in full org-mode), outcommented your first code block and did M-q on the comment line: #+begin_src emacs-lisp ;; 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) (global-set-key (kbd C-f1) 'info-lookup-symbol) #+end_src the result looks fine, so it might be related to your config. PS #+BEGIN_SRC emacs-lisp (message %s (org-version)) #+END_SRC #+results: : 8.2.5g -- cheers, Thorsten
Re: [O] Behavior of M-q on comments in code blocks
Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org 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. -- Bastien
Re: [O] Behavior of M-q on comments in code blocks
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
Re: [O] Behavior of M-q on comments in code blocks
Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: I just type M-q on the comment line and the lines are completely mixed up: Actually M-q in shell-mode on the echo ... line will produce the problem. So I think you should first report this as an Emacs bug. -- Bastien
Re: [O] Behavior of M-q on comments in code blocks
Bastien wrote: Sebastien Vauban writes: I just type M-q on the comment line and the lines are completely mixed up: Actually M-q in shell-mode on the echo ... line will produce the problem. So I think you should first report this as an Emacs bug. True for `M-q' on the second line (echo line) -- did know about that. I'll report it. Though, when doing it on the first line (comment), we don't have the same behavior whether the `M-q' is done on the code block itself (in the Org file) or in the indirect buffer: while the first fails, the latter does work as expected. See http://screencast.com/t/iwE7xbxKj. Best regards, Seb -- Sebastien Vauban
Re: [O] Behavior of M-q on comments in code blocks
Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: Though, when doing it on the first line (comment), we don't have the same behavior whether the `M-q' is done on the code block itself (in the Org file) or in the indirect buffer: while the first fails, the latter does work as expected. See http://screencast.com/t/iwE7xbxKj. I've seen this but I've no time for this right now and the fix in Emacs will also fix this -- feel free to explore, of course! -- Bastien