all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* CC mode 5.33 does not work on Emacs 24.5.1 for Mac
@ 2016-09-14  7:08 Juha Nieminen
  2016-09-20  6:04 ` Juha Nieminen
  0 siblings, 1 reply; 11+ messages in thread
From: Juha Nieminen @ 2016-09-14  7:08 UTC (permalink / raw)
  To: help-gnu-emacs

I was wondering if somebody could help me figuring out what the problem is
with this.

I'm using the following version of Emacs on this Mac OS X computer:

GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)
 of 2015-04-10 on builder10-9.porkrind.org

I downloaded CC Mode 5.33 from http://cc-mode.sourceforge.net/ and
followed the installation instructions.

After adding the directory to the load path, the new CC mode 5.33 is
loaded when I open a source code file ("M-x c-version" gives "Using CC
Mode version 5.33"). However, it does not work properly.

Immediately upon opening a source code file, it gives the error "File
mode specification error: (wrong-type-argument stringp nil)". The text
itself is also only partially colored (eg. some comment lines are
colored while others aren't). Trying to autoindent by pressing tab
gives the error "Wrong type argument: stringp, nil".

Note that:

* My .emacs is not the culprit, as the problem happens even if said file
contains nothing more than the path-setting line

(add-to-list 'load-path "~/software/cc-mode-5.33/")

* The problem happens even if I launch emacs with the options
"-Q -L ~/software/cc-mode-5.33" or the option "--no-site-file".

* The problem does *not* happen if I run an older emacs (22.1.1)
pre-installed in this system (which, however, seems to be text
mode only, with no GUI support).

* The problem does *not* happen with a Windows port of emacs.
It only happens with this Mac OS X version.

--- news://freenews.netfront.net/ - complaints: news@netfront.net ---


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

* Re: CC mode 5.33 does not work on Emacs 24.5.1 for Mac
  2016-09-14  7:08 CC mode 5.33 does not work on Emacs 24.5.1 for Mac Juha Nieminen
@ 2016-09-20  6:04 ` Juha Nieminen
  2016-09-20 22:01   ` John Mastro
       [not found]   ` <mailman.2722.1474408905.22741.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 11+ messages in thread
From: Juha Nieminen @ 2016-09-20  6:04 UTC (permalink / raw)
  To: help-gnu-emacs

Juha Nieminen <nospam@thanks.invalid> wrote:
> I was wondering if somebody could help me figuring out what the problem is
> with this.

So nobody has any suggestions whatsoever?

--- news://freenews.netfront.net/ - complaints: news@netfront.net ---


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

* Re: CC mode 5.33 does not work on Emacs 24.5.1 for Mac
  2016-09-20  6:04 ` Juha Nieminen
@ 2016-09-20 22:01   ` John Mastro
       [not found]   ` <mailman.2722.1474408905.22741.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 11+ messages in thread
From: John Mastro @ 2016-09-20 22:01 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org; +Cc: Juha Nieminen

On Mon, Sep 19, 2016 at 11:04 PM, Juha Nieminen <nospam@thanks.invalid> wrote:
> Juha Nieminen <nospam@thanks.invalid> wrote:
>> I was wondering if somebody could help me figuring out what the problem is
>> with this.
>
> So nobody has any suggestions whatsoever?

I suggest you report this as a bug with M-x report-emacs-bug. The
maintainers of both Emacs and CC-mode monitor reports there.

Other than that, invoke M-x toggle-debug-on-error and then repeat the
recipe so you get a backtrace. That will show what chain of calls lead
to the error (and would be a good thing to include in the bug report, if
you file one).

        John



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

* Re: CC mode 5.33 does not work on Emacs 24.5.1 for Mac
       [not found]   ` <mailman.2722.1474408905.22741.help-gnu-emacs@gnu.org>
