* CC Mode 5.28 (ObjC); tags dont work
@ 2002-10-16 14:10 Karl Landström
2002-10-29 15:20 ` Francesco Potorti`
0 siblings, 1 reply; 3+ messages in thread
From: Karl Landström @ 2002-10-16 14:10 UTC (permalink / raw)
Hi,
When i try to display tags for Objective-C sourse code with function
`imenu' i get the error message
wrong type argument: listp, 94
The speedbar is also unable to show tags for Objective-C code.
Tags in e.g. C-mode works fine.
What can be wrong?
Regargds,
Karl Landström (contributor of eiffel.el)
Emacs : GNU Emacs 21.2.1 (i386-msvc-windows98.2222)
of 2002-03-19 on buffy
Package: CC Mode 5.28 (ObjC)
Buffer Style: gnu
c-emacs-features: (1-bit)
current state:
==============
(setq
c-basic-offset 3
c-comment-only-line-offset '(0 . 0)
c-block-comment-prefix ""
c-comment-prefix-regexp '((pike-mode . "//+!?\\|\\**") (other .
"//+\\|\\**"))
c-cleanup-list '(scope-operator)
c-hanging-braces-alist '((brace-list-open) (brace-entry-open)
(substatement-open after)
(block-close . c-snug-do-while)
(extern-lang-open after) (inexpr-class-open after)
(inexpr-class-close before))
c-hanging-colons-alist nil
c-hanging-semi&comma-criteria '(c-semi&comma-inside-parenlist)
c-backslash-column 48
c-label-minimum-indentation 1
c-offsets-alist '((string . c-lineup-dont-change)
(c . c-lineup-C-comments)
(defun-open . 0)
(defun-close . 0)
(defun-block-intro . +)
(class-open . 0)
(class-close . 0)
(inline-close . 0)
(func-decl-cont . +)
(knr-argdecl . 0)
(topmost-intro . 0)
(topmost-intro-cont . 0)
(member-init-intro . +)
(member-init-cont . c-lineup-multi-inher)
(inher-intro . +)
(inher-cont . c-lineup-multi-inher)
(block-open . 0)
(block-close . 0)
(brace-list-close . 0)
(brace-list-intro . +)
(brace-list-entry . 0)
(brace-entry-open . 0)
(statement . 0)
(statement-case-intro . +)
(substatement . +)
(case-label . 0)
(access-label . -)
(do-while-closure . 0)
(else-clause . 0)
(catch-clause . 0)
(comment-intro . c-lineup-comment)
(arglist-cont . 0)
(arglist-cont-nonempty . c-lineup-arglist)
(stream-op . c-lineup-streamop)
(inclass . +)
(cpp-macro . [0])
(cpp-macro-cont . c-lineup-dont-change)
(friend . 0)
(objc-method-intro . [0])
(objc-method-args-cont . c-lineup-ObjC-method-args)
(objc-method-call-cont . c-lineup-ObjC-method-call)
(extern-lang-open . 0)
(extern-lang-close . 0)
(inextern-lang . +)
(namespace-open . 0)
(namespace-close . 0)
(innamespace . +)
(template-args-cont c-lineup-template-args +)
(inlambda . c-lineup-inexpr-block)
(lambda-intro-cont . +)
(inexpr-statement . 0)
(inexpr-class . +)
(statement-block-intro . +)
(knr-argdecl-intro . 5)
(label . 0)
(statement-case-open . +)
(statement-cont . +)
(arglist-intro . c-lineup-arglist-intro-after-paren)
(arglist-close . c-lineup-arglist)
(inline-open . 0)
(brace-list-open . +)
(substatement-open . 0)
)
c-delete-function 'delete-char
c-electric-pound-behavior nil
c-indent-comments-syntactically-p nil
c-tab-always-indent t
defun-prompt-regexp nil
tab-width 8
comment-column 32
parse-sexp-ignore-comments t
auto-fill-function nil
comment-multi-line t
comment-start-skip "/\\*+ *\\|//+ *"
fill-prefix nil
paragraph-start "[ ]*\\(//+\\|\\**\\)[ ]*$\\|^\f"
adaptive-fill-mode t
adaptive-fill-regexp
"[ ]*\\(//+\\|\\**\\)[ ]*\\([ ]*\\([-|#;>*]+[ ]*\\|(?[0-9]+[.)][
]*\\)*\\)"
)
-------------------------------------------------------
This sf.net email is sponsored by:
Access Your PC Securely with GoToMyPC. Try Free Now
https://www.gotomypc.com/s/OSND/DD
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: CC Mode 5.28 (ObjC); tags dont work
2002-10-16 14:10 CC Mode 5.28 (ObjC); tags dont work Karl Landström
@ 2002-10-29 15:20 ` Francesco Potorti`
2002-10-29 15:32 ` Martin Stjernholm
0 siblings, 1 reply; 3+ messages in thread
From: Francesco Potorti` @ 2002-10-29 15:20 UTC (permalink / raw)
Cc: bug-gnu-emacs, bug-cc-mode
> When i try to display tags for Objective-C sourse code with function
> `imenu' i get the error message
>
> wrong type argument: listp, 94
>
> The speedbar is also unable to show tags for Objective-C code.
> Tags in e.g. C-mode works fine.
Would you submit a precise test case, and describe exactly what you did
before the error message? Possibly, have a look at the bug reporting
manual page.
Please:
- try with both the menu and the M-. keyboard command
- have a look in the TAGS file to see whether the tag you are looking
for is there. This will help clarify if etags did in fact create a
tag for where you want to go.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: CC Mode 5.28 (ObjC); tags dont work
2002-10-29 15:20 ` Francesco Potorti`
@ 2002-10-29 15:32 ` Martin Stjernholm
0 siblings, 0 replies; 3+ messages in thread
From: Martin Stjernholm @ 2002-10-29 15:32 UTC (permalink / raw)
Cc: Karl Landström, bug-gnu-emacs, bug-cc-mode
[-- Attachment #1: Type: text/plain, Size: 720 bytes --]
Francesco Potorti` <pot@gnu.org> wrote:
> > When i try to display tags for Objective-C sourse code with function
> > `imenu' i get the error message
> >
> > wrong type argument: listp, 94
> >
> > The speedbar is also unable to show tags for Objective-C code.
> > Tags in e.g. C-mode works fine.
>
> Would you submit a precise test case, and describe exactly what you did
> before the error message? Possibly, have a look at the bug reporting
> manual page.
This bug has already been identified and solved; my response is
attached below. I usually don't keep the CC to bug-gnu-emacs@gnu.org
for bugs that clearly are CC Mode related, but I guess it wasn't so
clear in this case. Sorry for the confusion.
[-- Attachment #2: Type: message/rfc822, Size: 2125 bytes --]
From: Martin Stjernholm <mast@lysator.liu.se>
To: "Karl Landström" <kala9469@student.su.se>
Cc: bug-cc-mode@gnu.org
Subject: Re: CC Mode 5.28 (ObjC); tags dont work
Karl Landström <kala9469@student.su.se> skrev:
> When i try to display tags for Objective-C sourse code with function
> `imenu' i get the error message
>
> wrong type argument: listp, 94
This is due to an initialization error in the Objective-C
imenu support. The patch below fixes it. Thank you.
(This bug also shows that noone before this has tested and bothered to
report imenu in Objective-C since CC Mode 5.26 was released almost
three years ago. I suspect that the Objective-C support has
substantial bitrot in other areas too. Anyway, the situation should
improve with the next release since I've now read up a bit on the
language.)
Index: cc-menus.el
===================================================================
RCS file: /cvsroot/cc-mode/cc-mode/cc-menus.el,v
retrieving revision 5.60
diff -u -r5.60 cc-menus.el
--- cc-menus.el 18 Feb 2001 18:19:21 -0000 5.60
+++ cc-menus.el 26 Oct 2002 14:31:18 -0000
@@ -405,8 +405,10 @@
; ())
; FIXME: Please contribute one!
-(defun cc-imenu-init (mode-generic-expression)
+(defun cc-imenu-init (mode-generic-expression
+ &optional mode-create-index-function)
(setq imenu-generic-expression mode-generic-expression
+ imenu-create-index-function mode-create-index-function
imenu-case-fold-search nil))
\f
Index: cc-mode.el
===================================================================
RCS file: /cvsroot/cc-mode/cc-mode/cc-mode.el,v
retrieving revision 5.126
diff -u -r5.126 cc-mode.el
--- cc-mode.el 25 Feb 2001 04:54:55 -0000 5.126
+++ cc-mode.el 26 Oct 2002 14:31:18 -0000
@@ -584,7 +584,7 @@
c-access-key c-ObjC-access-key
c-method-key c-ObjC-method-key
)
- (cc-imenu-init cc-imenu-objc-generic-expression)
+ (cc-imenu-init nil 'cc-imenu-objc-function)
(run-hooks 'c-mode-common-hook)
(run-hooks 'objc-mode-hook)
(c-update-modeline))
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-10-29 15:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-16 14:10 CC Mode 5.28 (ObjC); tags dont work Karl Landström
2002-10-29 15:20 ` Francesco Potorti`
2002-10-29 15:32 ` Martin Stjernholm
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).