unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15784: 24.3.50; cc-mode bug reporting
@ 2013-11-01 16:01 Michael Welsh Duggan
  2013-11-03 21:54 ` Alan Mackenzie
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Welsh Duggan @ 2013-11-01 16:01 UTC (permalink / raw)
  To: 15784; +Cc: Alan Mackenzie

I reported a bug a while back (I think) from my mwd@cert.org address
that deals with C++11 enumeration class indentation.  I reported it via
c-submit-bug-report.

Example of bad behavior:

enum class foo : int {
    A,
        B,
        C
        };

This message is only partially about this problem, though.  My real
question is whether `M-x c-submit-bug-report' is still a valid way to
report bugs for cc-mode.  It sends to bug-cc-mode@gnu.org.  It might
make sense to change this to send to the gnu debbugs list instead, with
an appropriate cc-mode tag.


In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, X toolkit)
 of 2013-09-11 on maru2
Bzr revision: 111214 md5i@md5i.com-20130911160422-ijaro6wn80j0j7ff
Windowing system distributor `The X.Org Foundation', version 11.0.11403000
System Description:	Debian GNU/Linux unstable (sid)

Configured using:
 `configure --without-toolkit-scroll-bars --with-x-toolkit=lucid
 'CFLAGS=-Og -ggdb' --with-wide-int'

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Recent messages:
You can run the command `c-submit-bug-report' with C-c C-b
Please enter your report.  Type C-c C-c to send, C-c C-k to abort.
Mark set
Auto-saving...done
Scanning for dabbrevs...done
Expansion found in ' *Minibuf-1*'
Don't touch it!  It's the History Eraser Button, you fool! [2 times]
syntax: ((topmost-intro-cont 23)), indent: 8
Undo!
Auto-saving...done

-- 
Michael Welsh Duggan
(md5i@md5i.com)





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#15784: 24.3.50; cc-mode bug reporting
  2013-11-01 16:01 bug#15784: 24.3.50; cc-mode bug reporting Michael Welsh Duggan
@ 2013-11-03 21:54 ` Alan Mackenzie
  2013-11-04  0:31   ` Glenn Morris
  0 siblings, 1 reply; 9+ messages in thread
From: Alan Mackenzie @ 2013-11-03 21:54 UTC (permalink / raw)
  To: Michael Welsh Duggan; +Cc: 15784

Hi, Michael.

On Fri, Nov 01, 2013 at 12:01:12PM -0400, Michael Welsh Duggan wrote:
> I reported a bug a while back (I think) from my mwd@cert.org address
> that deals with C++11 enumeration class indentation.  I reported it via
> c-submit-bug-report.

> Example of bad behavior:

> enum class foo : int {
>     A,
>         B,
>         C
>         };

Sorry, I should have acknwledged that some while ago.  It's going to be a
tricky one to tackle, since it overturns the notion of a type being just
a type.

> This message is only partially about this problem, though.  My real
> question is whether `M-x c-submit-bug-report' is still a valid way to
> report bugs for cc-mode.

Yes, it is.

> It sends to bug-cc-mode@gnu.org.  It might make sense to change this to
> send to the gnu debbugs list instead, with an appropriate cc-mode tag.

Right at the moment, I don't think this would be a good idea.  CC Mode is
also upstream from XEmacs, and bug reports come from that quarter, too.
It is convenient to be able to filter a mailbox for mails addressed to
*cc-mode*.  Mail to bug-gnu-emacs is much easier to lose in the sheer
volume of postings.

[ .... ]

> -- 
> Michael Welsh Duggan
> (md5i@md5i.com)

-- 
Alan Mackenzie (Nuremberg, Germany).





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#15784: 24.3.50; cc-mode bug reporting
  2013-11-03 21:54 ` Alan Mackenzie
@ 2013-11-04  0:31   ` Glenn Morris
  2013-11-06 20:28     ` Alan Mackenzie
  0 siblings, 1 reply; 9+ messages in thread
From: Glenn Morris @ 2013-11-04  0:31 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: Michael Welsh Duggan, 15784

Alan Mackenzie wrote:

>> It sends to bug-cc-mode@gnu.org.  It might make sense to change this to
>> send to the gnu debbugs list instead, with an appropriate cc-mode tag.
>
> Right at the moment, I don't think this would be a good idea.  CC Mode is
> also upstream from XEmacs, and bug reports come from that quarter, too.
> It is convenient to be able to filter a mailbox for mails addressed to
> *cc-mode*.  Mail to bug-gnu-emacs is much easier to lose in the sheer
> volume of postings.

I think you may have misunderstood the suggestion.
If you change c-submit-bug-report to send mail to
submit@debbugs.gnu.org, with an "X-Debbugs-Package: cc-mode" header,
then all those reports will still end up on the bug-cc-mode list, not
the bug-gnu-emacs list (ie, submit@debbugs will act like an alias for
bug-cc-mode). But they will get entered into the tracker and get bug
numbers. So this change would actually make it _less_ easier to lose
cc-mode bugs.

This is what Gnus does, for example, and they have the same XEmacs
issues as you do. It seems to be working fine for them.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#15784: 24.3.50; cc-mode bug reporting
  2013-11-04  0:31   ` Glenn Morris
