From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#8998: further analysis of the problem Date: Tue, 05 Jul 2011 14:28:43 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309901216 27418 80.91.229.12 (5 Jul 2011 21:26:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 5 Jul 2011 21:26:56 +0000 (UTC) Cc: 8998@debbugs.gnu.org To: emacs18@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 05 23:26:49 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 1QeD8o-0000Z0-8A for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jul 2011 23:26:46 +0200 Original-Received: from localhost ([::1]:53256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeD8n-0002BZ-Ey for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jul 2011 17:26:45 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeAMq-0003AX-Cr for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2011 14:29:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QeAMo-0003kD-V1 for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2011 14:29:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeAMo-0003k9-Kt for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2011 14:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QeAMn-00083L-VI; Tue, 05 Jul 2011 14:29:01 -0400 X-Loop: help-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: Tue, 05 Jul 2011 18:29:01 +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.130989053330942 (code B ref 8998); Tue, 05 Jul 2011 18:29:01 +0000 Original-Received: (at 8998) by debbugs.gnu.org; 5 Jul 2011 18:28:53 +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 1QeAMf-000830-C3 for submit@debbugs.gnu.org; Tue, 05 Jul 2011 14:28:53 -0400 Original-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 1QeAMc-00082n-D6 for 8998@debbugs.gnu.org; Tue, 05 Jul 2011 14:28:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AskHAIxXE05FxIxr/2dsb2JhbABTmROOdXiIesI7hjYEnlyELA X-IronPort-AV: E=Sophos;i="4.65,481,1304308800"; d="scan'208";a="120558449" Original-Received: from 69-196-140-107.dsl.teksavvy.com (HELO pastel.home) ([69.196.140.107]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 05 Jul 2011 14:28:44 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id EC909592B2; Tue, 5 Jul 2011 14:28:43 -0400 (EDT) In-Reply-To: (emacs's message of "Mon, 04 Jul 2011 20:50:32 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 05 Jul 2011 14:29:01 -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:48041 Archived-At: > Why is `lisp-interaction-mode-abbrev-table' its own parent? I've installed the patch below which I believe fixes the problem. Can you confirm that it fixes the problem for you? Stefan === modified file 'lisp/emacs-lisp/derived.el' --- lisp/emacs-lisp/derived.el 2011-07-01 16:41:02 +0000 +++ lisp/emacs-lisp/derived.el 2011-07-05 18:23:08 +0000 @@ -255,7 +255,10 @@ (not (eq parent (standard-syntax-table)))) (set-char-table-parent ,syntax (syntax-table))))) ,(when declare-abbrev - `(unless (abbrev-table-get ,abbrev :parents) + `(unless (or (abbrev-table-get ,abbrev :parents) + ;; This can happen if the major mode defines + ;; the abbrev-table to be its parent's. + (eq ,abbrev local-abbrev-table)) (abbrev-table-put ,abbrev :parents (list local-abbrev-table)))))) (use-local-map ,map) === modified file 'lisp/emacs-lisp/lisp-mode.el' --- lisp/emacs-lisp/lisp-mode.el 2011-06-28 12:09:43 +0000 +++ lisp/emacs-lisp/lisp-mode.el 2011-07-05 16:14:45 +0000 @@ -525,7 +525,6 @@ "Keymap for Lisp Interaction mode. All commands in `lisp-mode-shared-map' are inherited by this map.") -(defvar lisp-interaction-mode-abbrev-table lisp-mode-abbrev-table) (define-derived-mode lisp-interaction-mode emacs-lisp-mode "Lisp Interaction" "Major mode for typing and evaluating Lisp forms. Like Lisp mode except that \\[eval-print-last-sexp] evals the Lisp expression