GNU bug report logs - #16695
24.3; comment-dwim (args out of range)

Previous Next

Packages: cc-mode, emacs;

Reported by: eg5cue <at> gmail.com

Date: Sat, 8 Feb 2014 19:57:04 UTC

Severity: normal

Merged with 15881

Found in version 24.3

Fixed in version 24.4

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: eg5cue <at> gmail.com
Cc: 16695 <at> debbugs.gnu.org
Subject: bug#16695: 24.3; comment-dwim (args out of range)
Date: Sat, 08 Feb 2014 15:12:20 -0500
eg5cue <at> gmail.com wrote:

> this is a longstanding bug since 24.3(i don't tried older versions)
> till now (the latest git version - github mirror), and is very
> annoying. it happens when trying to comment out (a line/multiple
> lines) except the first line from a C family file that:
>
> it's first line isn't empty or a comment.
> isn't modified after it's opened.
>
> comment function: comment-dwim (M-;)
> emacs args: emacs -Q

Thanks. For future reference, please do

 M-x toggle-debug-on-error

and include the basktrace in the report:

Debugger entered--Lisp error: (args-out-of-range 1 2)
  remove-text-properties(#<marker at 1 in foo.c> 2 (category nil))
  c-invalidate-state-cache(17)
  c-before-change(17 17)
  comment-region-internal(17 45 "/* " " */" nil nil nil nil t)
  comment-region-default(16 46 nil)
  comment-region(16 46 nil)
  comment-or-uncomment-region(16 46 nil)
  comment-dwim(nil)
  call-interactively(comment-dwim nil nil)
  command-execute(comment-dwim)




This bug report was last modified 11 years and 99 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.