From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Filling comments in Org code block vs in temporary buffer Date: Wed, 24 Oct 2012 16:31:58 +0200 Message-ID: <80ipa03pr5.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 #+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: =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 M-q runs the command fill-paragraph, which is an interactive = compiled =E2=94=82 Lisp function in `fill.el'. =E2=94=82 =E2=94=82 It is bound to M-q. =E2=94=82 =E2=94=82 (fill-paragraph &optional JUSTIFY REGION) =E2=94=82 =E2=94=82 Fill paragraph at or after point. =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 * 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): =3Dfill-paragraph=3D. * 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 --=20 Sebastien Vauban