unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [Emacs-diffs] trunk r113568: Make Java try-with-resources statement parse properly.
       [not found] <E1V33K4-0000Oj-Qz@vcs.savannah.gnu.org>
@ 2013-07-31 16:35 ` Juanma Barranquero
  2013-08-02 17:24   ` Alan Mackenzie
  0 siblings, 1 reply; 3+ messages in thread
From: Juanma Barranquero @ 2013-07-31 16:35 UTC (permalink / raw)
  To: Alan Mackenzie, Emacs developers

On Sat, Jul 27, 2013 at 2:10 PM, Alan Mackenzie <acm@muc.de> wrote:
> ------------------------------------------------------------
> revno: 113568
> revision-id: acm@muc.de-20130727120743-7dybqfeqhw3ww4cs
> parent: rgm@gnu.org-20130727101730-vloxhd29dwohfngs
> committer: Alan Mackenzie <acm@muc.de>
> branch nick: trunk
> timestamp: Sat 2013-07-27 12:07:43 +0000
> message:
>   Make Java try-with-resources statement parse properly.

This patch causes redisplay errors when visiting C source files:

Error during redisplay: (jit-lock-function 2096) signaled
(wrong-type-argument stringp nil)
Error during redisplay: (jit-lock-function 2643) signaled
(wrong-type-argument stringp nil)
Error during redisplay: (jit-lock-function 3144) signaled
(wrong-type-argument stringp nil)

Possibly because of this:

emacs -Q src/alloc.c
M-: (font-lock-fontify-region (point-min) (point-max)) <RET>

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  looking-at(nil)
  #[(match-pos inside-macro) ...] 7](2295 t)
  c-find-decl-spots(181931 "[[:alpha:]_]" (nil font-lock-type-face
font-lock-constant-face font-lock-keyword-face) #[(match-pos
inside-macro) ...] 7])
  c-font-lock-declarations(181931)
  font-lock-fontify-keywords-region(1 181931 nil)
  font-lock-default-fontify-region(1 181931 nil)
  c-font-lock-fontify-region(1 181931 nil)
  font-lock-fontify-region(1 181931)
  eval((font-lock-fontify-region (point-min) (point-max)) nil)
  eval-expression((font-lock-fontify-region (point-min) (point-max)) nil)
  call-interactively(eval-expression nil nil)
  command-execute(eval-expression)



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Emacs-diffs] trunk r113568: Make Java try-with-resources statement parse properly.
  2013-07-31 16:35 ` [Emacs-diffs] trunk r113568: Make Java try-with-resources statement parse properly Juanma Barranquero
@ 2013-08-02 17:24   ` Alan Mackenzie
  2013-08-02 17:27     ` Juanma Barranquero
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Mackenzie @ 2013-08-02 17:24 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: Emacs developers

Hi, Juanma.

On Wed, Jul 31, 2013 at 06:35:45PM +0200, Juanma Barranquero wrote:
> On Sat, Jul 27, 2013 at 2:10 PM, Alan Mackenzie <acm@muc.de> wrote:
> > ------------------------------------------------------------
> > revno: 113568
> > revision-id: acm@muc.de-20130727120743-7dybqfeqhw3ww4cs
> > parent: rgm@gnu.org-20130727101730-vloxhd29dwohfngs
> > committer: Alan Mackenzie <acm@muc.de>
> > branch nick: trunk
> > timestamp: Sat 2013-07-27 12:07:43 +0000
> > message:
> >   Make Java try-with-resources statement parse properly.

> This patch causes redisplay errors when visiting C source files:

> Error during redisplay: (jit-lock-function 2096) signaled
> (wrong-type-argument stringp nil)
> Error during redisplay: (jit-lock-function 2643) signaled
> (wrong-type-argument stringp nil)
> Error during redisplay: (jit-lock-function 3144) signaled
> (wrong-type-argument stringp nil)

> Possibly because of this:

> emacs -Q src/alloc.c
> M-: (font-lock-fontify-region (point-min) (point-max)) <RET>

> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   looking-at(nil)
>   #[(match-pos inside-macro) ...] 7](2295 t)
>   c-find-decl-spots(181931 "[[:alpha:]_]" (nil font-lock-type-face
> font-lock-constant-face font-lock-keyword-face) #[(match-pos
> inside-macro) ...] 7])
>   c-font-lock-declarations(181931)
>   font-lock-fontify-keywords-region(1 181931 nil)
>   font-lock-default-fontify-region(1 181931 nil)
>   c-font-lock-fontify-region(1 181931 nil)
>   font-lock-fontify-region(1 181931)
>   eval((font-lock-fontify-region (point-min) (point-max)) nil)
>   eval-expression((font-lock-fontify-region (point-min) (point-max)) nil)
>   call-interactively(eval-expression nil nil)
>   command-execute(eval-expression)

It looks very much like cc-mode.el hasn't been recompiled.  Is that the
case?

The mechanism is that a new "language variable" (i.e. a CC Mode variable
with different values in C Mode, C++ Mode, Java Mode, ....) was defined
in cc-langs.el.  This involves macros which are used in cc-fonts.el,
cc-engine.el and cc-mode.el, so all of these files need recompilation.

The dependency of cc-mode.elc on cc-langs.elc is specified in
.../lisp/Makefile.

If this isn't the cause of the problem, please get back to me.

-- 
Alan Mackenzie (Nuremberg, Germany).




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Emacs-diffs] trunk r113568: Make Java try-with-resources statement parse properly.
  2013-08-02 17:24   ` Alan Mackenzie
@ 2013-08-02 17:27     ` Juanma Barranquero
  0 siblings, 0 replies; 3+ messages in thread
From: Juanma Barranquero @ 2013-08-02 17:27 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: Emacs developers

> It looks very much like cc-mode.el hasn't been recompiled.  Is that the
> case?

Yes. Bootstraping fixed the issue.

Thanks,

    J



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-02 17:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <E1V33K4-0000Oj-Qz@vcs.savannah.gnu.org>
2013-07-31 16:35 ` [Emacs-diffs] trunk r113568: Make Java try-with-resources statement parse properly Juanma Barranquero
2013-08-02 17:24   ` Alan Mackenzie
2013-08-02 17:27     ` Juanma Barranquero

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).