From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: longlines mode Date: Thu, 27 Sep 2007 08:29:19 -0700 Message-ID: References: <1190893211.329574.203070@50g2000hsm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1190907023 4837 80.91.229.12 (27 Sep 2007 15:30:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Sep 2007 15:30:23 +0000 (UTC) To: "weber" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 27 17:30:19 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IavJZ-0003po-70 for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Sep 2007 17:30:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IavJV-0001fp-Tq for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Sep 2007 11:30:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IavJI-0001fZ-B6 for help-gnu-emacs@gnu.org; Thu, 27 Sep 2007 11:29:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IavJG-0001fB-Gf for help-gnu-emacs@gnu.org; Thu, 27 Sep 2007 11:29:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IavJG-0001f8-9V for help-gnu-emacs@gnu.org; Thu, 27 Sep 2007 11:29:50 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IavJF-00034h-07 for help-gnu-emacs@gnu.org; Thu, 27 Sep 2007 11:29:50 -0400 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l8RFTjOG019261; Thu, 27 Sep 2007 10:29:45 -0500 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id l8RALAXh022968; Thu, 27 Sep 2007 09:29:45 -0600 Original-Received: from dhcp-4op11-4op12-west-130-35-178-158.us.oracle.com by acsmt351.oracle.com with ESMTP id 3249890221190906954; Thu, 27 Sep 2007 08:29:14 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 In-reply-to: <1190893211.329574.203070@50g2000hsm.googlegroups.com> X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47931 Archived-At: > i turned on longlines-mode so my lines would be wrapped, and > found out that are not wrapped in the end of a window, but relative to > the variable fill-column. > > So my question is: is there another mode i can use for wrapping lines > (soft wrap) that is set according to the current window size? You can use this trivial command (in any mode): (defun foo () "Set `fill-column' to width of selected window." (setq fill-column (window-width)) (message "Fill column is now %d" fill-column)) You can of course combine that with entry to longlines mode or whatever.