emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-27 d7cd4ab7: Objective C Mode: Make c-forward-type work with "unsi


From: Alan Mackenzie
Subject: emacs-27 d7cd4ab7: Objective C Mode: Make c-forward-type work with "unsigned long", etc.
Date: Sun, 26 Jan 2020 08:04:27 -0500 (EST)

branch: emacs-27
commit d7cd4ab7d948427104003f1d35cf52a4eac45d0a
Author: Alan Mackenzie <address@hidden>
Commit: Alan Mackenzie <address@hidden>

    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.
---
 lisp/progmodes/cc-langs.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el
index b50e7e7..715af32 100644
--- a/lisp/progmodes/cc-langs.el
+++ b/lisp/progmodes/cc-langs.el
@@ -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."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]