all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Francis Belliveau <f.belliveau@comcast.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Java-mode Debug question ?
Date: Sun, 18 Nov 2018 10:32:59 -0500	[thread overview]
Message-ID: <9E91FF3C-680F-4BE3-8469-4534E9CABD19@comcast.net> (raw)
In-Reply-To: <70013A37-7E86-4AE8-809D-9B39F01FAFF9@comcast.net>

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))
                (= (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.  
  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 <f.belliveau@comcast.net> wrote:
> 
> No, There is only one "shadow" listed and that is "sort".  Getting rid of that did not help.
> 
> 
>> On Nov 17, 2018, at 12:51, Eli Zaretskii <eliz@gnu.org> wrote:
>> 
>>> From: Francis Belliveau <f.belliveau@comcast.net>
>>> Date: Sat, 17 Nov 2018 12:39:34 -0500
>>> 
>>> 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.
>>> 
>>> 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.
>>> 
>>> Setting debug-on-error provides the following information:
>>> 
>>> 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)
>>> 
>>> Any help will be appreciated.
>> 
>> Does "M-x list-load-path-shadows RET" give any clue?
>> 
> 
> 




  reply	other threads:[~2018-11-18 15:32 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-24 15:23 Where is Emacs Lisp taught ? Jean-Christophe Helary
2018-10-24 16:02 ` Emanuel Berg
2018-10-24 22:24   ` Garreau, Alexandre
2018-10-24 23:30     ` Jean-Christophe Helary
2018-10-25  3:31       ` Van L
2018-10-25 19:01     ` Emanuel Berg
2018-10-26 11:43       ` Garreau, Alexandre
2018-10-26 13:53         ` Emanuel Berg
2018-10-26 15:41         ` Stefan Monnier
2018-10-27 10:50           ` Garreau, Alexandre
2018-11-14 23:27     ` Drew Adams
2018-11-15  3:08       ` Stefan Monnier
2018-11-15  4:47         ` Drew Adams
2018-11-15  8:04         ` tomas
2018-11-15 20:01         ` Bob Proulx
     [not found]     ` <mailman.4061.1542238084.1284.help-gnu-emacs@gnu.org>
2018-11-17 15:41       ` Gene
2018-11-17 17:39         ` Java-mode Debug question ? Francis Belliveau
2018-11-17 17:51           ` Eli Zaretskii
2018-11-18 12:34             ` Francis Belliveau
2018-11-18 15:32               ` Francis Belliveau [this message]
2018-11-27  1:06             ` Problem with CC mode hooks and font-locking Francis Belliveau
2018-11-27  2:38               ` Stefan Monnier
2018-11-30 21:50                 ` Francis Belliveau
2018-12-01  7:55                   ` Eli Zaretskii
2018-12-01 14:33                     ` Francis Belliveau
2019-02-22  4:14         ` Where is Emacs Lisp taught ? Van L
     [not found] ` <mailman.2668.1540396976.1284.help-gnu-emacs@gnu.org>
2018-10-26 18:05   ` Gene
2018-10-27  0:54     ` Jean-Christophe Helary
2018-10-27 17:27       ` Emanuel Berg
2018-10-28  0:27       ` Garreau, Alexandre
2018-10-28  1:16         ` Jean-Christophe Helary
2018-10-28  2:47           ` Garreau, Alexandre
2018-10-28  7:04             ` Alan E. Davis
2018-10-28  7:28               ` Van L
2018-10-28 17:07               ` Emanuel Berg
     [not found]             ` <mailman.2937.1540710329.1284.help-gnu-emacs@gnu.org>
2018-10-28 17:03               ` Emanuel Berg
2018-10-28 17:14                 ` Emanuel Berg
2018-10-30 19:30               ` Gene
2018-10-30 19:46                 ` Stefan Monnier
2018-10-30 20:33                   ` Nick Dokos
     [not found]                   ` <mailman.3129.1540931601.1284.help-gnu-emacs@gnu.org>
2018-10-31 11:20                     ` Emanuel Berg
     [not found]                 ` <mailman.3123.1540928817.1284.help-gnu-emacs@gnu.org>
2018-10-30 20:28                   ` Emanuel Berg
2018-10-30 20:32                     ` Drew Adams
2018-10-31  2:14                     ` Gmane Autoauthorizer (was: Re: Where is Emacs Lisp taught ?) Nuno Silva
2018-10-31 11:23                       ` Emanuel Berg
2018-11-02  1:33                         ` Gmane Autoauthorizer Nuno Silva
2018-11-02  8:38                           ` Emanuel Berg
2018-11-03 12:41                             ` Nuno Silva
2018-11-03 15:24                               ` Emanuel Berg
2018-11-04 21:25                                 ` Nuno Silva
2018-11-05 20:51                                   ` Emanuel Berg
2018-11-01 13:02                       ` Gmane Autoauthorizer (was: Re: Where is Emacs Lisp taught ?) Emanuel Berg
2018-11-01 13:07                         ` Emanuel Berg
2018-11-02  1:23                           ` Gmane Autoauthorizer Nuno Silva
     [not found]                     ` <mailman.3128.1540931562.1284.help-gnu-emacs@gnu.org>
2018-10-31 11:19                       ` Where is Emacs Lisp taught ? Emanuel Berg
2018-10-31 14:22                         ` Drew Adams
     [not found]                         ` <mailman.3163.1540995758.1284.help-gnu-emacs@gnu.org>
2018-10-31 16:01                           ` Emanuel Berg
2018-11-09  9:16                             ` Van L
     [not found]                             ` <mailman.3710.1541755025.1284.help-gnu-emacs@gnu.org>
2018-11-10 17:02                               ` Gene
2018-11-04 12:17                         ` Daniel Nemenyi
     [not found]         ` <mailman.2929.1540689371.1284.help-gnu-emacs@gnu.org>
2018-10-28  2:11           ` Gene
2018-10-28  2:21             ` Jean-Christophe Helary
     [not found]             ` <mailman.2933.1540693317.1284.help-gnu-emacs@gnu.org>
2018-10-30 17:35               ` Gene
2018-10-27 18:40     ` Gene
2018-10-27 19:27       ` Emanuel Berg
2018-10-28  0:52       ` Garreau, Alexandre
2018-10-28  1:11       ` Jean-Christophe Helary
2018-10-28  0:19     ` Garreau, Alexandre
     [not found]     ` <mailman.2923.1540686004.1284.help-gnu-emacs@gnu.org>
2018-10-30 17:22       ` Gene
2018-10-31  3:54         ` Van L
2018-10-31 10:42         ` Eric S Fraga
     [not found]         ` <mailman.3146.1540958071.1284.help-gnu-emacs@gnu.org>
2018-11-02 19:34           ` Gene
2018-11-02 20:45             ` Gene

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9E91FF3C-680F-4BE3-8469-4534E9CABD19@comcast.net \
    --to=f.belliveau@comcast.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.