all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Filling comments in Org code block vs in temporary buffer
@ 2012-10-24 14:31 Sebastien Vauban
  2012-10-24 14:48 ` Nicolas Goaziou
  2012-12-18 11:50 ` Bastien
  0 siblings, 2 replies; 7+ messages in thread
From: Sebastien Vauban @ 2012-10-24 14:31 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

#+TITLE:     Filling comments
#+LANGUAGE:  en

* Context

I've stopped using FillAdapt in Org files, and do not suffer any particular
problems, except this one (though, certainly unrelated).

* Problem

When trying to refill the comment directly in the following code block
(staying in the Org file), it has *no effect*.

#+begin_src emacs-lisp
  ;; a single space does end a sentence. But this sentence is the longest I could write...
  (setq-default sentence-end-double-space nil)
#+end_src

FYI, C-h k M-q gives:

    ╭────
    │ M-q runs the command fill-paragraph, which is an interactive compiled
    │ Lisp function in `fill.el'.
    │
    │ It is bound to M-q.
    │
    │ (fill-paragraph &optional JUSTIFY REGION)
    │
    │ Fill paragraph at or after point.
    ╰────

* Workaround

- Open it in a temporary buffer (via C-c ')
- Re-run M-q anywhere on the comment

#+begin_src emacs-lisp
  ;; a single space does end a sentence. But this sentence is the longest I
  ;; could write...
  (setq-default sentence-end-double-space nil)
#+end_src

FYI, when inside the temporary buffer, C-h k M-q just gives exactly the
same (and expected command): =fill-paragraph=.

* Questions

I think this is quite new, but could not identify anything peculiar in my
config. Do you have the same?

Do you understand why?

Best regards,
  Seb

-- 
Sebastien Vauban

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-12-18 16:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-24 14:31 Filling comments in Org code block vs in temporary buffer Sebastien Vauban
2012-10-24 14:48 ` Nicolas Goaziou
2012-10-24 18:53   ` Sebastien Vauban
2012-10-24 20:38     ` Nicolas Goaziou
2012-10-25  8:34       ` Sebastien Vauban
2012-10-25 12:15         ` Nicolas Goaziou
2012-12-18 11:50 ` Bastien

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.