@ 2013-11-06 20:28     ` Alan Mackenzie
  2013-11-06 20:52       ` Glenn Morris
  2013-11-10 11:10       ` Alan Mackenzie
  0 siblings, 2 replies; 9+ messages in thread
From: Alan Mackenzie @ 2013-11-06 20:28 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Michael Welsh Duggan, 15784

Hello, Glenn.

On Sun, Nov 03, 2013 at 07:31:36PM -0500, Glenn Morris wrote:
> Alan Mackenzie wrote:

> >> It sends to bug-cc-mode@gnu.org.  It might make sense to change this to
> >> send to the gnu debbugs list instead, with an appropriate cc-mode tag.

> > Right at the moment, I don't think this would be a good idea.  CC Mode is
> > also upstream from XEmacs, and bug reports come from that quarter, too.
> > It is convenient to be able to filter a mailbox for mails addressed to
> > *cc-mode*.  Mail to bug-gnu-emacs is much easier to lose in the sheer
> > volume of postings.

> I think you may have misunderstood the suggestion.

That may be the case.

> If you change c-submit-bug-report to send mail to
> submit@debbugs.gnu.org, with an "X-Debbugs-Package: cc-mode" header,
> then all those reports will still end up on the bug-cc-mode list, not
> the bug-gnu-emacs list (ie, submit@debbugs will act like an alias for
> bug-cc-mode). But they will get entered into the tracker and get bug
> numbers. So this change would actually make it _less_ easier to lose
> cc-mode bugs.

The header "X-Debbugs-Package:" isn't mentioned in
.../admin/notes/bugtracker.  Can you point me at any documentation for
it?

> This is what Gnus does, for example, and they have the same XEmacs
> issues as you do. It seems to be working fine for them.

OK.  This would involve amending `reporter-submit-bug-report'.  I'll look
at this.

-- 
Alan Mackenzie (Nuremberg, Germany).





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#15784: 24.3.50; cc-mode bug reporting
  2013-11-06 20:28     ` Alan Mackenzie
@ 2013-11-06 20:52       ` Glenn Morris
  2013-11-10 11:10       ` Alan Mackenzie
  1 sibling, 0 replies; 9+ messages in thread
From: Glenn Morris @ 2013-11-06 20:52 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: Michael Welsh Duggan, 15784

Alan Mackenzie wrote:

> The header "X-Debbugs-Package:" isn't mentioned in
> .../admin/notes/bugtracker.  Can you point me at any documentation for
> it?

I added it specifically for Gnus bug reporting.
It functions exactly the same as the Package: pseudo-header.
Likewise with X-Debbugs-Version.
That's about all there is to say. :)

You can use "Package:" in the first line of the body for an identical
effect, but then you have to rely on users not deleting it, or adding
any body text before it.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#15784: 24.3.50; cc-mode bug reporting
  2013-11-06 20:28     ` Alan Mackenzie
  2013-11-06 20:52       ` Glenn Morris
@ 2013-11-10 11:10       ` Alan Mackenzie
  2013-11-10 18:43         ` Michael Welsh Duggan
  1 sibling, 1 reply; 9+ messages in thread
From: Alan Mackenzie @ 2013-11-10 11:10 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Michael Welsh Duggan, 15784

Hello, Glenn.

On Wed, Nov 06, 2013 at 08:28:39PM +0000, Alan Mackenzie wrote:
> On Sun, Nov 03, 2013 at 07:31:36PM -0500, Glenn Morris wrote:
> > Alan Mackenzie wrote:

> > >> It sends to bug-cc-mode@gnu.org.  It might make sense to change this to
> > >> send to the gnu debbugs list instead, with an appropriate cc-mode tag.

> > If you change c-submit-bug-report to send mail to
> > submit@debbugs.gnu.org, with an "X-Debbugs-Package: cc-mode" header,
> > then all those reports will still end up on the bug-cc-mode list, not
> > the bug-gnu-emacs list (ie, submit@debbugs will act like an alias for
> > bug-cc-mode). But they will get entered into the tracker and get bug
> > numbers. So this change would actually make it _less_ easier to lose
> > cc-mode bugs.

> The header "X-Debbugs-Package:" isn't mentioned in
> .../admin/notes/bugtracker.  Can you point me at any documentation for
> it?

> > This is what Gnus does, for example, and they have the same XEmacs
> > issues as you do. It seems to be working fine for them.

> OK.  This would involve amending `reporter-submit-bug-report'.  I'll look
> at this.

