From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Francis Belliveau Newsgroups: gmane.emacs.help Subject: Re: Java-mode Debug question ? Date: Sun, 18 Nov 2018 10:32:59 -0500 Message-ID: <9E91FF3C-680F-4BE3-8469-4534E9CABD19@comcast.net> References: <5B8BFDC9-A07B-48FE-8C97-1BB0B84E5577@gmail.com> <865zxruycx.fsf@zoho.com> <875zxr7zke.fsf@portable.galex-713.eu> <00997cf4-4577-49d4-b48d-79e6a46b0211@googlegroups.com> <28B5D5A6-4E84-455C-BA8E-84AC0C5BD454@comcast.net> <83h8gftwxb.fsf@gnu.org> <70013A37-7E86-4AE8-809D-9B39F01FAFF9@comcast.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1542555103 1769 195.159.176.226 (18 Nov 2018 15:31:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Nov 2018 15:31:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 18 16:31:39 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gOP2w-0000Kr-Hg for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Nov 2018 16:31:38 +0100 Original-Received: from localhost ([::1]:52701 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOP53-0006qG-29 for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Nov 2018 10:33:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOP4N-0006fj-Hw for help-gnu-emacs@gnu.org; Sun, 18 Nov 2018 10:33:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gOP4I-0004lE-EB for help-gnu-emacs@gnu.org; Sun, 18 Nov 2018 10:33:07 -0500 Original-Received: from resqmta-ch2-07v.sys.comcast.net ([2001:558:fe21:29:69:252:207:39]:57748) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gOP4I-0004ku-91 for help-gnu-emacs@gnu.org; Sun, 18 Nov 2018 10:33:02 -0500 Original-Received: from resomta-ch2-12v.sys.comcast.net ([69.252.207.108]) by resqmta-ch2-07v.sys.comcast.net with ESMTP id OOu7gE04cvFslOP4Hg2eSG; Sun, 18 Nov 2018 15:33:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1542555181; bh=/7k3bl9VZ94Wu5QUh1C2A97VJ8Zxd1b7iznJB1xC9Ng=; h=Received:Received:From:Content-Type:Mime-Version:Subject:Date:To: Message-Id; b=i9cKBULlS/R2tsCFPNT40JjnS9k01vlI+NoUVEVcnRBCixxGTidGV0e/OMNKRh9NA wKVgZrMYw37cxLarqGZSyJ3rfpBiZ/Z7fbuKoEi2BM3tgAhU1d8qyCSDCyQkMOrYFy QCgNbp3uaTqNqCh8dxRq6BZulTGasL+6jW8dO8HjJ02f4NsVD0jP4Y5HRx0Zj2dtFh J3Ecxqj4zUL/WAecEhWYZ/jRA36e8pWjVjfi+lkBjc/ztydgVEJhsHphz+/Tl3st8A kvSjWAXEAoBdFX/rihXr7TXRKpH7VwWGoOhrrmsn4Jtzd6Fo+OYBuvU/mEoXUHLfat 0W1xf0CUKYARg== Original-Received: from [IPv6:2601:190:580:9c44:fd15:4a34:f7f8:1376] ([IPv6:2601:190:580:9c44:fd15:4a34:f7f8:1376]) by resomta-ch2-12v.sys.comcast.net with ESMTPSA id OP4GgWhXPTK5BOP4HgyJRR; Sun, 18 Nov 2018 15:33:01 +0000 In-Reply-To: <70013A37-7E86-4AE8-809D-9B39F01FAFF9@comcast.net> X-Mailer: Apple Mail (2.3445.9.1) X-CMAE-Envelope: MS4wfCVLq1TMrnDk7b1FvMdVKIHwdrHQ/XJEDpq2Ki09OKb1RxstrcYQD2sdhidOP6HsofPHwgVmPD3qYP9zPFK4nuAWB8+K3SSZsa4b24b95VD+oBx74hm0 4U8qKd/ncCVQH60J4r68i8mtgIUnLkHwcnmLHAa9DElCn5C7ql4eNM5NK4g/GkkGQJo8vlz8mlGI917JW18oLJ2YpQAvU9qBIayo8C5/ib7u7X4Vns73ZWUQ 8LiiVXSDsHnOygilwagUh6XyJ+2ZugWbXRM7Usz+X7+qBk79YqhWAEIJQMpMHaut X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:558:fe21:29:69:252:207:39 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:118707 Archived-At: All, At this point I must apologize to the list here for my initial question. = It seems that I broke my cardinal rule to check customizations for = issues before resorting to asking a question here. Eli's suggestion cause me to realize that I had forgotten to check all = my customizations when I installed this new version some months back. As it turns out there is a piece of code in one of my customizations = that is the culprit. (if (need-extra-port-fixes-p) (progn (defvar c-mode-map () "Keymap used in c-mode buffers.") ;; c-inside-parent-p was taken from c-mode.el of emacs-19.30 ;; because it loads cc-mode.el which doesn't have this function. (defun c-inside-parens-p () (condition-case () (save-excursion (save-restriction (narrow-to-region (point) (progn (beginning-of-defun) (point))) (goto-char (point-max)) (=3D (char-after (or (scan-lists (point) -1 1) = (point-min))) ?\())) (error nil))) )) I can see a couple of funny things here so I am back here asking some = better questions. You can assume that (need-extra-port-fixes) is true, = since this is causing a problem, but that part of the code is not = important. First, I am not sure about the comment that mentions c-inside-parent-p, = I assume that is a typo and what I am trying to do is "import" this = function from a previous version. This clearly runs while loading a custom package that relies heavily = on knowing if "point" is within parentheses. =20 I expect that c-mode has yet to be initialized when this runs and some = portion of behavior has changed with regard to c-mode-map being created = by this code and then later used when c-mode is actually initialized. Second thing is why would such code be putting this defun into = c-mode-map without any keystroke? Third, is there a newer function that I can use in place of this? I have clearly not spent any time digging deep into elisp in a long = time and therefore do not know what has been developed Looking forward to learning more. Thanks for your help. Fran > On Nov 18, 2018, at 07:34, Francis Belliveau = wrote: >=20 > No, There is only one "shadow" listed and that is "sort". Getting rid = of that did not help. >=20 >=20 >> On Nov 17, 2018, at 12:51, Eli Zaretskii wrote: >>=20 >>> From: Francis Belliveau >>> Date: Sat, 17 Nov 2018 12:39:34 -0500 >>>=20 >>> I am running emacs Version 26.1 (9.0) on OSX 10.13.6 >>> I know that I downloaded and installed this earlier this year and = have not used Java-mode, or c-mode, with this version until today. >>>=20 >>> When I try entering Java-mode I get an error indicating that there = is a problem, with a key-map. This happens with c-mode also. Clearly = there is something wrong with the install, but I have no clue where to = look for the problem. >>>=20 >>> Setting debug-on-error provides the following information: >>>=20 >>> Debugger entered--Lisp error: (wrong-type-argument keymapp nil) >>> define-key(nil "\003\005" c-macro-expand) >>> autoload-do-load((autoload "cc-mode" 889279 t nil) java-mode) >>> command-execute(java-mode record) >>> execute-extended-command(nil "java-mode" "java-mode") >>> funcall-interactively(execute-extended-command nil "java-mode" = "java-mode") >>> call-interactively(execute-extended-command nil nil) >>> command-execute(execute-extended-command) >>>=20 >>> Any help will be appreciated. >>=20 >> Does "M-x list-load-path-shadows RET" give any clue? >>=20 >=20 >=20