unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* comment-region with prefix argument doesn't undo commenting in XML mode
@ 2008-02-13 10:26 Martin Fischer
  2008-02-14  2:13 ` Chong Yidong
  2008-02-14  2:42 ` Stefan Monnier
  0 siblings, 2 replies; 4+ messages in thread
From: Martin Fischer @ 2008-02-13 10:26 UTC (permalink / raw)
  To: emacs-pretest-bug


Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

  8<-------------------------------------------------------------------
  Select the following XML code snippet as region.

    <Titel>"BlaBla"</Titel>
    <!-- Comment -->
    <Tag> Property="Value" </Tag>

  M-x comment-region RET yields:

    <!-- <Titel>"BlaBla"</Titel> -->
    <!-- <\!-- Comment -\-> -->
    <!-- <Tag> Property="Value" </Tag> -->

  Selecting the same region again and C-u M-x comment-region RET
  doesn't restore the original text.

    <Titel>"BlaBla"</Titel>
    <\! Comment -\-> >
    <! <Tag> Property="Value" </Tag> >
  8<-------------------------------------------------------------------

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
d:/aemf/emacs-22.1.90/etc/DEBUG for instructions.


In GNU Emacs 22.1.90.1 (i386-mingw-nt5.1.2600)
 of 2008-01-31 on PRETEST
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -Ic:/gnuwin32/include'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: DEU
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: XML

Minor modes in effect:
  encoded-kbd-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k 
C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k 
C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k 
C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k <down> 
<down> <down> <down> C-k C-k C-k C-k C-k C-k C-k C-k 
C-k C-k C-k C-k C-k C-k C-x C-s <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<menu-bar> <help-menu> <send-emacs-bug-report>

Recent messages:
("d:\\aemf\\emacs-22.1.90\\bin\\emacs.exe" "-Q" "u:/aemf/test.xml")
Loading encoded-kb...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading sgml-mode...done
Loading regexp-opt...done
Wrote u:/aemf/test.xml
Loading emacsbug...done




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

* Re: comment-region with prefix argument doesn't undo commenting in XML mode
  2008-02-13 10:26 comment-region with prefix argument doesn't undo commenting in XML mode Martin Fischer
@ 2008-02-14  2:13 ` Chong Yidong
  2008-02-14  2:42 ` Stefan Monnier
  1 sibling, 0 replies; 4+ messages in thread
From: Chong Yidong @ 2008-02-14  2:13 UTC (permalink / raw)
  To: Martin Fischer; +Cc: emacs-pretest-bug

Here is a simpler test case, that I think focuses on where the exact
bug lies.

1. Open an SGML-mode buffer containing the following text:

      Comment

2. M-< C-SPC M-> M-x comment-region RET
3. M-< C-SPC M-> M-x comment-region RET
4. M-<
5. M-: (comment-forward)

Point moves here:

<!-- <\!-- Comment -\-> -->
    ^

This is incorrect.  In contrast, if you perform the same procedure in
the c-mode, point moves here:

/* /\* Comment *\/ */
                     ^




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

* Re: comment-region with prefix argument doesn't undo commenting in XML mode
  2008-02-13 10:26 comment-region with prefix argument doesn't undo commenting in XML mode Martin Fischer
  2008-02-14  2:13 ` Chong Yidong
@ 2008-02-14  2:42 ` Stefan Monnier
  2008-02-14  7:41   ` Martin Fischer
  1 sibling, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2008-02-14  2:42 UTC (permalink / raw)
  To: Martin Fischer; +Cc: emacs-pretest-bug

>   8<-------------------------------------------------------------------
>   Select the following XML code snippet as region.

>     <Titel>"BlaBla"</Titel>
>     <!-- Comment -->
>     <Tag> Property="Value" </Tag>

>   M-x comment-region RET yields:

>     <!-- <Titel>"BlaBla"</Titel> -->
>     <!-- <\!-- Comment -\-> -->
>     <!-- <Tag> Property="Value" </Tag> -->

This should now be fixed in the 22 branch,


        Stefan




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

* Re: comment-region with prefix argument doesn't undo commenting in XML mode
  2008-02-14  2:42 ` Stefan Monnier
@ 2008-02-14  7:41   ` Martin Fischer
  0 siblings, 0 replies; 4+ messages in thread
From: Martin Fischer @ 2008-02-14  7:41 UTC (permalink / raw)
  To: emacs-devel; +Cc: emacs-pretest-bug


  >>>>> Stefan Monnier writes:
  > Date: Wed, 13 Feb 2008 21:42:57 -0500
  > 
8<--------------------------------------------------------------------
  > 
  > This should now be fixed in the 22 branch,

Hi,

I tested with

GNU Emacs 22.1.90.1 (i386-mingw-nt5.1.2600) of 2008-01-31 on PRETEST

Is it newcomment.el ? Which revision is the corrected on ?

Martin
-- 
parozusa at web dot de





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

end of thread, other threads:[~2008-02-14  7:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-13 10:26 comment-region with prefix argument doesn't undo commenting in XML mode Martin Fischer
2008-02-14  2:13 ` Chong Yidong
2008-02-14  2:42 ` Stefan Monnier
2008-02-14  7:41   ` Martin Fischer

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