emacs-devel
[Top][All Lists]
Advanced

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

Re: change soft to hard lines and back


From: Uwe Brauer
Subject: Re: change soft to hard lines and back
Date: Fri, 15 Dec 2017 11:20:48 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Hi Jorge,


   > Hi, Uwe.
   > Uwe Brauer writes:


   > Probably this would work:

   > #+BEGIN_SRC emacs-lisp
   >   (defun soften-hardlines ()
   >     (interactive)
   >     (save-excursion
   >       (goto-char (point-min))
   >       (mail-text)
   >       (while (search-forward hard-newline nil t)
   >         (replace-match "\n"))))
   > #+END_SRC

It does, thanks, I did not know about search-forward hard-newline 
works also nicely.




reply via email to

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