* bug#29339: 27.0.50; CC-mode doesn't know about .mm and .M suffixes for Objective-C++
@ 2017-11-17 13:36 Philipp
[not found] ` <mailman.3878.1510925890.27995.bug-gnu-emacs@gnu.org>
0 siblings, 1 reply; 10+ messages in thread
From: Philipp @ 2017-11-17 13:36 UTC (permalink / raw)
To: 29339
GCC uses .mm or .M for Objective-C++,
cf. https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/Overall-Options.html.
However, neither `auto-mode-alist' nor `cc-other-file-alist' contain
these file extensions.
In GNU Emacs 27.0.50 (build 17, x86_64-pc-linux-gnu, GTK+ Version 3.10.8)
of 2017-11-17 built on localhost
Repository revision: 345c7d9c7b84c0c03ef1d0f32e9e0f39029be44a
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=-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 94754 12856)
(symbols 48 20187 1)
(miscs 40 45 145)
(strings 32 28237 1585)
(string-bytes 1 737043)
(vectors 16 14050)
(vector-slots 8 498529 13298)
(floats 8 53 64)
(intervals 56 214 0)
(buffers 992 12)
(heap 1024 24710 963))
--
Google Germany GmbH
Erika-Mann-Straße 33
80636 München
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Paul Manicle, Halimah DeLaine Prado
If you received this communication by mistake, please don’t 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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#29339: 27.0.50; CC-mode doesn't know about .mm and .M suffixes for Objective-C++
[not found] ` <mailman.3878.1510925890.27995.bug-gnu-emacs@gnu.org>
@ 2017-11-17 19:00 ` Alan Mackenzie
2017-12-21 19:22 ` Philipp Stephani
0 siblings, 1 reply; 10+ messages in thread
From: Alan Mackenzie @ 2017-11-17 19:00 UTC (permalink / raw)
To: Philipp; +Cc: 29339
In article <mailman.3878.1510925890.27995.bug-gnu-emacs@gnu.org> you wrote:
> GCC uses .mm or .M for Objective-C++,
> cf. https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/Overall-Options.html.
> However, neither `auto-mode-alist' nor `cc-other-file-alist' contain
> these file extensions.
I don't think there's an Objective-C++ mode out there in the wild. So
what existing mode should be used for *.mm and *.M? Is that mode a good
enough fit to be able, in good conscience, to use it for Obj-C++?
> In GNU Emacs 27.0.50 (build 17, x86_64-pc-linux-gnu, GTK+ Version 3.10.8)
> of 2017-11-17 built on localhost
> Repository revision: 345c7d9c7b84c0c03ef1d0f32e9e0f39029be44a
> Windowing system distributor 'The X.Org Foundation', version 11.0.11803000
> System Description: Ubuntu 14.04.5 LTS
[ .... ]
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#29339: 27.0.50; CC-mode doesn't know about .mm and .M suffixes for Objective-C++
2017-11-17 19:00 ` Alan Mackenzie
@ 2017-12-21 19:22 ` Philipp Stephani
2017-12-22 12:56 ` Alan Mackenzie
0 siblings, 1 reply; 10+ messages in thread
From: Philipp Stephani @ 2017-12-21 19:22 UTC (permalink / raw)
To: Alan Mackenzie; +Cc: 29339
[-- Attachment #1: Type: text/plain, Size: 741 bytes --]
Alan Mackenzie <acm@muc.de> schrieb am Fr., 17. Nov. 2017 um 20:00 Uhr:
> In article <mailman.3878.1510925890.27995.bug-gnu-emacs@gnu.org> you
> wrote:
>
> > GCC uses .mm or .M for Objective-C++,
> > cf. https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/Overall-Options.html.
> > However, neither `auto-mode-alist' nor `cc-other-file-alist' contain
> > these file extensions.
>
> I don't think there's an Objective-C++ mode out there in the wild. So
> what existing mode should be used for *.mm and *.M? Is that mode a good
> enough fit to be able, in good conscience, to use it for Obj-C++?
>
According to https://www.emacswiki.org/emacs/ObjectiveCMode#toc2 objc-mode
is the most appropriate mode for now, until a true objc++-mode is added.
[-- Attachment #2: Type: text/html, Size: 1336 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#29339: 27.0.50; CC-mode doesn't know about .mm and .M suffixes for Objective-C++
2017-12-21 19:22 ` Philipp Stephani
@ 2017-12-22 12:56 ` Alan Mackenzie
2017-12-22 16:50 ` Glenn Morris
0 siblings, 1 reply; 10+ messages in thread
From: Alan Mackenzie @ 2017-12-22 12:56 UTC (permalink / raw)
To: Philipp Stephani; +Cc: 29339
Hello, Philipp.
On Thu, Dec 21, 2017 at 19:22:05 +0000, Philipp Stephani wrote:
> Alan Mackenzie <acm@muc.de> schrieb am Fr., 17. Nov. 2017 um 20:00 Uhr:
> > In article <mailman.3878.1510925890.27995.bug-gnu-emacs@gnu.org> you
> > wrote:
> > > GCC uses .mm or .M for Objective-C++,
> > > cf. https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/Overall-Options.html.
> > > However, neither `auto-mode-alist' nor `cc-other-file-alist' contain
> > > these file extensions.
> > I don't think there's an Objective-C++ mode out there in the wild. So
> > what existing mode should be used for *.mm and *.M? Is that mode a good
> > enough fit to be able, in good conscience, to use it for Obj-C++?
> According to https://www.emacswiki.org/emacs/ObjectiveCMode#toc2 objc-mode
> is the most appropriate mode for now, until a true objc++-mode is added.
That only answers the first question, not the second. If we put .M and
.mm into CC Mode or auto-mode-alist in Emacs, that implies some sort of
commitment to support the language (Objective-C++). If Objective-C Mode
already almost supports it properly, that is one thing, but if the match
is less good, it could involve a lot of work.
From what I can gather, Objective-C++ is a bit of a mixture between
Objective-C and C++, much as its name implies. Do these individual
facets fit together (from a CC Mode point of view) without clashing too
much? According to Wikipedia, the language is not formerly defined in
any standard. What, then, is the language?
Do you know of anybody working on an Objective-C++ Mode?
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#29339: 27.0.50; CC-mode doesn't know about .mm and .M suffixes for Objective-C++
2017-12-22 12:56 ` Alan Mackenzie
@ 2017-12-22 16:50 ` Glenn Morris
2021-06-03 10:07 ` bug#2732: 23.0.91; Please add support " Lars Ingebrigtsen
0 siblings, 1 reply; 10+ messages in thread
From: Glenn Morris @ 2017-12-22 16:50 UTC (permalink / raw)
To: Alan Mackenzie; +Cc: Philipp Stephani, 29339
Alan Mackenzie wrote:
> That only answers the first question, not the second. If we put .M and
> .mm into CC Mode or auto-mode-alist in Emacs, that implies some sort of
> commitment to support the language (Objective-C++). If Objective-C Mode
> already almost supports it properly, that is one thing, but if the match
> is less good, it could involve a lot of work.
8 years ago, the comment was "switching to c++-mode or objc-mode does
not give satisfactory results". I don't know if anything has changed
since. Ref: https://debbugs.gnu.org/2732
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#2732: 23.0.91; Please add support for Objective-C++
2017-12-22 16:50 ` Glenn Morris
@ 2021-06-03 10:07 ` Lars Ingebrigtsen
2021-06-03 12:08 ` Philipp
2021-06-03 12:39 ` Alan Mackenzie
0 siblings, 2 replies; 10+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-03 10:07 UTC (permalink / raw)
To: Glenn Morris; +Cc: Alan Mackenzie, Philipp Stephani, 2732, 29339
Glenn Morris <rgm@gnu.org> writes:
>> That only answers the first question, not the second. If we put .M and
>> .mm into CC Mode or auto-mode-alist in Emacs, that implies some sort of
>> commitment to support the language (Objective-C++). If Objective-C Mode
>> already almost supports it properly, that is one thing, but if the match
>> is less good, it could involve a lot of work.
>
> 8 years ago, the comment was "switching to c++-mode or objc-mode does
> not give satisfactory results". I don't know if anything has changed
> since. Ref: https://debbugs.gnu.org/2732
So it doesn't seem like just mapping .mm to objc-mode would give
satisfactory results, and I'm closing this bug report.
(If somebody wants to add a real mode for Objective-C++, that can, of
course, be done.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#2732: 23.0.91; Please add support for Objective-C++
2021-06-03 10:07 ` bug#2732: 23.0.91; Please add support " Lars Ingebrigtsen
@ 2021-06-03 12:08 ` Philipp
2021-06-03 12:42 ` bug#29339: " Lars Ingebrigtsen
2021-06-03 12:39 ` Alan Mackenzie
1 sibling, 1 reply; 10+ messages in thread
From: Philipp @ 2021-06-03 12:08 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: Glenn Morris, 2732, 29339, Alan Mackenzie
>
> (If somebody wants to add a real mode for Objective-C++, that can, of
> course, be done.)
Then why close this bug, which tracks exactly this feature request?
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#2732: 23.0.91; Please add support for Objective-C++
2021-06-03 10:07 ` bug#2732: 23.0.91; Please add support " Lars Ingebrigtsen
2021-06-03 12:08 ` Philipp
@ 2021-06-03 12:39 ` Alan Mackenzie
1 sibling, 0 replies; 10+ messages in thread
From: Alan Mackenzie @ 2021-06-03 12:39 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: Glenn Morris, Philipp Stephani, 2732, 29339
Hello, Lars.
On Thu, Jun 03, 2021 at 12:07:18 +0200, Lars Ingebrigtsen wrote:
> Glenn Morris <rgm@gnu.org> writes:
> >> That only answers the first question, not the second. If we put .M and
> >> .mm into CC Mode or auto-mode-alist in Emacs, that implies some sort of
> >> commitment to support the language (Objective-C++). If Objective-C Mode
> >> already almost supports it properly, that is one thing, but if the match
> >> is less good, it could involve a lot of work.
> > 8 years ago, the comment was "switching to c++-mode or objc-mode does
> > not give satisfactory results". I don't know if anything has changed
> > since. Ref: https://debbugs.gnu.org/2732
> So it doesn't seem like just mapping .mm to objc-mode would give
> satisfactory results, and I'm closing this bug report.
> (If somebody wants to add a real mode for Objective-C++, that can, of
> course, be done.)
Personally, I don't want to spend the time (and the learning effort)
coding up an Objective-C++ Mode. If anybody else wanted to do this
(most likely as a CC Mode derived mode), which might not be very much
work, I would be prepared to answer questions, and deliver support as
usual.
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#29339: bug#2732: 23.0.91; Please add support for Objective-C++
2021-06-03 12:08 ` Philipp
@ 2021-06-03 12:42 ` Lars Ingebrigtsen
2021-06-03 12:45 ` Lars Ingebrigtsen
0 siblings, 1 reply; 10+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-03 12:42 UTC (permalink / raw)
To: Philipp; +Cc: Glenn Morris, 2732, 29339, Alan Mackenzie
Philipp <p.stephani2@gmail.com> writes:
>> (If somebody wants to add a real mode for Objective-C++, that can, of
>> course, be done.)
>
> Then why close this bug, which tracks exactly this feature request?
Because this request was about mapping .mm to objc-mode, which wouldn't
be appropriate, and a general request "can somebody write a brand new
mode for obscure language foo?" has little value in the bug tracker --
those types of requests seldom lead to anybody writing such a mode.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#29339: bug#2732: 23.0.91; Please add support for Objective-C++
2021-06-03 12:42 ` bug#29339: " Lars Ingebrigtsen
@ 2021-06-03 12:45 ` Lars Ingebrigtsen
0 siblings, 0 replies; 10+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-03 12:45 UTC (permalink / raw)
To: Philipp; +Cc: Glenn Morris, 2732, 29339, Alan Mackenzie
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Because this request was about mapping .mm to objc-mode, which wouldn't
> be appropriate, and a general request "can somebody write a brand new
> mode for obscure language foo?" has little value in the bug tracker --
> those types of requests seldom lead to anybody writing such a mode.
^open
(The issue is still, of course, in the issue tracker, and anybody who
wishes to can refer to it if they should wish to write this new mode.
But it's not productive for the people doing triage of the open issues to
keep staring at the issue, year after year.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2021-06-03 12:45 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-17 13:36 bug#29339: 27.0.50; CC-mode doesn't know about .mm and .M suffixes for Objective-C++ Philipp
[not found] ` <mailman.3878.1510925890.27995.bug-gnu-emacs@gnu.org>
2017-11-17 19:00 ` Alan Mackenzie
2017-12-21 19:22 ` Philipp Stephani
2017-12-22 12:56 ` Alan Mackenzie
2017-12-22 16:50 ` Glenn Morris
2021-06-03 10:07 ` bug#2732: 23.0.91; Please add support " Lars Ingebrigtsen
2021-06-03 12:08 ` Philipp
2021-06-03 12:42 ` bug#29339: " Lars Ingebrigtsen
2021-06-03 12:45 ` Lars Ingebrigtsen
2021-06-03 12:39 ` Alan Mackenzie
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).