From unknown Wed Sep 10 10:35:56 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4366: 23.1; Can't turn off visual-line-mode via html-mode-hook Reply-To: Allan Gottlieb , 4366@debbugs.gnu.org Resent-From: Allan Gottlieb Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 07 Sep 2009 15:20:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 4366 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12523365015375 (code B ref -1); Mon, 07 Sep 2009 15:20:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 7 Sep 2009 15:15:01 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.5 required=4.0 tests=AWL,FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n87FExIL005337 for ; Mon, 7 Sep 2009 08:15:00 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mkfvm-0006B2-E5 for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2009 11:14:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mkfvh-00063H-QX for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2009 11:14:57 -0400 Received: from [199.232.76.173] (port=48010 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mkfvg-00062g-Ia for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2009 11:14:52 -0400 Received: from smtp.cs.nyu.edu ([128.122.80.33]:45743) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mkfvg-0000hN-5S for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2009 11:14:52 -0400 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 n87FEoYG014932 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 7 Sep 2009 11:14:50 -0400 (EDT) Received: by ajglap.localdomain (Postfix, from userid 1502) id 579D319D922; Mon, 7 Sep 2009 11:14:45 -0400 (EDT) From: Allan Gottlieb To: bug-gnu-emacs@gnu.org Date: Mon, 07 Sep 2009 11:14:45 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Have /tmp/fun.el contain (defun visual-off-fill-on () "For html, turn OFF visual-line-mode and turn-ON auto fill" (visual-line-mode 0) (auto-fill-mode 1)) Start emacs -Q (load-file "/tmp/fun.el") (global-visual-line-mode) (add-hook 'html-mode-hook 'visual-off-fill-on) (find-file "/tmp/x.html") ; non-existent file mode line shows fill as expected, but also shows wrap, the bug. However, if one does instead Start emacs -Q (load-file "/tmp/fun.el") (global-visual-line-mode) (find-file "/tmp/x.html") ; non-existent file (visual-off-fill-on) then all is well (mode line shows fill and not wrap). thanks for emacs, allan If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.1/etc/DEBUG for instructions. In GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.14.7) of 2009-08-17 on ajglap Windowing system distributor `The X.Org Foundation', version 11.0.10503000 configured using `configure '--prefix=/usr' '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--without-rsvg' '--with-tiff' '--with-xpm' '--with-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-O2 -march=prescott -pipe' 'LDFLAGS=-Wl,-O1'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: Summary Minor modes in effect: gnus-mailing-list-mode: t iswitchb-mode: t delete-selection-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: . I SPC p l a n SPC o n SPC s u b f i l l i n g SPC a SPC b u g SPC r e p o r t SPC u n l e s s SPC s o m e o n e SPC e x p l a i n s SPC . a l l a n C-c C-c M-x r e p o r t - e m a c s - u b u g c a n t ' t SPC t u r n SPC v i s u a l - l i n e - m o d e SPC o f f SPC v i a SPC h t m l - m o d e - h o o k C-x b C-x o C-x o C-x b i n f o u u C-s h t m l C-g q M-x r e p o r t - e m a c s - b u g C-g C-x b C-s b u C-g M-x r e p o r t - e m a c s - b u g Recent messages: Auto-saving...done Sending... Sending via mail... Wrote /home/gottlieb/Mail/MAIL/320979 Sending...done byte-code: Command attempted to use minibuffer while in minibuffer bunzip2ing elisp-4.info.bz2...done bunzip2ing elisp-10.info.bz2...done Mark saved where search started Quit Quit From unknown Wed Sep 10 10:35:56 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#4366: 23.1; Can't turn off visual-line-mode via html-mode-hook Reply-To: Juanma Barranquero , 4366@debbugs.gnu.org Mail-Followup-To: Juanma Barranquero , 4366@debbugs.gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Jan 2010 04:13:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 4366 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4366-submit@debbugs.gnu.org id=B4366.126292397422882 (code B ref 4366); Fri, 08 Jan 2010 04:13:02 +0000 Received: (at 4366) by debbugs.gnu.org; 8 Jan 2010 04:12:54 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NT6DV-0005x1-LQ for submit@debbugs.gnu.org; Thu, 07 Jan 2010 23:12:53 -0500 Received: from mail-fx0-f226.google.com ([209.85.220.226]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NT6DI-0005wu-EQ for 4366@debbugs.gnu.org; Thu, 07 Jan 2010 23:12:52 -0500 Received: by fxm26 with SMTP id 26so16810302fxm.39 for <4366@debbugs.gnu.org>; Thu, 07 Jan 2010 20:12:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=IAa87ezbseRSmDKpb2PKoeBxGQBN1FlE2myfKZ/WpaE=; b=XbMBH/OWIVLwRZYsuye8Acw8gzwye8Zk6ek5d2H308g8bXXjDT054VZ2B9YQvAFST9 TucLB/K/7zrnm0dTR9ZscLKivtEW4Yf0rj2j9xpxIHudGdY2aaLoKzLasIpu8+XcsKvI a6WHFUS/N5S/iWtMQLF3TdiJZHO2TIPpJl6A0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=dqDm27NPComlfdRqTD7gqNVus8Ym0AFVHJRoLRyaw9Djg2KXxxz6yCuezsQn82+ol8 P3tSNBCZFhQOLwE5GqLV9+Df3xkQrMo88Zzfgxwu9qhWt0pKymnnS64MHfjb468NRgy9 QyIzxtgIOoWRtttdLT1vn3/TENlL8YaWajq+s= MIME-Version: 1.0 Received: by 10.239.193.134 with SMTP id j6mr1218127hbi.26.1262923956157; Thu, 07 Jan 2010 20:12:36 -0800 (PST) In-Reply-To: References: From: Juanma Barranquero Date: Fri, 8 Jan 2010 05:12:16 +0100 Message-ID: To: Allan Gottlieb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) Cc: 4366@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On Mon, Sep 7, 2009 at 16:14, Allan Gottlieb wrote: > Start emacs -Q > (load-file "/tmp/fun.el") > (global-visual-line-mode) > (add-hook 'html-mode-hook 'visual-off-fill-on) > (find-file "/tmp/x.html") =C2=A0 ; non-existent file > > mode line shows fill as expected, but also shows wrap, the bug. > > However, if one does instead > > Start emacs -Q > (load-file "/tmp/fun.el") > (global-visual-line-mode) > (find-file "/tmp/x.html") =C2=A0 ; non-existent file > (visual-off-fill-on) > > then all is well (mode line shows fill and not wrap). That is not a bug. When you do (global-visual-line-mode) [which should better be (global-visual-line-mode 1), BTW], the function adds code to several hooks to check for new buffers (find-file-hook, etc.). In your first case, the global mode is active (so the hooks are active); when you run find-file, it creates the buffer, runs html-mode-hook (disabling visual-line-mode), and finally a hook is run which activates the mode. In the second case, you activate the global mode, run find-file (and the hooks check that visual mode is active, so do nothing), and finally run visual-off-fill-on, deactivating the visual-line mode. If you want to deactivate the mode automatically after find-file, there are several ways, like an `after' advice for find-file, or adding code to the relevant hooks, etc. Juanma From unknown Wed Sep 10 10:35:56 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#4366: 23.1; Can't turn off visual-line-mode via html-mode-hook Reply-To: Lennart Borgman , 4366@debbugs.gnu.org Mail-Followup-To: Lennart Borgman , 4366@debbugs.gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Jan 2010 07:06:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 4366 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4366-submit@debbugs.gnu.org id=B4366.126293431328037 (code B ref 4366); Fri, 08 Jan 2010 07:06:02 +0000 Received: (at 4366) by debbugs.gnu.org; 8 Jan 2010 07:05:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NT8uG-0007IA-Ll for submit@debbugs.gnu.org; Fri, 08 Jan 2010 02:05:12 -0500 Received: from mail-fx0-f226.google.com ([209.85.220.226]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NT8u2-0007Hl-0u for 4366@debbugs.gnu.org; Fri, 08 Jan 2010 02:05:10 -0500 Received: by fxm26 with SMTP id 26so16859389fxm.39 for <4366@debbugs.gnu.org>; Thu, 07 Jan 2010 23:04:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=loN3PYAwR5XCE1JNXQANFWOxJlVEvOmZuRImGLjEiD8=; b=S58ISM6thA9hD9o76UBTTxzL3zcG66kPnUh5peKd9o6B5hO3onXzKgqY5ZS/oXhBrj KdCeAEd6XDKHUmY9KEZhoyCF/q9wq/7ksQUfBbptNAEyNLR15roZnJJdsqSxY5yEXdAw 2Pk7PRy1z3gB5uvOL+fPNzfbuYqGSXbaH3IMI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=hU6yTS1UsYlIvuoX+ZOW/g4r5ZWauoxPdOhDm5aSxP0pCHCcQCE8RzXgf/tTJ+h3Ln VwH9BkSX9NVmx3MrjNtbwaHCkxcDNrUFeNDHio8v3sa7Jj4gP8lRL/lmh0nhHwBCoN7V PgXQJD0oH/D25TjPix0ailrJJ2qH1gxktKdiI= MIME-Version: 1.0 Received: by 10.239.189.68 with SMTP id s4mr73954hbh.188.1262934294071; Thu, 07 Jan 2010 23:04:54 -0800 (PST) In-Reply-To: References: From: Lennart Borgman Date: Fri, 8 Jan 2010 08:04:34 +0100 Message-ID: To: Juanma Barranquero , 4366@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.5 (--) Cc: Allan Gottlieb X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) On Fri, Jan 8, 2010 at 5:12 AM, Juanma Barranquero wrote= : > On Mon, Sep 7, 2009 at 16:14, Allan Gottlieb wrote: > >> Start emacs -Q >> (load-file "/tmp/fun.el") >> (global-visual-line-mode) >> (add-hook 'html-mode-hook 'visual-off-fill-on) >> (find-file "/tmp/x.html") =C2=A0 ; non-existent file >> >> mode line shows fill as expected, but also shows wrap, the bug. >> >> However, if one does instead >> >> Start emacs -Q >> (load-file "/tmp/fun.el") >> (global-visual-line-mode) >> (find-file "/tmp/x.html") =C2=A0 ; non-existent file >> (visual-off-fill-on) >> >> then all is well (mode line shows fill and not wrap). > > That is not a bug. When you do (global-visual-line-mode) =C2=A0[which > should better be (global-visual-line-mode 1), BTW], the function adds > code to several hooks to check for new buffers (find-file-hook, etc.). > > In your first case, the global mode is active (so the hooks are > active); when you run find-file, it creates the buffer, runs > html-mode-hook (disabling visual-line-mode), and finally a hook is run > which activates the mode. > > In the second case, you activate the global mode, run find-file (and > the hooks check that visual mode is active, so do nothing), and > finally run visual-off-fill-on, deactivating the visual-line mode. > > If you want to deactivate the mode automatically after find-file, > there are several ways, like an `after' advice for find-file, or > adding code to the relevant hooks, etc. Hm, maybe someone wants to make a picture that quickly describes the order of the hooks. That would be useful IMO. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 08 04:30:48 2010 Received: (at control) by debbugs.gnu.org; 8 Jan 2010 09:30:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTBB9-0008U3-NL for submit@debbugs.gnu.org; Fri, 08 Jan 2010 04:30:47 -0500 Received: from mail-bw0-f216.google.com ([209.85.218.216]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTBB8-0008Tv-3C; Fri, 08 Jan 2010 04:30:46 -0500 Received: by bwz8 with SMTP id 8so12378257bwz.39 for ; Fri, 08 Jan 2010 01:30:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=6C6Et7SkuW0Qqbbz89rhnj6lx2gD50jpL+gBeN3x4iY=; b=geh7U4bRLc7QqRJ+tx5dSpyh3/Flm0ZzWMLjssIvlyxz+GZBmz7GafX0gk+uXYpR68 6MIdb1/Gex5fhlDje2FoV5mdP8T6+kP6M5y10g69JyK47EhWtIDdZl1EULK+Q+3Sv3RO d37nKjPiEyeSq2jAFS/RscgjoSVIEK7iqNxfs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=hOR6q4Ad5TeN9hHAu1j5OppKuCGkJnlCd4FeQ7xr1Vr57rHA4FA/pir0Ws4DWGOKz8 UtdxW5C7PIDfWA7Mf5AVRwg6pxi2t63VFgF4ZrG1Va8lY+k4Dhk5gFDDGb821yFeqipd gnmnp3quvx40LosHRxS/y4CjlkoRYnvLX2ixM= MIME-Version: 1.0 Received: by 10.204.155.86 with SMTP id r22mr1613382bkw.165.1262943042434; Fri, 08 Jan 2010 01:30:42 -0800 (PST) In-Reply-To: References: From: Juanma Barranquero Date: Fri, 8 Jan 2010 10:30:22 +0100 Message-ID: Subject: Re: bug#4366: 23.1; Can't turn off visual-line-mode via html-mode-hook To: Lennart Borgman Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control Cc: 4366-done@debbugs.gnu.org, Allan Gottlieb X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) tags 4366 + notabug quit On Fri, Jan 8, 2010 at 08:04, Lennart Borgman wrote: > Hm, maybe someone wants to make a picture that quickly describes the > order of the hooks. That would be useful IMO. All hooks? That's quite a task. Juanma From unknown Wed Sep 10 10:35:56 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: bug-gnu-emacs@gnu.org From: bug-gnu-emacs@gnu.org (Emacs bug Tracking System) To: Allan Gottlieb Subject: bug#4366 closed by Juanma Barranquero (Re: bug#4366: 23.1; Can't turn off visual-line-mode via html-mode-hook) Message-ID: References: X-Emacs-PR-Message: they-closed 4366 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: notabug Reply-To: 4366@debbugs.gnu.org Date: Fri, 08 Jan 2010 09:31:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1262943062-32640-1" This is a multi-part message in MIME format... ------------=_1262943062-32640-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #4366: 23.1; Can't turn off visual-line-mode via html-mode-hook It has been closed by Juanma Barranquero . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Juanma Barranquero by replying to this email. --=20 4366: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D4366 Emacs Bug Tracking System Contact bug-gnu-emacs@gnu.org with problems ------------=_1262943062-32640-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 4366-done) by debbugs.gnu.org; 8 Jan 2010 09:30:49 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTBBA-0008U9-UR for submit@debbugs.gnu.org; Fri, 08 Jan 2010 04:30:49 -0500 Received: from mail-bw0-f216.google.com ([209.85.218.216]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTBB8-0008Tv-3C; Fri, 08 Jan 2010 04:30:46 -0500 Received: by bwz8 with SMTP id 8so12378257bwz.39 for ; Fri, 08 Jan 2010 01:30:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=6C6Et7SkuW0Qqbbz89rhnj6lx2gD50jpL+gBeN3x4iY=; b=geh7U4bRLc7QqRJ+tx5dSpyh3/Flm0ZzWMLjssIvlyxz+GZBmz7GafX0gk+uXYpR68 6MIdb1/Gex5fhlDje2FoV5mdP8T6+kP6M5y10g69JyK47EhWtIDdZl1EULK+Q+3Sv3RO d37nKjPiEyeSq2jAFS/RscgjoSVIEK7iqNxfs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=hOR6q4Ad5TeN9hHAu1j5OppKuCGkJnlCd4FeQ7xr1Vr57rHA4FA/pir0Ws4DWGOKz8 UtdxW5C7PIDfWA7Mf5AVRwg6pxi2t63VFgF4ZrG1Va8lY+k4Dhk5gFDDGb821yFeqipd gnmnp3quvx40LosHRxS/y4CjlkoRYnvLX2ixM= MIME-Version: 1.0 Received: by 10.204.155.86 with SMTP id r22mr1613382bkw.165.1262943042434; Fri, 08 Jan 2010 01:30:42 -0800 (PST) In-Reply-To: References: From: Juanma Barranquero Date: Fri, 8 Jan 2010 10:30:22 +0100 Message-ID: Subject: Re: bug#4366: 23.1; Can't turn off visual-line-mode via html-mode-hook To: Lennart Borgman Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 4366-done Cc: 4366-done@debbugs.gnu.org, Allan Gottlieb X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) tags 4366 + notabug quit On Fri, Jan 8, 2010 at 08:04, Lennart Borgman wrote: > Hm, maybe someone wants to make a picture that quickly describes the > order of the hooks. That would be useful IMO. All hooks? That's quite a task. Juanma ------------=_1262943062-32640-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 7 Sep 2009 15:15:01 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.5 required=4.0 tests=AWL,FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n87FExIL005337 for ; Mon, 7 Sep 2009 08:15:00 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mkfvm-0006B2-E5 for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2009 11:14:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mkfvh-00063H-QX for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2009 11:14:57 -0400 Received: from [199.232.76.173] (port=48010 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mkfvg-00062g-Ia for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2009 11:14:52 -0400 Received: from smtp.cs.nyu.edu ([128.122.80.33]:45743) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mkfvg-0000hN-5S for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2009 11:14:52 -0400 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 n87FEoYG014932 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 7 Sep 2009 11:14:50 -0400 (EDT) Received: by ajglap.localdomain (Postfix, from userid 1502) id 579D319D922; Mon, 7 Sep 2009 11:14:45 -0400 (EDT) From: Allan Gottlieb To: bug-gnu-emacs@gnu.org Subject: 23.1; Can't turn off visual-line-mode via html-mode-hook Date: Mon, 07 Sep 2009 11:14:45 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Have /tmp/fun.el contain (defun visual-off-fill-on () "For html, turn OFF visual-line-mode and turn-ON auto fill" (visual-line-mode 0) (auto-fill-mode 1)) Start emacs -Q (load-file "/tmp/fun.el") (global-visual-line-mode) (add-hook 'html-mode-hook 'visual-off-fill-on) (find-file "/tmp/x.html") ; non-existent file mode line shows fill as expected, but also shows wrap, the bug. However, if one does instead Start emacs -Q (load-file "/tmp/fun.el") (global-visual-line-mode) (find-file "/tmp/x.html") ; non-existent file (visual-off-fill-on) then all is well (mode line shows fill and not wrap). thanks for emacs, allan If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.1/etc/DEBUG for instructions. In GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.14.7) of 2009-08-17 on ajglap Windowing system distributor `The X.Org Foundation', version 11.0.10503000 configured using `configure '--prefix=/usr' '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--without-rsvg' '--with-tiff' '--with-xpm' '--with-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-O2 -march=prescott -pipe' 'LDFLAGS=-Wl,-O1'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: Summary Minor modes in effect: gnus-mailing-list-mode: t iswitchb-mode: t delete-selection-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: . I SPC p l a n SPC o n SPC s u b f i l l i n g SPC a SPC b u g SPC r e p o r t SPC u n l e s s SPC s o m e o n e SPC e x p l a i n s SPC . a l l a n C-c C-c M-x r e p o r t - e m a c s - u b u g c a n t ' t SPC t u r n SPC v i s u a l - l i n e - m o d e SPC o f f SPC v i a SPC h t m l - m o d e - h o o k C-x b C-x o C-x o C-x b i n f o u u C-s h t m l C-g q M-x r e p o r t - e m a c s - b u g C-g C-x b C-s b u C-g M-x r e p o r t - e m a c s - b u g Recent messages: Auto-saving...done Sending... Sending via mail... Wrote /home/gottlieb/Mail/MAIL/320979 Sending...done byte-code: Command attempted to use minibuffer while in minibuffer bunzip2ing elisp-4.info.bz2...done bunzip2ing elisp-10.info.bz2...done Mark saved where search started Quit Quit ------------=_1262943062-32640-1-- From unknown Wed Sep 10 10:35:56 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#4366: 23.1; Can't turn off visual-line-mode via html-mode-hook Reply-To: Stefan Monnier , 4366@debbugs.gnu.org Mail-Followup-To: Stefan Monnier , 4366@debbugs.gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Jan 2010 17:35:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 4366 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: notabug Received: via spool by 4366-submit@debbugs.gnu.org id=B4366.126297207918799 (code B ref 4366); Fri, 08 Jan 2010 17:35:02 +0000 Received: (at 4366) by debbugs.gnu.org; 8 Jan 2010 17:34:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTIjP-0004tA-Ij for submit@debbugs.gnu.org; Fri, 08 Jan 2010 12:34:39 -0500 Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTIjO-0004t2-6u for 4366@debbugs.gnu.org; Fri, 08 Jan 2010 12:34:38 -0500 Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o08HYVBX022191; Fri, 8 Jan 2010 12:34:31 -0500 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 8EA5690018; Fri, 8 Jan 2010 12:34:31 -0500 (EST) From: Stefan Monnier To: Juanma Barranquero Message-ID: References: Date: Fri, 08 Jan 2010 12:34:31 -0500 In-Reply-To: (Juanma Barranquero's message of "Fri, 8 Jan 2010 05:12:16 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3443=0 X-Spam-Score: -1.5 (-) Cc: 4366@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.5 (-) > That is not a bug. Well, that's debatable. It's clearly not a feature, but admittedly, I do not know how to implement such global minor modes in a way that doesn't suffer from this problem. Stefan From unknown Wed Sep 10 10:35:56 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#4366: 23.1; Can't turn off visual-line-mode via html-mode-hook Reply-To: Juanma Barranquero , 4366@debbugs.gnu.org Mail-Followup-To: Juanma Barranquero , 4366@debbugs.gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Jan 2010 17:48:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 4366 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: notabug Received: via spool by 4366-submit@debbugs.gnu.org id=B4366.126297283319239 (code B ref 4366); Fri, 08 Jan 2010 17:48:02 +0000 Received: (at 4366) by debbugs.gnu.org; 8 Jan 2010 17:47:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTIvZ-00050G-3S for submit@debbugs.gnu.org; Fri, 08 Jan 2010 12:47:13 -0500 Received: from mail-bw0-f216.google.com ([209.85.218.216]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTIvX-00050B-2t for 4366@debbugs.gnu.org; Fri, 08 Jan 2010 12:47:11 -0500 Received: by bwz8 with SMTP id 8so12674946bwz.39 for <4366@debbugs.gnu.org>; Fri, 08 Jan 2010 09:47:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=rDMZTpRaN+Lt5Ncsw0DHoozervzOhWKmUc2tvvzVX2c=; b=WFxvWa+pCdQJqZvlqN2cNVJhDJQkEk7V2FGrnj6+JbSuA2zazWGY8swPW1ZWv45AlT Rvsp+ipLOtatQEZPK1syBqMm8anOVD4ewDHjfrWAVadyT4pJwGOLc3S/mJwaGvZaPoHF f9RfV4Z1kYNFkfxBZw1ZmpTxvWhXyeHrZVgSQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=udNJqLlAFctjQeciqFyDf5Jlhwsew52jrY1xUppDy4bVOMgredHHS722ViD+VKQmYo EAuUTLf1bZf8RaLpwV0XEZDkgn9PtlLKnQww3brgxF6IWXvvp8AEHxniCzv8cOPZLh0d r3hdeHeqgUvM/7xMNkpc8gPvvCgitIeydQ+AE= MIME-Version: 1.0 Received: by 10.204.24.84 with SMTP id u20mr4972657bkb.164.1262972825680; Fri, 08 Jan 2010 09:47:05 -0800 (PST) In-Reply-To: References: From: Juanma Barranquero Date: Fri, 8 Jan 2010 18:45:09 +0100 Message-ID: To: Stefan Monnier Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.7 (--) Cc: 4366@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) > Well, that's debatable. =C2=A0It's clearly not a feature, but admittedly, > I do not know how to implement such global minor modes in a way that > doesn't suffer from this problem. We agree, I think: it's not a feature, nor a bug. It's an epiphenomenon of the current implementation of global minor modes. Juanma From unknown Wed Sep 10 10:35:56 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#4366: 23.1; Can't turn off visual-line-mode via html-mode-hook Reply-To: Lennart Borgman , 4366@debbugs.gnu.org Mail-Followup-To: Lennart Borgman , 4366@debbugs.gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Jan 2010 11:18:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 4366 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: notabug Received: via spool by 4366-submit@debbugs.gnu.org id=B4366.126303586323873 (code B ref 4366); Sat, 09 Jan 2010 11:18:02 +0000 Received: (at 4366) by debbugs.gnu.org; 9 Jan 2010 11:17:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTZKB-0006D0-HP for submit@debbugs.gnu.org; Sat, 09 Jan 2010 06:17:43 -0500 Received: from mail-fx0-f226.google.com ([209.85.220.226]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTZK9-0006Ct-Jy for 4366@debbugs.gnu.org; Sat, 09 Jan 2010 06:17:42 -0500 Received: by fxm26 with SMTP id 26so17797197fxm.39 for <4366@debbugs.gnu.org>; Sat, 09 Jan 2010 03:17:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=ndDTVdAV2Sr7HzxRfjxm0TEy6bGSxs9Smg15gfHOOgg=; b=Edczoo1/VpTj+dVUSdtrwCk6tf4V2VW9hclEC3LTkEYud2XHKYh5wGH6iPCcAMO33/ q+GcN8O9yjr69voSQ8LKF96JsLIhG95GiFmj58h3ctvjcbURaz9o7b1TEK8XXL4ih3XV nM+zptZsy4qrm6ijrleWkCO3jTzhqNq50Ze0M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=a7/LyWurIiSe4s9tvapRxBxkD8hO8o5Fc/9aaDssSXTbL66FY3cnZJlGa4N+M4p4xa A1qJ7PXehs8bzHN7LPokCSRCCs3LcANsfE1nkTQZ1uE/2MXNn/6SWNEVZCm+TsYN+htw 7QnPVF85JV3rPFXZ2WhZRZtf14f46wjwSlbIE= MIME-Version: 1.0 Received: by 10.239.188.4 with SMTP id n4mr1665659hbh.78.1263035858143; Sat, 09 Jan 2010 03:17:38 -0800 (PST) In-Reply-To: References: From: Lennart Borgman Date: Sat, 9 Jan 2010 12:17:18 +0100 Message-ID: To: Stefan Monnier , 4366@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.5 (--) Cc: Juanma Barranquero X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) On Fri, Jan 8, 2010 at 6:34 PM, Stefan Monnier w= rote: >> That is not a bug. > > Well, that's debatable. =C2=A0It's clearly not a feature, but admittedly, > I do not know how to implement such global minor modes in a way that > doesn't suffer from this problem. Couldn't it be handled better for derived modes at least? From unknown Wed Sep 10 10:35:56 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#4366: 23.1; Can't turn off visual-line-mode via Reply-To: Stefan Monnier , 4366@debbugs.gnu.org Mail-Followup-To: Stefan Monnier , 4366@debbugs.gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jan 2010 03:06:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 4366 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: notabug Received: via spool by 4366-submit@debbugs.gnu.org id=B4366.126309274117286 (code B ref 4366); Sun, 10 Jan 2010 03:06:02 +0000 Received: (at 4366) by debbugs.gnu.org; 10 Jan 2010 03:05:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTo7Y-0004Ul-Va for submit@debbugs.gnu.org; Sat, 09 Jan 2010 22:05:41 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTo7W-0004Uf-Mz for 4366@debbugs.gnu.org; Sat, 09 Jan 2010 22:05:39 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArgEAF/TSEvO+KPG/2dsb2JhbACBRNJmhC8Eiik X-IronPort-AV: E=Sophos;i="4.49,249,1262581200"; d="scan'208";a="53452791" Received: from 206-248-163-198.dsl.teksavvy.com (HELO pastel.home) ([206.248.163.198]) by ironport2-out.pppoe.ca with ESMTP; 09 Jan 2010 22:05:34 -0500 Received: by pastel.home (Postfix, from userid 20848) id 7181C81C9; Sat, 9 Jan 2010 22:05:34 -0500 (EST) From: Stefan Monnier To: Lennart Borgman Message-ID: References: Date: Sat, 09 Jan 2010 22:05:33 -0500 In-Reply-To: (Lennart Borgman's message of "Sat, 9 Jan 2010 12:17:18 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.1 (--) Cc: 4366@debbugs.gnu.org, Juanma Barranquero X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) >>> That is not a bug. >> Well, that's debatable. =A0It's clearly not a feature, but admittedly, >> I do not know how to implement such global minor modes in a way that >> doesn't suffer from this problem. > Couldn't it be handled better for derived modes at least? You mean for major modes which follow a particular convention (convention which could be automatically enforced by define-derived-mode)? That would be good, yes, Stefan