unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#25362: 26.0.50; comment-region goes into an infinite loop
@ 2017-01-04 23:37 Dima Kogan
  2017-01-05 20:54 ` Alan Mackenzie
  2017-01-09 21:18 ` Alan Mackenzie
  0 siblings, 2 replies; 14+ messages in thread
From: Dima Kogan @ 2017-01-04 23:37 UTC (permalink / raw)
  To: 25362

[-- Attachment #1: Type: text/plain, Size: 802 bytes --]

Hi. I'm using a very recent emacs built from master:

  eb3416016b4

I'm observing (comment-region) go into an infinite loop when presented
with particular data. I'm attaching a small source file that
demonstrates the issue. To see it break, run this:

    emacs --eval '(add-hook (quote c-mode-common-hook) (lambda () (setq comment-start "//" comment-end "")))'  \
          --eval '(global-set-key (kbd "<f5>") (lambda () (interactive) (comment-region 16 45)))'              \
          -Q tst6.c

This loads the demo file with a clean configuration, and runs two bits
of lisp:

1. Sets up a c++ commenting style. This is required for the issue to
   present itself

2. Binds f5 to run the problematic (comment-region)

On my machine, invoking emacs that way, and then hitting f5 shows the problem.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: tst6.c --]
[-- Type: text/x-csrc, Size: 47 bytes --]

void f(void)
{

    g( // output
      s );

}

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

end of thread, other threads:[~2017-01-11 18:32 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-04 23:37 bug#25362: 26.0.50; comment-region goes into an infinite loop Dima Kogan
2017-01-05 20:54 ` Alan Mackenzie
2017-01-06  7:41   ` Eli Zaretskii
2017-01-06  9:32     ` Alan Mackenzie
2017-01-06  9:37       ` Eli Zaretskii
2017-01-06  9:41         ` Alan Mackenzie
2017-01-07  8:20         ` Alan Mackenzie
2017-01-07  9:44           ` Eli Zaretskii
2017-01-07 10:27             ` Alan Mackenzie
     [not found]             ` <20170107162907.GC3499@acm.fritz.box>
2017-01-07 16:31               ` Eli Zaretskii
2017-01-09 21:18 ` Alan Mackenzie
2017-01-09 21:46   ` Dima Kogan
2017-01-09 22:04     ` Alan Mackenzie
2017-01-11 18:32       ` Alan Mackenzie

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