From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#5327: 23.1; unload-feature-special-hooks add fill-nobreak-predicate Date: Mon, 11 Jul 2011 18:25:01 +0200 Message-ID: References: <87eim4t95o.fsf@blah.blah> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1310403354 15764 80.91.229.12 (11 Jul 2011 16:55:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2011 16:55:54 +0000 (UTC) Cc: 5327-done@debbugs.gnu.org To: Kevin Ryde Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 11 18:55:50 2011 Return-path: Envelope-to: geb-bug-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 1QgJlu-0000Fj-BS for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jul 2011 18:55:50 +0200 Original-Received: from localhost ([::1]:42393 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgJlt-0006gR-H0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jul 2011 12:55:49 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgJJ8-0007W1-3l for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 12:26:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgJJ5-0005mS-1p for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 12:26:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53345) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgJJ4-0005mH-ON for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 12:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QgJJ4-0002mK-Jh for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 12:26:02 -0400 Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jul 2011 16:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 5327 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 5327@debbugs.gnu.org, lekktu@gmail.com Original-Received: via spool by 5327-done@debbugs.gnu.org id=D5327.131040155010644 (code D ref 5327); Mon, 11 Jul 2011 16:26:02 +0000 Original-Received: (at 5327-done) by debbugs.gnu.org; 11 Jul 2011 16:25:50 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgJIr-0002ld-Qh for submit@debbugs.gnu.org; Mon, 11 Jul 2011 12:25:49 -0400 Original-Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgJIp-0002lR-OP for 5327-done@debbugs.gnu.org; Mon, 11 Jul 2011 12:25:48 -0400 Original-Received: by gyd5 with SMTP id 5so1681226gyd.3 for <5327-done@debbugs.gnu.org>; Mon, 11 Jul 2011 09:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=+UvpM//8MOl78FRfIgiGK2Krma85boiXnUuRkx+Wdgo=; b=dlynrsAxL8r+pibgFuh8UfhLOTwTZD0AFbBSOdEjiK99QncdthwfwLH3fvLpb6MnfF qyWLAiesCsL0aPdCWLbPrYXr6RgPb5ER2FRN32T0PvkjNZ2Lnh5o6XaJ69fxQC9ZJk2W stpQwuniqUji6LSA7vIdUe4AI7EWbL5nvzyxE= Original-Received: by 10.143.90.11 with SMTP id s11mr272195wfl.366.1310401541411; Mon, 11 Jul 2011 09:25:41 -0700 (PDT) Original-Received: by 10.142.144.4 with HTTP; Mon, 11 Jul 2011 09:25:01 -0700 (PDT) In-Reply-To: <87eim4t95o.fsf@blah.blah> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 11 Jul 2011 12:26:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:48610 Archived-At: On Wed, Jan 6, 2010 at 00:38, Kevin Ryde wrote: > =C2=A0 =C2=A0M-x sgml-mode > =C2=A0 =C2=A0M-x unload-feature sgml-mode > =C2=A0 =C2=A0type in a long line to be filled > =C2=A0 =C2=A0M-q > =C2=A0 =C2=A0=3D> Symbol's function definition is void: sgml-fill-nobreak `fill-nobreak-predicate' was set locally, so it would be removed when the mode for the buffer was changed. Previously, `unload-feature' failed to do so unless the mode package's FEATURE-unload-function, assuming one existed, did by itself. Since revno:104702 `unload-feature' does so automatically, so the above case should work (i.e, unloading sgml-mode will change the buffer's major mode to text-mode). That said, I'll add that variable and some of the others you mentioned to `unload-feature-special-hooks' because it's better to be safe than sorry. But, what would be nice is some way to identify hook variables in a generic way, instead of special-casing still more of them. :-( > find-directory-functions > auto-coding-functions OK. > compile-command-default-functions I cannot find that one in the Emacs sources. =C2=A0 =C2=A0 Juanma