From unknown Sat Jun 14 03:54:37 2025
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
Content-Type: text/plain; charset=utf-8
From: bug#28746 <28746@debbugs.gnu.org>
To: bug#28746 <28746@debbugs.gnu.org>
Subject: Status: 27.0.50; cc-mode should automatically detect Objective-C
headers
Reply-To: bug#28746 <28746@debbugs.gnu.org>
Date: Sat, 14 Jun 2025 10:54:37 +0000
retitle 28746 27.0.50; cc-mode should automatically detect Objective-C head=
ers
reassign 28746 emacs,cc-mode
submitter 28746 Philipp
severity 28746 wishlist
thanks
From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 08 10:15:58 2017
Received: (at submit) by debbugs.gnu.org; 8 Oct 2017 14:15:58 +0000
Received: from localhost ([127.0.0.1]:56484 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1e1CN2-00034c-Ug
for submit@debbugs.gnu.org; Sun, 08 Oct 2017 10:15:57 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50056)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1e1CN0-00034P-Rt
for submit@debbugs.gnu.org; Sun, 08 Oct 2017 10:15:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1e1CMu-0002aa-Hq
for submit@debbugs.gnu.org; Sun, 08 Oct 2017 10:15:49 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50,
FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled
version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:47734)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
(Exim 4.71) (envelope-from )
id 1e1CMu-0002aV-Eb
for submit@debbugs.gnu.org; Sun, 08 Oct 2017 10:15:48 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41010)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1e1CMt-0000VU-4M
for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2017 10:15:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1e1CMr-0002ZC-S1
for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2017 10:15:47 -0400
Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:49501)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1e1CMr-0002Yp-Kh
for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2017 10:15:45 -0400
Received: by mail-wm0-x22d.google.com with SMTP id b189so16475293wmd.4
for ; Sun, 08 Oct 2017 07:15:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=/8oiGi1n5yh+sFE5FVBIXWvstWqF7Te8gKcN9I2SN6A=;
b=iX4u28GcnInWyk8Gc5h0vl0c5JyucstgUiRiIqENHdeGDqQhr9prf9QemtpQXqcm0C
ENxDcSN92vUp2DJGPVitF5pNmDCK1OQmr3dcITTo369YByKFRlDwjc5tC+c7uESQxUvo
5LJwP+L5kPTtPtzfF2EsCYL/6tWt/8nrQafSzNy9oYndyzPyqzyntNkBbQIqRC9XovfA
Cf1cUU1pJmWFUSML9FXIoFeTBXP9kgNX4dKH64LpkDVTO/YwXG4jGAeLUzjPSkmYKBB5
aRIHYPINIZzlbdl73qfRPRKtzFWsKJIi7HxMjhTUEXYRXqY/O6e2fMmM2XvGO0aGC6n3
FApQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=/8oiGi1n5yh+sFE5FVBIXWvstWqF7Te8gKcN9I2SN6A=;
b=BJjyN8gfyo0TVB0esoBxePMzQA3iO44UpHEheP9oQoGlTpxCo77KHK372XZAcNHg93
FXQGe6L6GcW9SdeTDxke6mFgUYdEOWnW28+GsEa95W3ew/38f9n3vVQE4RarirWGIXW3
M/o10cWfibgMVUceDrpCkaRmNmLVwK7mc2GO1mr2EC1A4tuB5iGjGmZAVkOJ0fe7mMQA
FSuVg2U/JaccQOp2FR8ebfW3qZHaEmXtVu6bvve2cwouLi/0t4IVlRRRWEJarqoWIFWC
WAAiheYPBXpTNayGCdJzH81sppGx/6GzH8CpcrGX4gKALqcxiB8uhmEVMRB8m1x5P7H0
X7FA==
X-Gm-Message-State: AMCzsaUWJjJ341SdsZffGgez54BRL/Rkf4De4zreKOuNdu9Hi4YrsCsr
oSzPSDoCwrQBABmKksDriSDC5p8K
X-Google-Smtp-Source: AOwi7QBzPa8gRg58qdc6O9UiDQkMWeCFNWdZiNiEFLYBS2qrC26taVHdo1AkayHjwExAxsf9H/xVIQ==
X-Received: by 10.223.184.75 with SMTP id u11mr3310441wrf.13.1507472144011;
Sun, 08 Oct 2017 07:15:44 -0700 (PDT)
Received: from phst-glaptop ([2001:4c50:25f:3400:a5e1:9ec5:d75a:20aa])
by smtp.gmail.com with ESMTPSA id b190sm6660051wma.22.2017.10.08.07.15.42
for
(version=TLS1_2 cipher=AES128-SHA bits=128/128);
Sun, 08 Oct 2017 07:15:43 -0700 (PDT)
From: Philipp
To: bug-gnu-emacs@gnu.org
Subject: 27.0.50; cc-mode should automatically detect Objective-C headers
Date: Sun, 08 Oct 2017 16:15:41 +0200
Message-ID:
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.8 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -3.8 (---)
Visit a file with a file name extension of .h and the following
contents:
@interface foo {
}
- (void)method;
@end
The buffer will be in c-mode, not objc-mode. CC-Mode should
automatically detect that this is an Objective-C header and switch to
objc-mode. Probably searching for @interface or @implementation should
cover most cases.
In GNU Emacs 27.0.50 (build 10, x86_64-pc-linux-gnu, GTK+ Version 3.10.8)
of 2017-10-08 built on localhost
Repository revision: 9b3ce6252115980802adaa562af575bcd73a2c55
Windowing system distributor 'The X.Org Foundation', version 11.0.11803000
System Description: Ubuntu 14.04.5 LTS
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Configured using:
'configure --enable-gtk-deprecation-warnings --with-modules
--without-pop --with-mailutils --enable-checking
--enable-check-lisp-object-type --enable-gcc-warnings 'CFLAGS=3D-ggdb3
-O0''
Configured features:
XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY GNUTLS FREETYPE XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg
epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair time-date
mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote inotify dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)
Memory information:
((conses 16 94525 13775)
(symbols 48 20163 1)
(miscs 40 39 170)
(strings 32 28082 1740)
(string-bytes 1 728996)
(vectors 16 13949)
(vector-slots 8 488053 13844)
(floats 8 49 68)
(intervals 56 214 0)
(buffers 992 12)
(heap 1024 28679 1010))
--=20
Google Germany GmbH
Erika-Mann-Stra=C3=9Fe 33
80636 M=C3=BCnchen
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Gesch=C3=A4ftsf=C3=BChrer: Paul Manicle, Halimah DeLaine Prado
If you received this communication by mistake, please don=E2=80=99t forward=
it to
anyone else (it may contain confidential or privileged information), please
erase all copies of it, including all attachments, and please let the sender
know it went to the wrong person. Thanks.
From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 08 10:24:46 2017
Received: (at 28746) by debbugs.gnu.org; 8 Oct 2017 14:24:47 +0000
Received: from localhost ([127.0.0.1]:56489 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1e1CVa-0003IR-OR
for submit@debbugs.gnu.org; Sun, 08 Oct 2017 10:24:46 -0400
Received: from mail-oi0-f66.google.com ([209.85.218.66]:33943)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1e1CVY-0003IF-Qe
for 28746@debbugs.gnu.org; Sun, 08 Oct 2017 10:24:45 -0400
Received: by mail-oi0-f66.google.com with SMTP id h200so6429021oib.1
for <28746@debbugs.gnu.org>; Sun, 08 Oct 2017 07:24:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=e9GDhXs1lJFbKxenrb45kZJnXv/pe08xppTWTHAUAZY=;
b=EAKKNviZHm1rVF1nEFMlMvIM2lXliy1trx7Vy77zzXipm7uv2IkXoWIHaBFGPCM4Uo
woywP9AXmZ5tVOu50ky4es5/vEWYkqlKOocpT/EhQsvEmvluQNYJAPuM4IPRON81l8du
hhB9hgNPFP6cgA5dzfwNh/WygqOdmDff7dQNRCcA12oIns3DovMZrJ0E90kOXpvmWMb5
2eQdz1yzxA7qtYEV8UNHKeE83ETwBVa07qqX5wLcdGBy+fOQrt3OfJ5G5o0xAOl20dVj
V1XghpewhKezi8vJz+VxX9MzXcuCAmpMvPZQc7lRlLg1TcuS4cOqnCqx8yLD0bVC+ry9
MNgA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=e9GDhXs1lJFbKxenrb45kZJnXv/pe08xppTWTHAUAZY=;
b=f29nIIHC8Vyxplla8pt1whLdwiVghzeKBYJnJh+KLlh1rFJa0FkxLhbkPSu7NWQv27
V0goWdHot3MP8wErBkDhHWUvQ8LPzkvUh2tiuPcgnYfEQdDjOwRxzttOJloDkdvr/PTl
4VcUMud81cEduzwqqf+S2F9HojhEjrZjPzObWsrhy9hlJGwK75d/7A5MAQTHDhkbbj1D
FBaWc1thCXW/RunILCD232r60Hr8G0aJsSSsvYLkcDGtCwtI2+FvGeQ+O/YAimqRWKBh
f2Dw7S/JEtpsBEi3FVHUlIB174BoKre5QKX+vk6iqS1RK8YgakhkSBy8BtkUPwHSGVx9
3ncQ==
X-Gm-Message-State: AMCzsaUDCNSxJVraXRlfzgSHinHqfvTkh4Lj6YWKPG2/+remMfXGyklu
ZD4I9ur1A531B9PO35/YlrEr2WQwT5QY5QxG+uUvNQ==
X-Google-Smtp-Source: AOwi7QDgmijW7h/2FXGceq0oIbejzkZzUD6QQUMhyaHgYyyPEao6pNHrbRTvtWXN8zyVfaU9EecwFO15wPN9uQDx4wQ=
X-Received: by 10.157.66.167 with SMTP id r36mr4050095ote.335.1507472678798;
Sun, 08 Oct 2017 07:24:38 -0700 (PDT)
MIME-Version: 1.0
References:
In-Reply-To:
From: Philipp Stephani
Date: Sun, 08 Oct 2017 14:24:28 +0000
Message-ID:
Subject: Re: bug#28746: 27.0.50; cc-mode should automatically detect
Objective-C headers
To: 28746@debbugs.gnu.org
Content-Type: multipart/alternative; boundary="94eb2c1c1da4874a28055b09d5e3"
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 28746
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: 0.7 (/)
--94eb2c1c1da4874a28055b09d5e3
Content-Type: text/plain; charset="UTF-8"
Philipp schrieb am So., 8. Okt. 2017 um 16:16 Uhr:
>
> Visit a file with a file name extension of .h and the following
> contents:
>
> @interface foo {
> }
> - (void)method;
> @end
>
> The buffer will be in c-mode, not objc-mode. CC-Mode should
> automatically detect that this is an Objective-C header and switch to
> objc-mode. Probably searching for @interface or @implementation should
> cover most cases.
>
It seems like CC-Mode is already doing something similar with
`c-or-c++-mode'. Probably that functionality should be extended to cover
Objective-C (and Objective-C++?) as well.
--94eb2c1c1da4874a28055b09d5e3
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Visit a file with a file name extension of .h and the following
contents:
@interface foo {
}
- (void)method;
@end
The buffer will be in c-mode, not objc-mode.=C2=A0 CC-Mode should
automatically detect that this is an Objective-C header and switch to
objc-mode.=C2=A0 Probably searching for @interface or @implementation shoul=
d
cover most cases.
It seems like CC-Mode is already doing som=
ething similar with `c-or-c++-mode'. Probably that functionality should=
be extended to cover Objective-C (and Objective-C++?) as well.=C2=A0
=
--94eb2c1c1da4874a28055b09d5e3--
From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 04 12:30:59 2021
Received: (at 28746) by debbugs.gnu.org; 4 Feb 2021 17:30:59 +0000
Received: from localhost ([127.0.0.1]:42168 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1l7iT5-0002Sf-G9
for submit@debbugs.gnu.org; Thu, 04 Feb 2021 12:30:59 -0500
Received: from quimby.gnus.org ([95.216.78.240]:59724)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1l7iT4-0002ME-0x
for 28746@debbugs.gnu.org; Thu, 04 Feb 2021 12:30:58 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
List-Subscribe:List-Post:List-Owner:List-Archive;
bh=YNsFGlgsrCzQDQndU2pbR5KrXMx+2JlVCOImUoWFNBc=; b=O1I1YIzLXr0CtQMkesdQHPc3hu
EFAH0JzDWLUrdy04Nhhm7W4XjGV2XrJFuGBONH9MzrUiWQwRAZM8yOzctK+YP5+/m8m3MtTRuHNnf
g9f4fwAczOl/PFJJibJs1gxTDEdq6kMZZf3pMXRjXnSfXVHI6/ylmZKQXsUJpo8mWWD0=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.92) (envelope-from )
id 1l7iSv-0001GJ-AQ; Thu, 04 Feb 2021 18:30:51 +0100
From: Lars Ingebrigtsen
To: Philipp Stephani
Subject: Re: bug#28746: 27.0.50; cc-mode should automatically detect
Objective-C headers
References:
X-Now-Playing: House and Land's _Across the Field_: "Blacksmith"
Date: Thu, 04 Feb 2021 18:30:48 +0100
In-Reply-To:
(Philipp Stephani's message of "Sun, 08 Oct 2017 14:24:28 +0000")
Message-ID: <87zh0joi47.fsf@gnus.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
@@CONTACT_ADDRESS@@ for details.
Content preview: Philipp Stephani writes: > Philipp
schrieb am So., 8. Okt. 2017 um 16:16 Uhr: > > Visit
a file with a file name extension of .h and the following > contents: > >
@interface foo { > } > - (void)method; [...]
Content analysis details: (-2.9 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 28746
Cc: 28746@debbugs.gnu.org, Alan Mackenzie
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
Philipp Stephani writes:
> Philipp schrieb am So., 8. Okt. 2017 um 16:16 Uhr:
>
> Visit a file with a file name extension of .h and the following
> contents:
>
> @interface foo {
> }
> - (void)method;
> @end
>
> The buffer will be in c-mode, not objc-mode.
This is still the case in Emacs 28, as far as I can tell.
> CC-Mode should automatically detect that this is an Objective-C
> header and switch to objc-mode. Probably searching for @interface or
> @implementation should cover most cases.
>
> It seems like CC-Mode is already doing something similar with `c-or-c++-mode'.
> Probably that functionality should be extended to cover Objective-C (and
> Objective-C++?) as well.
Sounds reasonable to me. I've added Alan to the CCs.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no