From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: gerlach Newsgroups: gmane.emacs.help Subject: I need a function that breaks all lines marked at 40 chars Date: Mon, 29 Jul 2013 10:51:19 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1375088120 26027 80.91.229.3 (29 Jul 2013 08:55:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jul 2013 08:55:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 29 10:55:22 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V3jEc-0005Wi-8X for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Jul 2013 10:55:18 +0200 Original-Received: from localhost ([::1]:57560 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3jEb-0007Lh-RU for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Jul 2013 04:55:17 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-X-Trace: individual.net v7l9sqNmH76ma6eb26kEnwE0NPAnhk9Leb4uopevH6Nng92H6y Cancel-Lock: sha1:s8sjHMH7ET8zdPZyFIecIzIjHhs= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 Original-Xref: usenet.stanford.edu gnu.emacs.help:200232 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92499 Archived-At: Hi, I'm writing mails with emacs and I sometimes want to break all text lines that I marked to say 40 chars. But empty line (only returns) should not be filled to 40 chars. Entire words should not be cutted within the word. Can you help me writing such a function? I'm beginner ... I want: 1. mark the the text I want to break at 40 chars 2. call a function (M-x .... ???? ) and the text ist breaked Perhaps emacs has such a function already build-in. Where? The function may be placed in .emacs profile with hard coded number of chars , e.g. 40 tia Eckard