help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get all paragraphs in list?


From: Emanuel Berg
Subject: Re: How to get all paragraphs in list?
Date: Mon, 05 Sep 2022 07:12:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Jean Louis wrote:

> (let ((old fill-column))
>   (setq fill-column 100000)
>   (fill-paragraph nil)
>   (setq fill-column old)))

Even if that's a lexical/static `let' it doesn't matter since
`fill-column' is dynamic/special anyway, try the below

;;; -*- lexical-binding: t -*-

(defun test-fill-column ()
  (message "%d" fill-column) )

(progn
  (let ((fill-column 1))
    (test-fill-column) )
  (test-fill-column) )

> (fill-paragraph nil)

(fill-paragraph)

> (forward-line 1)

(forward-line)

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]