Commit 04408072 authored by Jan Djärv's avatar Jan Djärv
Browse files

*** empty log message ***

parent b5cf7fc4
2012-07-14 Jan Djärv <jan.h.d@swipnet.se>
* progmodes/cc-cmds.el (c-defun-name): Recognize Objective-C methods
also (Bug#7879).
2012-07-14 Chong Yidong <cyd@gnu.org>
 
* electric.el (electric-pair-post-self-insert-function): Fix pair
......
......@@ -1826,6 +1826,15 @@ with a brace block."
;; DEFFLAGSET(syslog_opt_flags,LOG_PID ...) ==> syslog_opt_flags
(match-string-no-properties 1))
;; Objective-C method starting with + or -.
((and (derived-mode-p 'objc-mode)
(looking-at "[-+]\s*("))
(when (c-syntactic-re-search-forward ")\s*" nil t)
(c-forward-token-2)
(setq name-end (point))
(c-backward-token-2)
(buffer-substring-no-properties (point) name-end)))
(t
;; Normal function or initializer.
(when (c-syntactic-re-search-forward "[{(]" nil t)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment