aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mackenzie2020-01-26 13:01:58 +0000
committerAlan Mackenzie2020-01-26 13:01:58 +0000
commitd7cd4ab7d948427104003f1d35cf52a4eac45d0a (patch)
tree044f69f4747aaf37d0715cd2b67e28b64968a8d1
parent1705e32ebc43addb3a1f0ca9e4e490484b7d1fcd (diff)
downloademacs-d7cd4ab7d948427104003f1d35cf52a4eac45d0a.tar.gz
emacs-d7cd4ab7d948427104003f1d35cf52a4eac45d0a.zip
Objective C Mode: Make c-forward-type work with "unsigned long", etc.
This allows the correct fontification of and correct functioning of C-c C-z (c-display-defun-name) in ns_get_pixel in Emacs's src/nsimage.m. * lisp/progmodes/cc-langs.el (c-primitive-type-prefix-kwds): For objc, use the same value as for c and c++ rather than the default nil.
-rw-r--r--lisp/progmodes/cc-langs.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el
index b50e7e7f098..715af32d7ea 100644
--- a/lisp/progmodes/cc-langs.el
+++ b/lisp/progmodes/cc-langs.el
@@ -2055,11 +2055,10 @@ the appropriate place for that."
2055 "Keywords that might act as prefixes for primitive types. Assumed to 2055 "Keywords that might act as prefixes for primitive types. Assumed to
2056be a subset of `c-primitive-type-kwds'." 2056be a subset of `c-primitive-type-kwds'."
2057 t nil 2057 t nil
2058 (c c++) '("long" "short" "signed" "unsigned") 2058 (c c++ objc) '("long" "short" "signed" "unsigned")
2059 idl '("long" "unsigned" 2059 idl '("long" "unsigned"
2060 ;; In CORBA PSDL: 2060 ;; In CORBA PSDL:
2061 "strong")) 2061 "strong"))
2062
2063(c-lang-defconst c-typedef-kwds 2062(c-lang-defconst c-typedef-kwds
2064 "Prefix keyword(s) like \"typedef\" which make a type declaration out 2063 "Prefix keyword(s) like \"typedef\" which make a type declaration out
2065of a variable declaration." 2064of a variable declaration."