unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#2732: 23.0.91; Please add support for Objective-C++
@ 2009-03-20 20:09 Yavor Doganov
  0 siblings, 0 replies; 4+ messages in thread
From: Yavor Doganov @ 2009-03-20 20:09 UTC (permalink / raw)
  To: emacs-pretest-bug

Package: emacs,cc-mode
Severity: wishlist

I had to edit some ObjC++ files today in my pathetic attempt to port
Dasher [1] to GNUstep.  Emacs opens .mm files in nroff-mode, and
manually switching to c++-mode or objc-mode does not give satisfactory
results.

Objective-C++ is supported by GCC and GNUstep Make, and although there
are currently no free programs written in this language (TTBOMK, apart
from the various free software ported to Mac OS X; but it's unusable
for other reasons), this is likely to change in the near future.

I realize this is Emacs 24 or 25 material; there is no problem about
that.

In GNU Emacs 23.0.91.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9)
 of 2009-03-18 on gana, modified for gNewSense
 (Unofficial gNewSense emacs-snapshot package, version 1:20090318-gns1)
Windowing system distributor `The X.Org Foundation', version 11.0.10400090

[1] http://www.inference.phy.cam.ac.uk/dasher/






^ permalink raw reply	[flat|nested] 4+ 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; 4+ 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] 4+ 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; 4+ 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] 4+ 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; 4+ 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] 4+ messages in thread

end of thread, other threads:[~2021-06-03 12:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-20 20:09 bug#2732: 23.0.91; Please add support for Objective-C++ Yavor Doganov
     [not found] <mailman.3878.1510925890.27995.bug-gnu-emacs@gnu.org>
2017-11-17 19:00 ` bug#29339: 27.0.50; CC-mode doesn't know about .mm and .M suffixes " 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: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).