From: Philipp Stephani <p.stephani2@gmail.com>
To: 28746@debbugs.gnu.org
Subject: bug#28746: 27.0.50; cc-mode should automatically detect Objective-C headers
Date: Sun, 08 Oct 2017 14:24:28 +0000 [thread overview]
Message-ID: <CAArVCkSP-LGRogRmJea5tqLxy+ta5JWgMRv4DHqSONDxihFRQw@mail.gmail.com> (raw)
In-Reply-To: <wvr4mv51n2sy.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 617 bytes --]
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. 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.
[-- Attachment #2: Type: text/html, Size: 939 bytes --]
next prev parent reply other threads:[~2017-10-08 14:24 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 [this message]
2021-02-04 17:30 ` Lars Ingebrigtsen
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=CAArVCkSP-LGRogRmJea5tqLxy+ta5JWgMRv4DHqSONDxihFRQw@mail.gmail.com \
--to=p.stephani2@gmail.com \
--cc=28746@debbugs.gnu.org \
/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.