unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Multiple bugs in lisp-mode M-q on paragraphs within #|..|# comments
@ 2007-03-24 19:32 Bob Rogers
  2007-03-24 19:40 ` Bob Rogers
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Bob Rogers @ 2007-03-24 19:32 UTC (permalink / raw)
  To: emacs-devel

   I found three such bugs.  To reproduce:

   1.  Copy the Lisp source below the "----" line into a local file such
as test-lisp-commment-fill.lisp, or anything else that ends in ".lisp".
(Don't follow those instructions, just cut-and-paste!)

   2.  "emacs -Q test-lisp-commment-fill.lisp"

First bug:

   3.  Move point anywhere on the line that says "More testing" and type
M-q.  Observe that nothing happens, when it should join up the next
line.  Typing M-q on the next line DTRT.

Second bug:

   4.  Move to any of the paragraphs in the second #|..| comment (though
only the one numbered 4 needs filling), and type M-q.  You will see a
"Search failed" error; afterwards, *Messages* has:

	fill-comment-paragraph: Search failed: "\\(\\(^\\|[^\\\\
	]\\)\\(\\\\\\\\\\)*\\)\\(;+\\|#|\\) *"

FWIW, the failing search is on line 942 of lisp/textmodes/fill.el, but
making the obvious attempt to fix it (supplying NOERROR true) doesn't
completely solve the problem.

Third bug:

   5.  Add a ";" comment line at the end of the file; a single ";" on
the last line will do.

   6.  Move point to anywhere in the *second* line of the paragraph
numbered 4, and type M-q.  Not only is this paragraph not filled, but
nearly all of the comment text is duplicated several times!

   I can reproduce all of these quite readily in CVS Emacs updated last
night, but none of them fail in Emacs 21.3 (SuSE GNU/Linux 9.0).

   I am hoping the solution(s) will be obvious to someone more familiar
with this code than I.  If I don't hear anything, I will look into it
further.  (Clues gratefully accepted.  ;-)

   TIA,

					-- Bob Rogers
					   http://rgrjr.dyndns.org/

------------------------------------------------------------------------
;;;; Testing M-q in lisp-mode.

(in-package :common-lisp-user)

#|

   More testing.  Foo bar.
Baz quux.

|#

#||

   1.  Start lisp (via M-x slime).

   2.  Compile and load the mini-compiler (C-c C-k).

   3.  Compile and load this file.

   4.  Invoke (recompile-everything) so that *functions-compiled*
and *functions-called* reflect the runtime.

||#

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

end of thread, other threads:[~2007-04-01 22:45 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-24 19:32 Multiple bugs in lisp-mode M-q on paragraphs within #|..|# comments Bob Rogers
2007-03-24 19:40 ` Bob Rogers
2007-03-24 19:51   ` Lennart Borgman (gmail)
2007-03-24 20:04 ` Chong Yidong
2007-03-24 20:59   ` Bob Rogers
2007-03-24 22:07     ` martin rudalics
2007-03-25  0:23       ` Bob Rogers
2007-03-25 10:18         ` martin rudalics
2007-03-25 14:13           ` Bob Rogers
2007-03-25 19:53 ` Stefan Monnier
2007-03-25 23:05   ` Bob Rogers
2007-03-28  2:57 ` Stefan Monnier
2007-03-31  0:42   ` Bob Rogers
2007-03-31 20:30     ` Stefan Monnier
2007-04-01 22:45       ` Bob Rogers

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