@ 2016-09-21  5:57     ` Juha Nieminen
  2016-09-21 17:20       ` John Mastro
       [not found]       ` <mailman.2766.1474478480.22741.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 11+ messages in thread
From: Juha Nieminen @ 2016-09-21  5:57 UTC (permalink / raw)
  To: help-gnu-emacs

John Mastro <john.b.mastro@gmail.com> wrote:
> On Mon, Sep 19, 2016 at 11:04 PM, Juha Nieminen <nospam@thanks.invalid> wrote:
>> Juha Nieminen <nospam@thanks.invalid> wrote:
>>> I was wondering if somebody could help me figuring out what the problem is
>>> with this.
>>
>> So nobody has any suggestions whatsoever?
> 
> I suggest you report this as a bug with M-x report-emacs-bug. The
> maintainers of both Emacs and CC-mode monitor reports there.

I did that. They have no idea.

> Other than that, invoke M-x toggle-debug-on-error and then repeat the
> recipe so you get a backtrace. That will show what chain of calls lead
> to the error (and would be a good thing to include in the bug report, if
> you file one).

I also did that. And they still didn't have any idea.

For what it's worth, here's the output:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  signal(wrong-type-argument (stringp nil))
  byte-code("\210\302	     @	      A\"\207" [start err signal] 3)
  c-syntactic-re-search-forward(nil nil t t)
  c-forward-<>-arglist-recur(nil)
  byte-code("\302\211\207" [all-types c-record-found-types c-forward-<>-arglist-recur] 2)
  c-forward-<>-arglist(nil)
  c-restore-<>-properties(1 1164 1163)
  #[(fn) "ddeZ#\207" [fn] 5](c-restore-<>-properties)
  mapc(#[(fn) "ddeZ#\207" [fn] 5] (c-depropertize-new-text c-extend-font-lock-region-for-macros c-before-after-change-digit-quote c-after-change-re-mark-raw-strings c-neutralize-syntax-in-and-mark-CPP c-restore-<>-properties c-change-expand-fl-region))
  c-common-init(c++-mode)
  c++-mode()
  set-auto-mode-0(c++-mode nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer test.cc> "~/tmp/test.cc" nil nil "~/tmp/test.cc" (14346868 16777217))
  find-file-noselect("~/tmp/test.cc" nil nil t)
  find-file("~/tmp/test.cc" t)
  call-interactively(find-file nil nil)
  command-execute(find-file)

--- news://freenews.netfront.net/ - complaints: news@netfront.net ---


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

* Re: CC mode 5.33 does not work on Emacs 24.5.1 for Mac
  2016-09-21  5:57     ` Juha Nieminen
@ 2016-09-21 17:20       ` John Mastro
       [not found]       ` <mailman.2766.1474478480.22741.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 11+ messages in thread
From: John Mastro @ 2016-09-21 17:20 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

Juha Nieminen <nospam@thanks.invalid> wrote:
>> I suggest you report this as a bug with M-x report-emacs-bug. The
>> maintainers of both Emacs and CC-mode monitor reports there.
>
> I did that. They have no idea.
>
>> Other than that, invoke M-x toggle-debug-on-error and then repeat the
>> recipe so you get a backtrace. That will show what chain of calls lead
>> to the error (and would be a good thing to include in the bug report, if
>> you file one).
>
> I also did that. And they still didn't have any idea.

What was the bug number? I wanted to see if I could find any hints but
couldn't find the email by searching for your name.

> For what it's worth, here's the output:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   signal(wrong-type-argument (stringp nil))
>   byte-code("\210\302        @        A\"\207" [start err signal] 3)
>   c-syntactic-re-search-forward(nil nil t t)
>   c-forward-<>-arglist-recur(nil)

After the error occurs, what's the value of `c-<>-notable-chars-re' in
that buffer?

        John



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

* Re: CC mode 5.33 does not work on Emacs 24.5.1 for Mac
       [not found]       ` <mailman.2766.1474478480.22741.help-gnu-emacs@gnu.org>
@ 2016-10-12  7:28         ` Juha Nieminen
  2016-10-12 12:38           ` Óscar Fuentes
  2016-10-13 14:05           ` B. T. Raven
  0 siblings, 2 replies; 11+ messages in thread
From: Juha Nieminen @ 2016-10-12  7:28 UTC (permalink / raw)
  To: help-gnu-emacs

John Mastro <john.b.mastro@gmail.com> wrote:
>> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>>   signal(wrong-type-argument (stringp nil))
>>   byte-code("\210\302        @        A\"\207" [start err signal] 3)
>>   c-syntactic-re-search-forward(nil nil t t)
>>   c-forward-<>-arglist-recur(nil)
> 
> After the error occurs, what's the value of `c-<>-notable-chars-re' in
> that buffer?

I don't know how to find that out.

--- news://freenews.netfront.net/ - complaints: news@netfront.net ---


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

* Re: CC mode 5.33 does not work on Emacs 24.5.1 for Mac
  2016-10-12  7:28         ` Juha Nieminen
@ 2016-10-12 12:38           ` Óscar Fuentes
  2016-10-12 21:05             ` John Mastro
  2016-10-13 14:05           ` B. T. Raven
  1 sibling, 1 reply; 11+ messages in thread
From: Óscar Fuentes @ 2016-10-12 12:38 UTC (permalink / raw)
  To: help-gnu-emacs

Juha Nieminen <nospam@thanks.invalid> writes:

>> After the error occurs, what's the value of `c-<>-notable-chars-re' in
>> that buffer?
>
> I don't know how to find that out.

While on the buffer of interest:

  M-h v c-<>-notable-chars-re [ENTER]

A window will popup containing something like this at the top:

  c-<>-notable-chars-re is a variable defined in ‘cc-engine.el’.
  Its value is "[<;{},>()]"
  Local in buffer fun.cpp; global value is nil




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

