]> git.eshelyaron.com Git - emacs.git/commitdiff
Objective C Mode: Make c-forward-type work with "unsigned long", etc.
authorAlan Mackenzie <acm@muc.de>
Sun, 26 Jan 2020 13:01:58 +0000 (13:01 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 26 Jan 2020 13:01:58 +0000 (13:01 +0000)
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.

lisp/progmodes/cc-langs.el

index b50e7e7f0982ddf69b9d52ea3e88a467338e3c89..715af32d7ead700cf9882a0b393346d93f6482a3 100644 (file)
@@ -2055,11 +2055,10 @@ the appropriate place for that."
   "Keywords that might act as prefixes for primitive types.  Assumed to
 be a subset of `c-primitive-type-kwds'."
   t       nil
-  (c c++) '("long" "short" "signed" "unsigned")
-  idl     '("long" "unsigned"
+  (c c++ objc) '("long" "short" "signed" "unsigned")
+  idl    '("long" "unsigned"
            ;; In CORBA PSDL:
            "strong"))
-
 (c-lang-defconst c-typedef-kwds
   "Prefix keyword(s) like \"typedef\" which make a type declaration out
 of a variable declaration."