all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* regression:  filling comments in C++ code (today's CVS)
@ 2003-01-16 20:50 Robert Anderson
  2003-01-16 23:46 ` Stefan Monnier
  0 siblings, 1 reply; 19+ messages in thread
From: Robert Anderson @ 2003-01-16 20:50 UTC (permalink / raw)



I just updated from CVS today and it appears there has been a
rather serious regression with respect to filling comments in C++
code.

Here's a test case, in cc-mode:

main()
{
    // a[M-q]

comes back with:

fill-comment-paragraph: Search failed: "/\\*+ *\\|//+ *"

Bob

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: regression: filling comments in C++ code (today's CVS)
@ 2003-01-17  0:06 Robert Anderson
  2003-01-17 17:19 ` Stefan Monnier
  2003-01-19  0:25 ` Stefan Monnier
  0 siblings, 2 replies; 19+ messages in thread
From: Robert Anderson @ 2003-01-17  0:06 UTC (permalink / raw)
  Cc: emacs-devel


--- Original Message ---
From: "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu>
To: "Robert Anderson" <RWA@sbcglobal.net>
CC: emacs-devel@gnu.org
Subject: Re: regression: filling comments in C++ code (today's CVS) 

>> I just updated from CVS today and it appears there has been a
>> rather serious regression with respect to filling comments in C++
>> code.
>> 
>> Here's a test case, in cc-mode:
>> 
>> main()
>> {
>>     // a[M-q]
>> 
>> comes back with:
>> 
>> fill-comment-paragraph: Search failed: "/\\*+ *\\|//+ *"
>
>Could you provide the full backtrace (by setting
>Options => Enter Debugger on Error) ?
>
>
>
Stefan

I guess a _15 character_ test case is too much work to cut/paste? :)

Here 'tis:

Debugger entered--Lisp error: (search-failed "/\\*+ *\\|//+ *")
  re-search-forward("/\\*+ *\\|//+ *")
  fill-comment-paragraph(nil)
  fill-paragraph(nil)
  apply(fill-paragraph nil)
  c-mask-comment(t nil fill-paragraph nil)
  c-fill-paragraph(nil)
  call-interactively(c-fill-paragraph)

Thanks,
Bob

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: regression: filling comments in C++ code (today's CVS)
@ 2003-01-19  0:34 Robert Anderson
  0 siblings, 0 replies; 19+ messages in thread
From: Robert Anderson @ 2003-01-19  0:34 UTC (permalink / raw)
  Cc: emacs-devel


--- Original Message ---
From: "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu>
To: "Robert Anderson" <RWA@sbcglobal.net>, bug-cc-mode@gnu.org
CC: emacs-devel@gnu.org
Subject: Re: regression: filling comments in C++ code (today's CVS) 

>> Debugger entered--Lisp error: (search-failed "/\\*+ *\\|//+ *")
>>   re-search-forward("/\\*+ *\\|//+ *")
>>   fill-comment-paragraph(nil)
>>   fill-paragraph(nil)
>>   apply(fill-paragraph nil)
>>   c-mask-comment(t nil fill-paragraph nil)
>>   c-fill-paragraph(nil)
>>   call-interactively(c-fill-paragraph)
>
>I believe I've fixed this bug now, thanks for reporting it.

Is the fix in CVS?  I can run my tests on it if so.  Thanks for
responding to my report.

>I still think it's also a bug for cc-mode to rebind M-q instead of
>setting fill-paragraph-function.  Or is there a good reason for
>doing it this way ?

I could say "I doubt it," but I honestly have no idea.

Thanks,
Bob

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: regression: filling comments in C++ code (today's CVS)
@ 2003-01-19  0:41 Robert Anderson
  0 siblings, 0 replies; 19+ messages in thread
From: Robert Anderson @ 2003-01-19  0:41 UTC (permalink / raw)
  Cc: emacs-devel


--- Original Message ---
From: "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu>
To: "Robert Anderson" <RWA@sbcglobal.net>, bug-cc-mode@gnu.org
CC: emacs-devel@gnu.org
Subject: Re: regression: filling comments in C++ code (today's CVS) 

>> Debugger entered--Lisp error: (search-failed "/\\*+ *\\|//+ *")
>>   re-search-forward("/\\*+ *\\|//+ *")
>>   fill-comment-paragraph(nil)
>>   fill-paragraph(nil)
>>   apply(fill-paragraph nil)
>>   c-mask-comment(t nil fill-paragraph nil)
>>   c-fill-paragraph(nil)
>>   call-interactively(c-fill-paragraph)
>
>I believe I've fixed this bug now, thanks for reporting it.

(~/emacs-test)$ ./run-tests 
GNU Emacs 21.3.50.7
./c++-mode/c-fill-paragraph/indented-comments: filling indented
comments... FAIL.
./c++-mode/c-fill-paragraph/left-flush-comments: filling left
flush comments... ok.
./fortran-mode/fill-paragraph/comments: filling comments... ok.
Failed: 1
(~/emacs-test)$ ./run-tests 
GNU Emacs 21.3.50.8
./c++-mode/c-fill-paragraph/indented-comments: filling indented
comments... ok.
./c++-mode/c-fill-paragraph/left-flush-comments: filling left
flush comments... ok.
./fortran-mode/fill-paragraph/comments: filling comments... ok.
All tests passed.

Indeed, you have fixed the bug I reported.  Thanks!

Bob





-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will
allow you to extend the highest allowed 128 bit encryption to all your 
clients even if they use browsers that are limited to 40 bit encryption. 
Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en


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

end of thread, other threads:[~2003-02-28 18:40 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-16 20:50 regression: filling comments in C++ code (today's CVS) Robert Anderson
2003-01-16 23:46 ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2003-01-17  0:06 Robert Anderson
2003-01-17 17:19 ` Stefan Monnier
2003-01-19  1:36   ` Richard Stallman
2003-01-19 19:42   ` Martin Stjernholm
2003-01-20 16:54     ` Stefan Monnier
2003-01-24  2:45       ` Martin Stjernholm
2003-01-25 19:22         ` Richard Stallman
2003-01-26  1:48         ` Stefan Monnier
2003-02-09  1:31           ` Martin Stjernholm
2003-02-10 15:36             ` Stefan Monnier
2003-02-24  1:52               ` Martin Stjernholm
2003-02-24 14:26                 ` Stefan Monnier
2003-02-28 14:39                   ` Martin Stjernholm
2003-02-28 18:40                     ` Stefan Monnier
2003-01-19  0:25 ` Stefan Monnier
2003-01-19  0:34 Robert Anderson
2003-01-19  0:41 Robert Anderson

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.