all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: eg5cue@gmail.com
Cc: 16695@debbugs.gnu.org
Subject: bug#16695: 24.3; comment-dwim (args out of range)
Date: Sat, 08 Feb 2014 15:12:20 -0500	[thread overview]
Message-ID: <e9ppmx1hzv.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <84sirtd698.fsf@gmail.com> (eg5cue@gmail.com's message of "Sat, 08 Feb 2014 14:32:51 +0000")

eg5cue@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)





  parent reply	other threads:[~2014-02-08 20:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-08 14:32 bug#16695: 24.3; comment-dwim (args out of range) eg5cue
2014-02-08 20:09 ` Eli Zaretskii
2014-02-08 20:12 ` Glenn Morris [this message]
2014-02-08 22:51   ` Alan Mackenzie
     [not found]   ` <20140208225107.GB4063@acm.acm>
2014-02-08 23:23     ` Glenn Morris
     [not found]     ` <CAAFMBVaGpoZrKgPm-tALx47+XNN8W8sezKyEz9EYwAOz-bG+GA@mail.gmail.com>
2014-02-09 10:33       ` Arash Cue
2014-02-09 12:41 ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e9ppmx1hzv.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=16695@debbugs.gnu.org \
    --cc=eg5cue@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.