From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Allan Gottlieb Newsgroups: gmane.emacs.help Subject: trouble turning off visual line mode Date: Sun, 06 Sep 2009 17:55:38 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1252274185 29030 80.91.229.12 (6 Sep 2009 21:56:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Sep 2009 21:56:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 06 23:56:19 2009 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 1MkPia-0002FE-T0 for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Sep 2009 23:56:17 +0200 Original-Received: from localhost ([127.0.0.1]:54029 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkPia-0003LA-FZ for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Sep 2009 17:56:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MkPiA-0003JA-Ub for help-gnu-emacs@gnu.org; Sun, 06 Sep 2009 17:55:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MkPi6-00038G-Cu for help-gnu-emacs@gnu.org; Sun, 06 Sep 2009 17:55:50 -0400 Original-Received: from [199.232.76.173] (port=44149 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkPi6-000382-3e for help-gnu-emacs@gnu.org; Sun, 06 Sep 2009 17:55:46 -0400 Original-Received: from smtp.cs.nyu.edu ([128.122.80.33]:44628) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MkPi5-0000B6-Ru for help-gnu-emacs@gnu.org; Sun, 06 Sep 2009 17:55:45 -0400 Original-Received: from ajglap.localdomain (ool-4578da1c.dyn.optonline.net [69.120.218.28]) (authenticated bits=0) by smtp.cs.nyu.edu (8.14.3/8.13.8) with ESMTP id n86LtiuB029269 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 6 Sep 2009 17:55:44 -0400 (EDT) Original-Received: by ajglap.localdomain (Postfix, from userid 1502) id E928719D922; Sun, 6 Sep 2009 17:55:38 -0400 (EDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:67917 Archived-At: I have the following function in my .emacs ;; Want auto-fill and not visual-line-mode ;; Define the function here; add to hook via customize (defun ajg-html-visual-off-fill-on () "For html, turn OFF visual-line-mode and turn-ON auto fill" (message "ckpt 1") (visual-line-mode -1) (message "ckpt 2") (auto-fill-mode 1) (message "ckpt 3") ) I have it put in the html-mode-hook via (custom-set-variables ... '(html-mode-hook (quote (ajg-alter-electric-html-tag ajg-html-visual-off-fill-on))) ... ) Yet when I visit an html file auto-fill-mode is turned on as expected but visual-line-mode is *not* turned off. Any help would be appreciated. thanks, allan PS. All three ckpt msgs are in *Message*, with nothing in between The mode line shows wrap and fill