From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.help Subject: Re: I need a function that breaks all lines marked at 40 chars Date: Mon, 29 Jul 2013 13:26:23 +0400 Message-ID: <86iozt67k0.fsf@w2139spb.ru.yotateam.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1375090013 14251 80.91.229.3 (29 Jul 2013 09:26:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jul 2013 09:26:53 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: gerlach Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 29 11:26:55 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 1V3jjB-0002U8-PE for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Jul 2013 11:26:53 +0200 Original-Received: from localhost ([::1]:44180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3jjB-0000y3-7P for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Jul 2013 05:26:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3jiu-0000xf-5u for help-gnu-emacs@gnu.org; Mon, 29 Jul 2013 05:26:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3jio-0007Nf-Ds for help-gnu-emacs@gnu.org; Mon, 29 Jul 2013 05:26:36 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:53684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3jio-0007NQ-15 for help-gnu-emacs@gnu.org; Mon, 29 Jul 2013 05:26:30 -0400 Original-Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 3F23821111; Mon, 29 Jul 2013 05:26:28 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Mon, 29 Jul 2013 05:26:28 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-type; s=mesmtp; bh=T070FMz9hQraikzmUxkl/un FxP4=; b=Hlc09JMt5xx+ixfVjdACkmnxwVe7VfzwEUMd7brpQpAJalqRbgJxo5O 3gznC/l21eV/OV8LGv5q7TMI6iTdsjfK9+a1G7jZ7Dgd4i4ERHFr4C+s/wrRR6MI 9w/V1NhfmANAcIujwzZhmUxg81hjxU3IywdE2Sz5Fzy0ahp9VxSc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:date :in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=T070FMz9hQraikzmUxkl/unFxP4=; b=SLWUOnyf7PbKxWoFt0baxUmK1nTt /9X2yNPEC1QS/fipYP7C5vshxDCD4yLuxBkjWCVeL6pYaUnQhZKSFba3fSHAGnOh p4lsG1bs2eoAkas5gLGXhoc8NafvQcxmwCb/lqjptWIKN7lxZBwCd7dn2i3aBA5M 2VJt/PBFLYNE0p4= X-Sasl-enc: U5EBdXUxCYI1dno72m7IGsXMxLoyxo2RSLuLYz+xxUsF 1375089987 Original-Received: from w2139spb.ru.yotateam.com (unknown [94.25.210.15]) by mail.messagingengine.com (Postfix) with ESMTPA id 83E876800BF; Mon, 29 Jul 2013 05:26:27 -0400 (EDT) In-Reply-To: (gerlach's message of "Mon, 29 Jul 2013 10:51:19 +0200") User-Agent: Gnus/5.1299999999999999 (Gnus v5.13) Emacs/24.3 (cygwin) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.25 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:92502 Archived-At: On 29/07/2013 12:51 +0400, gerlach wrote: > 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 > > You are talking about filling, eval this with C-x C-e: (info "(emacs) Filling") . Filipp