Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9a0f8f2e
Commit
9a0f8f2e
authored
Jul 26, 2012
by
Leo Liu
Browse files
Avoid leaving nil in the alist in cc-imenu-objc-function
Fixes: debbugs:12029
parent
971635ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/progmodes/cc-menus.el
lisp/progmodes/cc-menus.el
+2
-6
No files found.
lisp/ChangeLog
View file @
9a0f8f2e
2012-07-25 Leo Liu <sdl.web@gmail.com>
* progmodes/cc-menus.el (cc-imenu-objc-function): Avoid leaving nil in
the alist (bug#12029).
2012-07-25 Chong Yidong <cyd@gnu.org>
* mouse.el (mouse-drag-track): Do not set the mark if the user
...
...
lisp/progmodes/cc-menus.el
View file @
9a0f8f2e
...
...
@@ -399,14 +399,10 @@ Example:
str2
"@protocol"
)))
(
setq
str
(
cc-imenu-objc-remove-white-space
str
))
(
setq
methodlist
(
cons
(
cons
str2
(
match-beginning
langnum
))
(
match-beginning
langnum
))
methodlist
))
(
setq
toplist
(
cons
nil
(
cons
(
cons
str
methodlist
)
toplist
))
(
setq
toplist
(
cons
(
cons
str
methodlist
)
toplist
)
methodlist
nil
))))
;;
(
if
(
eq
(
car
toplist
)
nil
)
(
setq
toplist
(
cdr
toplist
)))
;; In this buffer, there is only one or zero @{interface|implementation|protocol}.
(
if
(
<
classcount
2
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment