From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#16695: 24.3; comment-dwim (args out of range) Date: Sat, 08 Feb 2014 15:12:20 -0500 Message-ID: References: <84sirtd698.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1391890397 1680 80.91.229.3 (8 Feb 2014 20:13:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2014 20:13:17 +0000 (UTC) Cc: 16695@debbugs.gnu.org To: eg5cue@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 08 21:13:21 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WCEHA-0007om-BB for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Feb 2014 21:13:20 +0100 Original-Received: from localhost ([::1]:47868 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCEH9-00006P-Pp for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Feb 2014 15:13:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCEH2-00005H-9K for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2014 15:13:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCEH1-0006yc-GQ for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2014 15:13:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCEGs-0006wO-4C; Sat, 08 Feb 2014 15:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WCEGr-0000gg-QP; Sat, 08 Feb 2014 15:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 08 Feb 2014 20:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16695 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 16695-submit@debbugs.gnu.org id=B16695.13918903442593 (code B ref 16695); Sat, 08 Feb 2014 20:13:01 +0000 Original-Received: (at 16695) by debbugs.gnu.org; 8 Feb 2014 20:12:24 +0000 Original-Received: from localhost ([127.0.0.1]:58201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCEGF-0000fl-PC for submit@debbugs.gnu.org; Sat, 08 Feb 2014 15:12:24 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:42650) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCEGD-0000fa-Gi for 16695@debbugs.gnu.org; Sat, 08 Feb 2014 15:12:21 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WCEGC-0007Ie-TK; Sat, 08 Feb 2014 15:12:20 -0500 X-Spook: Maple Guantanamo fraud John Kerry AIMSX SAPO Plame Dick X-Ran: M0fUk9B>~*R7#f>^)/'Vr*|($[1t<6xFbq9\8B/4[ha~;X*7TURzx"g;$1bcE3= (eg5cue@gmail.com's message of "Sat, 08 Feb 2014 14:32:51 +0000") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:84984 Archived-At: 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(# 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)