From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: emacs18@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#8998: culprit found Date: Mon, 04 Jul 2011 19:14:30 -0700 Message-ID: References: Reply-To: emacs18@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309832136 13089 80.91.229.12 (5 Jul 2011 02:15:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 5 Jul 2011 02:15:36 +0000 (UTC) To: 8998@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 05 04:15:31 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 1QdvAg-0005QY-Kk for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jul 2011 04:15:30 +0200 Original-Received: from localhost ([::1]:38752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdvAf-0003RI-BF for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jul 2011 22:15:29 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdvAK-0003OY-Ka for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2011 22:15:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdvAF-0005tB-Tt for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2011 22:15:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdvAF-0005t4-Qz for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2011 22:15:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QdvAE-0007n6-7k; Mon, 04 Jul 2011 22:15:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Richard Kim Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Jul 2011 02:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8998 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8998-submit@debbugs.gnu.org id=B8998.130983208129905 (code B ref 8998); Tue, 05 Jul 2011 02:15:02 +0000 Original-Received: (at 8998) by debbugs.gnu.org; 5 Jul 2011 02:14:41 +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 1Qdv9s-0007mI-J1 for submit@debbugs.gnu.org; Mon, 04 Jul 2011 22:14:40 -0400 Original-Received: from mail-pv0-f172.google.com ([74.125.83.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qdv9q-0007m5-BJ for 8998@debbugs.gnu.org; Mon, 04 Jul 2011 22:14:39 -0400 Original-Received: by pvh18 with SMTP id 18so5326395pvh.3 for <8998@debbugs.gnu.org>; Mon, 04 Jul 2011 19:14:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:from:to:subject:reply-to:date:message-id:mime-version :content-type; bh=mKYhtKNGYL4FnwP2yIfyXrJCP7iV8HDcJbtBNN+vPxg=; b=Cbdc5+f7N9UUdFQi0PuphCfO+pjsgmtpvLbiGs1KKndm8yr3NoSvUC2zC9xngCZN58 pIMj2jisopKP93M5tyd1Xd8LfzUggzH5wDQVObYhVjxuNWDlQ69Z4xeTNGhXwqulKB6J 0jeKR3Z9s6nx64GVSB2vTP9Z/foGgwphWtz9g= Original-Received: by 10.142.139.15 with SMTP id m15mr854109wfd.41.1309832072232; Mon, 04 Jul 2011 19:14:32 -0700 (PDT) Original-Received: from kimr-laptop (static-50-53-5-59.bvtn.or.frontiernet.net [50.53.5.59]) by mx.google.com with ESMTPS id d3sm856328pbh.37.2011.07.04.19.14.30 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jul 2011 19:14:31 -0700 (PDT) Original-From: Richard Kim X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 04 Jul 2011 22:15: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:48003 Archived-At: I think the infinite loop problem that I reported was introduced by revision 104853 shown below. === modified file 'lisp/ChangeLog' --- lisp/ChangeLog 2011-07-01 13:37:00 +0000 +++ lisp/ChangeLog 2011-07-01 16:41:02 +0000 @@ -1,3 +1,8 @@ +2011-07-01 Stefan Monnier + + * emacs-lisp/derived.el (define-derived-mode): Make abbrev-table + inherit from parent. + 2011-07-01 Lars Magne Ingebrigtsen * dired-aux.el (dired-diff): Doc fixup (bug#8816). === modified file 'lisp/emacs-lisp/derived.el' --- lisp/emacs-lisp/derived.el 2011-03-22 20:58:27 +0000 +++ lisp/emacs-lisp/derived.el 2011-07-01 16:41:02 +0000 @@ -253,8 +253,11 @@ `(let ((parent (char-table-parent ,syntax))) (unless (and parent (not (eq parent (standard-syntax-table)))) - (set-char-table-parent ,syntax (syntax-table))))))) - + (set-char-table-parent ,syntax (syntax-table))))) + ,(when declare-abbrev + `(unless (abbrev-table-get ,abbrev :parents) + (abbrev-table-put ,abbrev :parents + (list local-abbrev-table)))))) (use-local-map ,map) ,(when syntax `(set-syntax-table ,syntax)) ,(when abbrev `(setq local-abbrev-table ,abbrev))