From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.devel Subject: Re: visual-line-mode tweaks Date: Thu, 04 Feb 2010 07:18:54 +0200 Message-ID: <87mxzp37ep.fsf@mithlond.arda> References: <87d40ldd2z.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1265260762 23177 80.91.229.12 (4 Feb 2010 05:19:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Feb 2010 05:19:22 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 04 06:19:18 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ncu7a-0001bu-K7 for ged-emacs-devel@m.gmane.org; Thu, 04 Feb 2010 06:19:18 +0100 Original-Received: from localhost ([127.0.0.1]:37447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ncu7Z-0004Zt-NZ for ged-emacs-devel@m.gmane.org; Thu, 04 Feb 2010 00:19:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ncu7V-0004YJ-An for emacs-devel@gnu.org; Thu, 04 Feb 2010 00:19:13 -0500 Original-Received: from [199.232.76.173] (port=48334 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ncu7V-0004Xw-0i for emacs-devel@gnu.org; Thu, 04 Feb 2010 00:19:13 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ncu7U-0008J1-B6 for emacs-devel@gnu.org; Thu, 04 Feb 2010 00:19:12 -0500 Original-Received: from mta-out.inet.fi ([195.156.147.13]:47219 helo=kirsi2.inet.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ncu7S-0008IY-5i; Thu, 04 Feb 2010 00:19:10 -0500 Original-Received: from mithlond.arda (84.251.132.215) by kirsi2.inet.fi (8.5.014) id 4B17EFA602BB1E9A; Thu, 4 Feb 2010 07:19:09 +0200 Original-Received: from dtw by mithlond.arda with local (Exim 4.69) (envelope-from ) id 1Ncu7C-00010S-L2; Thu, 04 Feb 2010 07:18:54 +0200 In-Reply-To: <87d40ldd2z.fsf@catnip.gol.com> (Miles Bader's message of "Thu, 04 Feb 2010 10:06:12 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:120885 Archived-At: * 2010-02-04 10:06 (+0900), Miles Bader wrote: > I think it's fine if minor modes _interact_ in some way that helps the > user, but I think such interaction should be dynamic (so for instance, > if I turn visual-line-mode off again, auto-filling should once again > be enabled; one could do this by saving previous state or whatever, > but that gets messy and flaky). > > How about having auto-fill-mode be a nop when visual-line-mode is > enabled (so the change would be to auto-fill-mode instead of > visual-line-mode)? I don't like that idea. Let's also think about the case when user turns visual-line-mode on automatically in text-mode-hook because it makes sense with most text modes. Then he turns auto-fill-mode on in _some_ hooks for modes which are derived from text-mode, such as org-mode and message-mode. So, obviously turning auto-fill-mode on should turn its behavior on. I actually described my settings. If this "visual-line-mode tweak" feature were already in place it's very likely that I would have sent a bug report about visual-line-mode and auto-fill-mode not working together. So, the bottom line is that I think a logical expected behavior is more important than some narrow-case convenience.