`reporter-submit-bug-report' doesn't seem amenable to easy amendation.
The function where the mail headers get inserted into the mail buffer is
the result of "(get mail-user-agent 'composefunc)".  At this stage, we're
deep inside the Emacs mail functionality.

I don't think it's worthwhile making such a large change just to get
debbugs error numbers onto CC Mode bug reports.  But if somebody else
were to make this change, I'm sure CC Mode could use it.  Patches
welcome.  ;-)

-- 
Alan Mackenzie (Nuremberg, Germany).





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#15784: 24.3.50; cc-mode bug reporting
  2013-11-10 11:10       ` Alan Mackenzie
@ 2013-11-10 18:43         ` Michael Welsh Duggan
  2014-01-30  2:59           ` Glenn Morris
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Welsh Duggan @ 2013-11-10 18:43 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: Michael Welsh Duggan, 15784

Alan Mackenzie <acm@muc.de> writes:

> Hello, Glenn.
>
> On Wed, Nov 06, 2013 at 08:28:39PM +0000, Alan Mackenzie wrote:
>> On Sun, Nov 03, 2013 at 07:31:36PM -0500, Glenn Morris wrote:
>> > Alan Mackenzie wrote:
>
>> > >> It sends to bug-cc-mode@gnu.org.  It might make sense to change this to
>> > >> send to the gnu debbugs list instead, with an appropriate cc-mode tag.
>
>> > If you change c-submit-bug-report to send mail to
>> > submit@debbugs.gnu.org, with an "X-Debbugs-Package: cc-mode" header,
>> > then all those reports will still end up on the bug-cc-mode list, not
>> > the bug-gnu-emacs list (ie, submit@debbugs will act like an alias for
>> > bug-cc-mode). But they will get entered into the tracker and get bug
>> > numbers. So this change would actually make it _less_ easier to lose
>> > cc-mode bugs.
>
>> The header "X-Debbugs-Package:" isn't mentioned in
>> .../admin/notes/bugtracker.  Can you point me at any documentation for
>> it?
>
>> > This is what Gnus does, for example, and they have the same XEmacs
>> > issues as you do. It seems to be working fine for them.
>
>> OK.  This would involve amending `reporter-submit-bug-report'.  I'll look
>> at this.
>
> `reporter-submit-bug-report' doesn't seem amenable to easy amendation.
> The function where the mail headers get inserted into the mail buffer is
> the result of "(get mail-user-agent 'composefunc)".  At this stage, we're
> deep inside the Emacs mail functionality.
>
> I don't think it's worthwhile making such a large change just to get
> debbugs error numbers onto CC Mode bug reports.  But if somebody else
> were to make this change, I'm sure CC Mode could use it.  Patches
> welcome.  ;-)

It seems easy enough.  It looks like just need to add 

        (save-excursion
          (or (mail-position-on-field "X-Debbugs-Package")
              (insert "cc-mode")))

To the lambda you are already passing as the last argument you pass to
`reporter-submit-bug-report' in `c-submit-bug-report'.

-- 
Michael Welsh Duggan
(md5i@md5i.com)





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#15784: 24.3.50; cc-mode bug reporting
  2013-11-10 18:43         ` Michael Welsh Duggan
@ 2014-01-30  2:59           ` Glenn Morris
  2015-05-27  6:31             ` Glenn Morris
  0 siblings, 1 reply; 9+ messages in thread
From: Glenn Morris @ 2014-01-30  2:59 UTC (permalink / raw)
  To: Michael Welsh Duggan; +Cc: 15784

Michael Welsh Duggan wrote:

> It seems easy enough.  It looks like just need to add 
>
>         (save-excursion
>           (or (mail-position-on-field "X-Debbugs-Package")
>               (insert "cc-mode")))
>
> To the lambda you are already passing as the last argument you pass to
> `reporter-submit-bug-report' in `c-submit-bug-report'.

Works for me.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#15784: 24.3.50; cc-mode bug reporting
  2014-01-30  2:59           ` Glenn Morris
@ 2015-05-27  6:31             ` Glenn Morris
  0 siblings, 0 replies; 9+ messages in thread
From: Glenn Morris @ 2015-05-27  6:31 UTC (permalink / raw)
  To: 15784-done

Version: 25.1

Done.





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-05-27  6:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-01 16:01 bug#15784: 24.3.50; cc-mode bug reporting Michael Welsh Duggan
2013-11-03 21:54 ` Alan Mackenzie
2013-11-04  0:31   ` Glenn Morris
2013-11-06 20:28     ` Alan Mackenzie
2013-11-06 20:52       ` Glenn Morris
2013-11-10 11:10       ` Alan Mackenzie
2013-11-10 18:43         ` Michael Welsh Duggan
2014-01-30  2:59           ` Glenn Morris
2015-05-27  6:31             ` Glenn Morris

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).