From: Lars Ingebrigtsen <larsi@gnus.org>
To: Philipp Stephani <p.stephani2@gmail.com>
Cc: 28746@debbugs.gnu.org, Alan Mackenzie <acm@muc.de>
Subject: bug#28746: 27.0.50; cc-mode should automatically detect Objective-C headers
Date: Thu, 04 Feb 2021 18:30:48 +0100 [thread overview]
Message-ID: <87zh0joi47.fsf@gnus.org> (raw)
In-Reply-To: <CAArVCkSP-LGRogRmJea5tqLxy+ta5JWgMRv4DHqSONDxihFRQw@mail.gmail.com> (Philipp Stephani's message of "Sun, 08 Oct 2017 14:24:28 +0000")
Philipp Stephani <p.stephani2@gmail.com> writes:
> Philipp <p.stephani2@gmail.com> 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
prev parent reply other threads:[~2021-02-04 17:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-08 14:15 bug#28746: 27.0.50; cc-mode should automatically detect Objective-C headers Philipp
2017-10-08 14:24 ` Philipp Stephani
2021-02-04 17:30 ` Lars Ingebrigtsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zh0joi47.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=28746@debbugs.gnu.org \
--cc=acm@muc.de \
--cc=p.stephani2@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.