all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: Jean Louis <bugs@gnu.support>, Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Re: How to get all paragraphs in list?
Date: Mon, 05 Sep 2022 07:40:49 +0300	[thread overview]
Message-ID: <87leqytovi.fsf@iki.fi> (raw)
In-Reply-To: <courier.0000000063157810.00004B71@stw1.rcdrun.com>

[-- Attachment #1: Type: text/plain, Size: 746 bytes --]

* 2022-09-05 07:15:50+0300, Jean Louis wrote:

> Starting function to join lines is this one:
>
> (defun join-lines ()
>   "Joins lines of a paragraph of 100000 chars."
>   (interactive)
>   (let ((old fill-column))
>     (setq fill-column 100000)
>     (fill-paragraph nil)
>     (setq fill-column old)))

Not answering your actual question but I noticed that the above function
can be simplified because fill-column is a dynamic (special) variable:

    (defun join-lines ()
      "Joins lines of a paragraph of 100000 chars."
      (interactive)
      (let ((fill-column 100000))
        (fill-paragraph)))

-- 
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 6965F03973F0D4CA22B9410F0F2CAE0E07608462

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 251 bytes --]

  reply	other threads:[~2022-09-05  4:40 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-05  4:15 How to get all paragraphs in list? Jean Louis
2022-09-05  4:40 ` Teemu Likonen [this message]
2022-09-05  5:12 ` Emanuel Berg
2022-09-05  9:13 ` Alessandro Bertulli
2022-09-05 16:40   ` Jean Louis
2022-09-06  1:31     ` Emanuel Berg
2022-09-16 14:18       ` Jean Louis
2022-09-16 14:21       ` Jean Louis
2022-09-05 16:02 ` [External] : " Drew Adams
2022-09-05 17:04   ` Jean Louis
2022-09-05 18:05     ` Drew Adams
2022-09-06 11:17       ` Jean Louis
2022-09-07  6:03       ` Jean Louis
2022-09-07  6:13         ` Emanuel Berg
2022-09-07 13:05         ` Yuri Khan
2022-09-07 15:04           ` Drew Adams
2022-09-07 23:51           ` Emanuel Berg
2022-09-16 16:17             ` Yuri Khan
2022-09-16 19:04               ` Jean Louis
2022-09-16 18:55             ` Jean Louis

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87leqytovi.fsf@iki.fi \
    --to=tlikonen@iki.fi \
    --cc=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.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 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.