diff options
| author | Jan Djärv | 2012-07-14 11:08:36 +0200 |
|---|---|---|
| committer | Jan Djärv | 2012-07-14 11:08:36 +0200 |
| commit | 044080727ca76118afbd1cc35f85dbef7582030e (patch) | |
| tree | 146731641cedca141060a963be5293d6a0da756a | |
| parent | b5cf7fc45c625b312ab88fb3fa13eef2f25acbce (diff) | |
| download | emacs-044080727ca76118afbd1cc35f85dbef7582030e.tar.gz emacs-044080727ca76118afbd1cc35f85dbef7582030e.zip | |
*** empty log message ***
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/cc-cmds.el | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 15ed6d89943..2915af65d15 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-07-14 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * progmodes/cc-cmds.el (c-defun-name): Recognize Objective-C methods | ||
| 4 | also (Bug#7879). | ||
| 5 | |||
| 1 | 2012-07-14 Chong Yidong <cyd@gnu.org> | 6 | 2012-07-14 Chong Yidong <cyd@gnu.org> |
| 2 | 7 | ||
| 3 | * electric.el (electric-pair-post-self-insert-function): Fix pair | 8 | * electric.el (electric-pair-post-self-insert-function): Fix pair |
diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index 4a3577bb29b..94b296bf59e 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el | |||
| @@ -1826,6 +1826,15 @@ with a brace block." | |||
| 1826 | ;; DEFFLAGSET(syslog_opt_flags,LOG_PID ...) ==> syslog_opt_flags | 1826 | ;; DEFFLAGSET(syslog_opt_flags,LOG_PID ...) ==> syslog_opt_flags |
| 1827 | (match-string-no-properties 1)) | 1827 | (match-string-no-properties 1)) |
| 1828 | 1828 | ||
| 1829 | ;; Objective-C method starting with + or -. | ||
| 1830 | ((and (derived-mode-p 'objc-mode) | ||
| 1831 | (looking-at "[-+]\s*(")) | ||
| 1832 | (when (c-syntactic-re-search-forward ")\s*" nil t) | ||
| 1833 | (c-forward-token-2) | ||
| 1834 | (setq name-end (point)) | ||
| 1835 | (c-backward-token-2) | ||
| 1836 | (buffer-substring-no-properties (point) name-end))) | ||
| 1837 | |||
| 1829 | (t | 1838 | (t |
| 1830 | ;; Normal function or initializer. | 1839 | ;; Normal function or initializer. |
| 1831 | (when (c-syntactic-re-search-forward "[{(]" nil t) | 1840 | (when (c-syntactic-re-search-forward "[{(]" nil t) |