GNU bug report logs - #2732
23.0.91; Please add support for Objective-C++

Previous Next

Packages: emacs, cc-mode;

Reported by: Yavor Doganov <yavor <at> gnu.org>

Date: Fri, 20 Mar 2009 20:45:04 UTC

Severity: wishlist

Merged with 29339

Found in version 27.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2732 in the body.
You can then email your comments to 2732 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com:
bug#2732; Package emacs,cc-mode. (Fri, 20 Mar 2009 20:45:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Yavor Doganov <yavor <at> gnu.org>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com. (Fri, 20 Mar 2009 20:45:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Yavor Doganov <yavor <at> gnu.org>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.91; Please add support for Objective-C++
Date: Fri, 20 Mar 2009 22:09:03 +0200
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/




Forcibly Merged 2732 29339. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 17 Nov 2017 19:07:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#2732; Package emacs,cc-mode. (Thu, 03 Jun 2021 10:08:01 GMT) Full text and rfc822 format available.

Message #10 received at 2732 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Alan Mackenzie <acm <at> muc.de>, Philipp Stephani <p.stephani2 <at> gmail.com>,
 2732 <at> debbugs.gnu.org, 29339 <at> debbugs.gnu.org
Subject: Re: bug#2732: 23.0.91; Please add support for Objective-C++
Date: Thu, 03 Jun 2021 12:07:18 +0200
Glenn Morris <rgm <at> 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




bug closed, send any further explanations to 2732 <at> debbugs.gnu.org and Yavor Doganov <yavor <at> gnu.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 03 Jun 2021 10:08:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#2732; Package emacs,cc-mode. (Thu, 03 Jun 2021 12:09:02 GMT) Full text and rfc822 format available.

Message #15 received at 2732 <at> debbugs.gnu.org (full text, mbox):

From: Philipp <p.stephani2 <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 2732 <at> debbugs.gnu.org, 29339 <at> debbugs.gnu.org,
 Alan Mackenzie <acm <at> muc.de>
Subject: Re: bug#2732: 23.0.91; Please add support for Objective-C++
Date: Thu, 3 Jun 2021 14:08:14 +0200

> 
> (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?




Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#2732; Package emacs,cc-mode. (Thu, 03 Jun 2021 12:41:02 GMT) Full text and rfc822 format available.

Message #18 received at 2732 <at> debbugs.gnu.org (full text, mbox):

From: Alan Mackenzie <acm <at> muc.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Glenn Morris <rgm <at> gnu.org>, Philipp Stephani <p.stephani2 <at> gmail.com>,
 2732 <at> debbugs.gnu.org, 29339 <at> debbugs.gnu.org
Subject: Re: bug#2732: 23.0.91; Please add support for Objective-C++
Date: Thu, 3 Jun 2021 12:39:50 +0000
Hello, Lars.

On Thu, Jun 03, 2021 at 12:07:18 +0200, Lars Ingebrigtsen wrote:
> Glenn Morris <rgm <at> 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).




Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#2732; Package emacs,cc-mode. (Thu, 03 Jun 2021 12:43:02 GMT) Full text and rfc822 format available.

Message #21 received at 2732 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Philipp <p.stephani2 <at> gmail.com>
Cc: Glenn Morris <rgm <at> gnu.org>, 2732 <at> debbugs.gnu.org, 29339 <at> debbugs.gnu.org,
 Alan Mackenzie <acm <at> muc.de>
Subject: Re: bug#2732: 23.0.91; Please add support for Objective-C++
Date: Thu, 03 Jun 2021 14:42:18 +0200
Philipp <p.stephani2 <at> 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




Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#2732; Package emacs,cc-mode. (Thu, 03 Jun 2021 12:46:01 GMT) Full text and rfc822 format available.

Message #24 received at 2732 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Philipp <p.stephani2 <at> gmail.com>
Cc: Glenn Morris <rgm <at> gnu.org>, 2732 <at> debbugs.gnu.org, 29339 <at> debbugs.gnu.org,
 Alan Mackenzie <acm <at> muc.de>
Subject: Re: bug#2732: 23.0.91; Please add support for Objective-C++
Date: Thu, 03 Jun 2021 14:45:08 +0200
Lars Ingebrigtsen <larsi <at> 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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 02 Jul 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 152 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.