From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Kanis Newsgroups: gmane.emacs.devel Subject: Re: fill length of visual line mode Date: Sun, 05 Oct 2014 09:59:35 +0200 Message-ID: <87fvf3ymjc.fsf@kanis.fr> References: <87oatu6hfn.fsf@kanis.fr> <87oatu6hfn.fsf@kanis.fr> <87vbo0ga6i.fsf_-_@kanis.fr> <87egunvrqh.fsf@kanis.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412496012 25882 80.91.229.3 (5 Oct 2014 08:00:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Oct 2014 08:00:12 +0000 (UTC) Cc: Eli Zaretskii , Emacs Development List To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 05 10:00:06 2014 Return-path: Envelope-to: ged-emacs-devel@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 1Xagje-0001ME-5d for ged-emacs-devel@m.gmane.org; Sun, 05 Oct 2014 10:00:06 +0200 Original-Received: from localhost ([::1]:46513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xagjd-0002GD-Sm for ged-emacs-devel@m.gmane.org; Sun, 05 Oct 2014 04:00:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XagjK-00026X-2I for emacs-devel@gnu.org; Sun, 05 Oct 2014 03:59:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XagjE-000178-5R for emacs-devel@gnu.org; Sun, 05 Oct 2014 03:59:45 -0400 Original-Received: from kanis.fr ([46.19.35.252]:45915 helo=srv2.kanis.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XagjD-00016v-Vc; Sun, 05 Oct 2014 03:59:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kanis.fr; s=alpha; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=6xZDAp07R6R7vyB88RuUc0059Tqd68Ih5j57Xyek694=; b=QLqiNY3DjaAIAAly1AntPu4q3U3OG/2rsNfYXnUCv8BtadZyFf7k96VfEUpnmv6supGAGnIxiR7eQh1DrtAtSVraEsl5MKH+qrhu0YXRkB6qGomIMyLxj8vnYe7J8ZWi; Original-Received: from smtp.comencini.fr ([164.138.25.8]) by smtp.comencini.fr with esmtpsa (TLS1.1:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80.1) (envelope-from ) id 1Xagj5-0002FX-Oc; Sun, 05 Oct 2014 09:59:32 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAAB5QTFRF IBkXUxMTOCwoTC4qcUY8iFxQmmper31txpaJ/v/8aKZ1oAAAAcVJREFUOMt100tu2zAQAFDCXnUZ oAcIqG68LZULVLQBbwuSiffm6AIRRyeotAySJoVu2+FPpJWWC3/4NKOZocSW/yxWfnJ2+Bdwzhj7 8gleWVy7DXC2rkMNr2V/zRbghXIwthf3VbIA9Ffc71vZCSFyCEsBggtNS8ludwvfmhYA0Vn9o4DP zMWxR7+cPWzAYFzwM0ModtdmcDbDS6i/hT7L+RZof5yCXGrYe5jn2YO6BYMjgY+51tCIAqHgBLwR pwLnGuRjAKyBJkuN4yd4U92uCY1vUr2D/c5b8DuxyQwfOHUeaLqDJhnkkuGXbB56h2C1IVBdgncc bBi6feroa9B6jUDojnQPQKupbyXyeeCE1oT7Oqrt+SnfY3mkiyGA/3AmD3H5g32CcBx6hY8pRkwJ 9PpcjRGobUfprFnhAa1vepwcgMOhwG+pdSgKHFU9HAvoAH6XUl7lDUCCq5Qb6GMbVm3Aj++qDYCt wdBc/YHgOFCmS3mjDMRcSE2qY4E3Q3PVIQRQmeodNH4QEbRUFZzW+VotzwX4yTcRTySOML1qjcE5 hTirVqDHkMAP0PjAywp3d18JZtqzvr9zDYD+GaSKtE6Zlr/DLPNFmOcvBAAAAABJRU5ErkJggg== X-Hashcash: 1:20:141005:eliz@gnu.org::4yVHIf18zJGGfCgA:0000036Mo X-Hashcash: 1:20:141005:monnier@iro.umontreal.ca::NVy6ZsbPihB1str3:00000000000000000000000000000000000002oR9 X-Hashcash: 1:20:141005:emacs-devel@gnu.org::Eo2ZO/5NuH4UF5dY:0000000000000000000000000000000000000000006XCY In-Reply-To: (Stefan Monnier's message of "Sat, 04 Oct 2014 18:25:33 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 46.19.35.252 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174985 Archived-At: October, 04 at 18:25 Stefan wrote: >> Let's forget about the code I posted. It's a stupid hack that works for me. >>>> It just feels hackish and wrong. The right thing I feel is to use >>>> fill-column. >>> But it does beg the question: what if the window is smaller than >>> fill-column? Should it then fill at the window's edge or should it >>> continue as if truncate-lines is set? >> I didn't think of that. I bet users will want either. So a variable >> will say what to do. > > I think pursuing the window-configuration-change-hook path is actually > a good idea: if we can get the desired behavior via Elisp code, it's > generally preferable (the C code is hairy enough as it is). It also > makes it easier to offer configurability (e.g. to choose whether to > center the visible text in the window, or not). OK. I won't do it straight away as the gnus hack is sufficient for me for now. I am planning to use visual line mode for org in the future. If I do it I will revisit your suggestions to write some elisp that can be added to Emacs proper. Ivan -- Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -- Albert Einstein