From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: visual line mode Date: Fri, 12 Oct 2012 15:30:57 +0200 Message-ID: <87obk7izqm.fsf@thinkpad.tsdh.de> References: <1350025008261-266925.post@n5.nabble.com> <838vbc85dy.fsf@gnu.org> <87a9vsjcsl.fsf@thinkpad.tsdh.de> <1350038115945-266940.post@n5.nabble.com> <87wqywhqoo.fsf@thinkpad.tsdh.de> <1350042360640-266949.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1350048688 23833 80.91.229.3 (12 Oct 2012 13:31:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2012 13:31:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 12 15:31:32 2012 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 1TMfKr-0005Os-JO for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Oct 2012 15:31:29 +0200 Original-Received: from localhost ([::1]:49921 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMfKl-000850-3R for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Oct 2012 09:31:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMfKa-00082X-Qs for help-gnu-emacs@gnu.org; Fri, 12 Oct 2012 09:31:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMfKZ-0007N5-JC for help-gnu-emacs@gnu.org; Fri, 12 Oct 2012 09:31:12 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:38419) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMfKY-0007MY-V3 for help-gnu-emacs@gnu.org; Fri, 12 Oct 2012 09:31:11 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TMfKc-0005DT-Ub for help-gnu-emacs@gnu.org; Fri, 12 Oct 2012 15:31:14 +0200 Original-Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Oct 2012 15:31:14 +0200 Original-Received: from tsdh by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Oct 2012 15:31:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: tsdh.uni-koblenz.de User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) Cancel-Lock: sha1:YBIBEKsC9RZzgCscoZ7HCSNvlI0= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:87201 Archived-At: drain writes: >> Is it possibly that you still have visual-line-mode in some hooks? >> What you describe sounds like global-visual-line-mode first turns on >> VLM in your draft buffer, and then your hook turns it off again (or >> the other way round). > > Not that I am aware of. When you launch compose-mail with > global-visual-line mode (merely to reproduce my conditions), does it > work for you? Ah, ok. When I do: 1. emacs -Q 2. M-x global-visual-line-mode 3. M-x compose-mail RET I get an *unsent mail* buffer in message-mode. `visual-line-mode' is indeed active, but message-mode also activates `auto-fill-mode' which automatically inserts hard line breaks after 72 chars by default. So basically, you could add (add-hook 'message-mode-hook 'turn-off-auto-fill) to have `visual-line-mode' work as expected in message-mode. But do you really want to send such badly formatted mail? Bye, Tassilo