* Re: CC mode 5.33 does not work on Emacs 24.5.1 for Mac
  2016-10-12 12:38           ` Óscar Fuentes
@ 2016-10-12 21:05             ` John Mastro
  2016-10-12 21:51               ` Óscar Fuentes
  0 siblings, 1 reply; 11+ messages in thread
From: John Mastro @ 2016-10-12 21:05 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org; +Cc: Óscar Fuentes

 Óscar Fuentes <ofv@wanadoo.es> wrote:
>   M-h v c-<>-notable-chars-re [ENTER]
    ^^^

That should be C-h :)

        John



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

* Re: CC mode 5.33 does not work on Emacs 24.5.1 for Mac
  2016-10-12 21:05             ` John Mastro
@ 2016-10-12 21:51               ` Óscar Fuentes
  0 siblings, 0 replies; 11+ messages in thread
From: Óscar Fuentes @ 2016-10-12 21:51 UTC (permalink / raw)
  To: help-gnu-emacs

John Mastro <john.b.mastro@gmail.com> writes:

>  Óscar Fuentes <ofv@wanadoo.es> wrote:
>>   M-h v c-<>-notable-chars-re [ENTER]
>     ^^^
>
> That should be C-h :)

Of course. Thanks for the correction and my apologies to the OP.




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

* Re: CC mode 5.33 does not work on Emacs 24.5.1 for Mac
  2016-10-12  7:28         ` Juha Nieminen
  2016-10-12 12:38           ` Óscar Fuentes
@ 2016-10-13 14:05           ` B. T. Raven
  2016-10-13 16:50             ` John Mastro
  1 sibling, 1 reply; 11+ messages in thread
From: B. T. Raven @ 2016-10-13 14:05 UTC (permalink / raw)
  To: help-gnu-emacs

On 10/12/2016 02:28, Juha Nieminen wrote:
> John Mastro <john.b.mastro@gmail.com> wrote:
>>> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>>>   signal(wrong-type-argument (stringp nil))
>>>   byte-code("\210\302        @        A\"\207" [start err signal] 3)
>>>   c-syntactic-re-search-forward(nil nil t t)
>>>   c-forward-<>-arglist-recur(nil)
>>
>> After the error occurs, what's the value of `c-<>-notable-chars-re' in
>> that buffer?
>
> I don't know how to find that out.
>
> --- news://freenews.netfront.net/ - complaints: news@netfront.net ---
>

According to this diffs page

https://lists.gnu.org/archive/html/emacs-diffs/2016-02/msg00438.html


c-<>-notable-chars-re
is a new variable in ver. 25 so it won't be found in ver. 24


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

* Re: CC mode 5.33 does not work on Emacs 24.5.1 for Mac
  2016-10-13 14:05           ` B. T. Raven
@ 2016-10-13 16:50             ` John Mastro
  0 siblings, 0 replies; 11+ messages in thread
From: John Mastro @ 2016-10-13 16:50 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org; +Cc: B. T. Raven

B. T. Raven <btraven@nihilo.net> wrote:
> On 10/12/2016 02:28, Juha Nieminen wrote:
>>
>> John Mastro <john.b.mastro@gmail.com> wrote:
>>>>
>>>> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>>>>   signal(wrong-type-argument (stringp nil))
>>>>   byte-code("\210\302        @        A\"\207" [start err signal] 3)
>>>>   c-syntactic-re-search-forward(nil nil t t)
>>>>   c-forward-<>-arglist-recur(nil)
>>>
>>>
>>> After the error occurs, what's the value of `c-<>-notable-chars-re' in
>>> that buffer?
>>
>>
>> I don't know how to find that out.
>>
>> --- news://freenews.netfront.net/ - complaints: news@netfront.net ---
>>
>
> According to this diffs page
>
> https://lists.gnu.org/archive/html/emacs-diffs/2016-02/msg00438.html
>
>
> c-<>-notable-chars-re
> is a new variable in ver. 25 so it won't be found in ver. 24

Juha is using standalone CC Mode 5.33, so I believe it should be there.

        John



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

end of thread, other threads:[~2016-10-13 16:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-14  7:08 CC mode 5.33 does not work on Emacs 24.5.1 for Mac Juha Nieminen
2016-09-20  6:04 ` Juha Nieminen
2016-09-20 22:01   ` John Mastro
     [not found]   ` <mailman.2722.1474408905.22741.help-gnu-emacs@gnu.org>
2016-09-21  5:57     ` Juha Nieminen
2016-09-21 17:20       ` John Mastro
     [not found]       ` <mailman.2766.1474478480.22741.help-gnu-emacs@gnu.org>
2016-10-12  7:28         ` Juha Nieminen
2016-10-12 12:38           ` Óscar Fuentes
2016-10-12 21:05             ` John Mastro
2016-10-12 21:51               ` Óscar Fuentes
2016-10-13 14:05           ` B. T. Raven
2016-10-13 16:50             ` John Mastro

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.