From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marius Hofert Newsgroups: gmane.emacs.help Subject: Wrap at Window Edge: Error in pre-command-hook... Date: Tue, 25 Oct 2011 21:31:53 +0200 Message-ID: <38F9FBD4-FA89-4E7E-BB6B-B8A1CCE26AF3@math.ethz.ch> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1319571134 4136 80.91.229.12 (25 Oct 2011 19:32:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 25 Oct 2011 19:32:14 +0000 (UTC) To: Emacs help Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 25 21:32:08 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RImjE-0003lK-5z for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Oct 2011 21:32:04 +0200 Original-Received: from localhost ([::1]:53179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RImjD-0007nt-M9 for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Oct 2011 15:32:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RImj8-0007nk-Hy for help-gnu-emacs@gnu.org; Tue, 25 Oct 2011 15:31:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RImj7-0004Qs-CA for help-gnu-emacs@gnu.org; Tue, 25 Oct 2011 15:31:58 -0400 Original-Received: from edge10.ethz.ch ([82.130.75.186]:37242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RImj7-0004QW-3e for help-gnu-emacs@gnu.org; Tue, 25 Oct 2011 15:31:57 -0400 Original-Received: from CAS22.d.ethz.ch (172.31.51.112) by edge10.ethz.ch (82.130.75.186) with Microsoft SMTP Server (TLS) id 14.1.339.1; Tue, 25 Oct 2011 21:31:54 +0200 Original-Received: from 80-218-247-21.dclient.hispeed.ch (80.218.247.21) by CAS22.d.ethz.ch (172.31.51.112) with Microsoft SMTP Server (TLS) id 14.1.339.1; Tue, 25 Oct 2011 21:31:54 +0200 X-Mailer: Apple Mail (2.1251.1) X-Originating-IP: [80.218.247.21] X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.130.75.186 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:82652 Archived-At: Hi, I experience a rather strange behavior: If I open a file in visual line = mode in Emacs 23.3 and then switch to Wrap at Window Edge (via Options = -> Line Wrapping in this Buffer -> Wrap at Window Edge), I obtain: Error in pre-command-hook: (wrong-type-argument symbolp (lambda nil = (interactive) (if visual-line-mode (visual-line-mode 0)) (setq word-wrap = nil) (if truncate-lines (toggle-truncate-lines -1)))) After that, Wrap at Window Edge is enabled, but I don't see the little = squiggle arrows.=20 If I go back to visual line mode and again switch to Wrap at Window = Edge, I don't obtain the above error anymore. Still, I don't see the = little arrows. The strange thing is, that earlier today, everything = worked fine. The only thing I changed (I checked with a backup file from = yesterday) is putting in the following in .emacs: =20 (global-visual-line-mode t) (global-set-key (kbd "C-x t") 'toggle-truncate-lines) (global-set-key (kbd "C-x w") 'toggle-word-wrap) But even if I remove these parts from .emacs, I get the above = error/behavior.=20 I also activated Options -> Enter Debugger on Error and reproduced the = error, but there is no *Backtrace* buffer. Cheers, Marius PS: This is on Mac OS X 10.7.2 with Emacs 23.3 (9.0)=