GNU bug report logs - #25616
CC Mode 5.32.99 (C/l); c-(back|for)ward-comments doesn't work when point is in comment

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: cc-mode; Reported by: Mohammed Sadiq <sadiq@HIDDEN>; dated Sat, 4 Feb 2017 07:29:01 UTC; Maintainer for cc-mode is bug-cc-mode@HIDDEN.
bug reassigned from package 'debbugs.gnu.org' to 'cc-mode'. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 Feb 2017 07:28:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 04 02:28:18 2017
Received: from localhost ([127.0.0.1]:55473 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cZuld-0002tk-7e
	for submit <at> debbugs.gnu.org; Sat, 04 Feb 2017 02:28:18 -0500
Received: from us2-ob2-3.mailhostbox.com ([208.91.199.209]:38158)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sadiq@HIDDEN>) id 1cZulb-0002tc-5U
 for submit <at> debbugs.gnu.org; Sat, 04 Feb 2017 02:28:16 -0500
Received: from 172.16.214.62 (unknown [172.16.214.62])
 (using TLSv1 with cipher AES256-SHA (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: sadiq@HIDDEN)
 by us2.outbound.mailhostbox.com (Postfix) with ESMTPSA id 5A8D6780FF5
 for <submit <at> debbugs.gnu.org>; Sat,  4 Feb 2017 07:28:14 +0000 (GMT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sadiqpk.org;
 s=20160628; t=1486193294;
 bh=5Mvy5smj/VUk9MFLnPE9zGuYclvaYpmNkUTW1HpznVo=;
 h=Date:From:Reply-To:To:Subject;
 b=gK1a3JuMuxRmsoVc/Ydm1+LA0OqidMXe6y8tqnPrjUauDyzlOMpukLnpVWxuI2zmZ
 pSD67EFzwPuHoup2sjHa0+1irkrZF+grClgOgZ1elncb4qBuPsTWlZZhvsAffMgCgC
 3jXi+qQFsOzoziwUUhmowHt3v5Uo12BqxRo+j/zc=
Date: Sat, 4 Feb 2017 12:58:14 +0530 (IST)
From: Mohammed Sadiq <sadiq@HIDDEN>
To: submit <at> debbugs.gnu.org
Message-ID: <1217777232.24634.1486193294366@HIDDEN>
Subject: CC Mode 5.32.99 (C/l); c-(back|for)ward-comments doesn't work when
 point is in comment
MIME-Version: 1.0
Content-Type: multipart/alternative; 
 boundary="----=_Part_24633_1128978889.1486193294255"
X-Priority: 3
Importance: Medium
X-Mailer: Open-Xchange Mailer v7.8.1-Rev14
X-Originating-Client: open-xchange-appsuite
X-CMAE-Score: 0
X-CMAE-Analysis: v=2.1 cv=Y7tYykqN c=1 sm=1 tr=0
 a=Ejo+fC9hko1e0+RChf/zrg==:117 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10
 a=s5jvgZ67dGcA:10 a=kV5WzCHiHWK36PYbD6wA:9 a=QEXdDO2ut3YA:10
 a=U2gv1XKW3wweYrFjT78A:9 a=WdpubGXawxblqwe8:21 a=_W_S_7VecoQA:10
X-Spam-Score: 0.4 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Mohammed Sadiq <sadiq@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.1 (-)

------=_Part_24633_1128978889.1486193294255
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

When the `point' is inside a comment, `c-forward-comments' and
`c-backward-comments' doesn't work (Ie, it doesn't skip the current
comment).


Eg: The following code in which `|' is the point (not the OR in C)

enum {
A,
B,
/* This is a |comment */
C
};

Emacs : GNU Emacs 26.0.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.6)
of 2017-01-20
Package: CC Mode 5.32.99 (C/l)
Buffer Style: gnu
c-emacs-features: (pps-extended-state col-0-paren posix-char-classes gen-st=
ring-delim gen-comment-delim syntax-properties 1-bit)

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
c-basic-offset 2
c-comment-only-line-offset '(0 . 0)
c-indent-comment-alist '((anchored-comment column . 0) (end-block space . 1=
)
(cpp-end-block space . 2))
c-indent-comments-syntactically-p nil
c-block-comment-prefix ""
c-comment-prefix-regexp '((pike-mode . "//+!?\\|\\**") (awk-mode . "#+")
(other . "//+\\|\\**"))
c-doc-comment-style '((java-mode . javadoc) (pike-mode . autodoc)
(c-mode . gtkdoc))
c-cleanup-list '(scope-operator)
c-hanging-braces-alist '((substatement-open before after)
(arglist-cont-nonempty))
c-hanging-colons-alist nil
c-hanging-semi&comma-criteria '(c-semi&comma-inside-parenlist)
c-backslash-column 48
c-backslash-max-column 72
c-special-indent-hook '(c-gnu-impose-minimum)
c-label-minimum-indentation 1
c-offsets-alist '((inexpr-class . +)
(inexpr-statement . +)
(lambda-intro-cont . +)
(inlambda . c-lineup-inexpr-block)
(template-args-cont c-lineup-template-args +)
(incomposition . +)
(inmodule . +)
(innamespace . +)
(inextern-lang . +)
(composition-close . 0)
(module-close . 0)
(namespace-close . 0)
(extern-lang-close . 0)
(composition-open . 0)
(module-open . 0)
(namespace-open . 0)
(extern-lang-open . 0)
(objc-method-call-cont
c-lineup-ObjC-method-call-colons
c-lineup-ObjC-method-call
+
)
(objc-method-args-cont . c-lineup-ObjC-method-args)
(objc-method-intro . [0])
(friend . 0)
(cpp-define-intro c-lineup-cpp-define +)
(cpp-macro-cont . +)
(cpp-macro . [0])
(inclass . +)
(stream-op . c-lineup-streamop)
(arglist-cont-nonempty
c-lineup-gcc-asm-reg
c-lineup-arglist
)
(arglist-cont c-lineup-gcc-asm-reg 0)
(comment-intro
c-lineup-knr-region-comment
c-lineup-comment
)
(catch-clause . 0)
(else-clause . 0)
(do-while-closure . 0)
(access-label . -)
(case-label . 0)
(substatement . +)
(statement-case-intro . +)
(statement . 0)
(brace-entry-open . 0)
(brace-list-entry . 0)
(brace-list-intro . +)
(brace-list-close . 0)
(block-close . 0)
(block-open . 0)
(inher-cont . c-lineup-multi-inher)
(inher-intro . +)
(member-init-cont . c-lineup-multi-inher)
(member-init-intro . +)
(annotation-var-cont . +)
(annotation-top-cont . 0)
(topmost-intro . 0)
(knr-argdecl . 0)
(func-decl-cont . +)
(inline-close . 0)
(class-close . 0)
(class-open . 0)
(defun-block-intro . +)
(defun-close . 0)
(defun-open . 0)
(c . c-lineup-C-comments)
(string . c-lineup-dont-change)
(topmost-intro-cont
first
c-lineup-topmost-intro-cont
c-lineup-gnu-DEFUN-intro-cont
)
(brace-list-open . +)
(inline-open . 0)
(arglist-close . c-lineup-arglist)
(arglist-intro . c-lineup-arglist-intro-after-paren)
(statement-cont . +)
(statement-case-open . +)
(label . 0)
(substatement-label . 0)
(substatement-open . +)
(knr-argdecl-intro . 5)
(statement-block-intro . +)
)
c-buffer-is-cc-mode 'c-mode
c-tab-always-indent t
c-syntactic-indentation t
c-syntactic-indentation-in-macros t
c-ignore-auto-fill '(string cpp code)
c-auto-align-backslashes t
c-backspace-function 'backward-delete-char-untabify
c-delete-function 'delete-char
c-electric-pound-behavior nil
c-default-style '((java-mode . "java") (awk-mode . "awk") (other . "gnu"))
c-enable-xemacs-performance-kludge-p nil
c-old-style-variable-behavior nil
defun-prompt-regexp nil
tab-width 8
comment-column 32
parse-sexp-ignore-comments t
parse-sexp-lookup-properties t
auto-fill-function nil
comment-multi-line t
comment-start-skip "\\(//+\\|/\\*+\\)\\s *"
fill-prefix nil
fill-column 70
paragraph-start "[ ]*\\(//+\\|\\**\\)[ ]*$\\|^\f"
adaptive-fill-mode t
adaptive-fill-regexp "[ ]*\\(//+\\|\\**\\)[ ]*\\([ ]*\\([-=E2=80=93!|#%;>*=
=C2=B7=E2=80=A2=E2=80=A3=E2=81=83=E2=97=A6]+[ ]*\\)*\\)"
)

------=_Part_24633_1128978889.1486193294255
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>
<html><head>
    <meta charset=3D"UTF-8">
</head><body><p>When the `point&#39; is inside a comment, `c-forward-commen=
ts&#39; and<br> `c-backward-comments&#39; doesn&#39;t work (Ie, it doesn&#3=
9;t skip the current<br> comment).<br> </p><p><br></p><p>Eg: The following =
code in which `|&#39; is the point (not the OR in C)</p><p>enum {<br> A,<br=
> B,<br> /* This is a |comment */<br> C<br> };</p><p>Emacs : GNU Emacs 26.0=
.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.6)<br> of 2017-01-20<br>Packa=
ge: CC Mode 5.32.99 (C/l)<br>Buffer Style: gnu<br>c-emacs-features: (pps-ex=
tended-state col-0-paren posix-char-classes gen-string-delim gen-comment-de=
lim syntax-properties 1-bit)</p><p>current state:<br>=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D<br>(setq<br> c-basic-offset 2<br> c-comment-only-line=
-offset &#39;(0 . 0)<br> c-indent-comment-alist &#39;((anchored-comment col=
umn . 0) (end-block space . 1)<br> (cpp-end-block space . 2))<br> c-indent-=
comments-syntactically-p nil<br> c-block-comment-prefix &#34;&#34;<br> c-co=
mment-prefix-regexp &#39;((pike-mode . &#34;//+!?\\|\\**&#34;) (awk-mode . =
&#34;#+&#34;)<br> (other . &#34;//+\\|\\**&#34;))<br> c-doc-comment-style &=
#39;((java-mode . javadoc) (pike-mode . autodoc)<br> (c-mode . gtkdoc))<br>=
 c-cleanup-list &#39;(scope-operator)<br> c-hanging-braces-alist &#39;((sub=
statement-open before after)<br> (arglist-cont-nonempty))<br> c-hanging-col=
ons-alist nil<br> c-hanging-semi&#38;comma-criteria &#39;(c-semi&#38;comma-=
inside-parenlist)<br> c-backslash-column 48<br> c-backslash-max-column 72<b=
r> c-special-indent-hook &#39;(c-gnu-impose-minimum)<br> c-label-minimum-in=
dentation 1<br> c-offsets-alist &#39;((inexpr-class . +)<br> (inexpr-statem=
ent . +)<br> (lambda-intro-cont . +)<br> (inlambda . c-lineup-inexpr-block)=
<br> (template-args-cont c-lineup-template-args +)<br> (incomposition . +)<=
br> (inmodule . +)<br> (innamespace . +)<br> (inextern-lang . +)<br> (compo=
sition-close . 0)<br> (module-close . 0)<br> (namespace-close . 0)<br> (ext=
ern-lang-close . 0)<br> (composition-open . 0)<br> (module-open . 0)<br> (n=
amespace-open . 0)<br> (extern-lang-open . 0)<br> (objc-method-call-cont<br=
> c-lineup-ObjC-method-call-colons<br> c-lineup-ObjC-method-call<br> +<br> =
)<br> (objc-method-args-cont . c-lineup-ObjC-method-args)<br> (objc-method-=
intro . [0])<br> (friend . 0)<br> (cpp-define-intro c-lineup-cpp-define +)<=
br> (cpp-macro-cont . +)<br> (cpp-macro . [0])<br> (inclass . +)<br> (strea=
m-op . c-lineup-streamop)<br> (arglist-cont-nonempty<br> c-lineup-gcc-asm-r=
eg<br> c-lineup-arglist<br> )<br> (arglist-cont c-lineup-gcc-asm-reg 0)<br>=
 (comment-intro<br> c-lineup-knr-region-comment<br> c-lineup-comment<br> )<=
br> (catch-clause . 0)<br> (else-clause . 0)<br> (do-while-closure . 0)<br>=
 (access-label . -)<br> (case-label . 0)<br> (substatement . +)<br> (statem=
ent-case-intro . +)<br> (statement . 0)<br> (brace-entry-open . 0)<br> (bra=
ce-list-entry . 0)<br> (brace-list-intro . +)<br> (brace-list-close . 0)<br=
> (block-close . 0)<br> (block-open . 0)<br> (inher-cont . c-lineup-multi-i=
nher)<br> (inher-intro . +)<br> (member-init-cont . c-lineup-multi-inher)<b=
r> (member-init-intro . +)<br> (annotation-var-cont . +)<br> (annotation-to=
p-cont . 0)<br> (topmost-intro . 0)<br> (knr-argdecl . 0)<br> (func-decl-co=
nt . +)<br> (inline-close . 0)<br> (class-close . 0)<br> (class-open . 0)<b=
r> (defun-block-intro . +)<br> (defun-close . 0)<br> (defun-open . 0)<br> (=
c . c-lineup-C-comments)<br> (string . c-lineup-dont-change)<br> (topmost-i=
ntro-cont<br> first<br> c-lineup-topmost-intro-cont<br> c-lineup-gnu-DEFUN-=
intro-cont<br> )<br> (brace-list-open . +)<br> (inline-open . 0)<br> (argli=
st-close . c-lineup-arglist)<br> (arglist-intro . c-lineup-arglist-intro-af=
ter-paren)<br> (statement-cont . +)<br> (statement-case-open . +)<br> (labe=
l . 0)<br> (substatement-label . 0)<br> (substatement-open . +)<br> (knr-ar=
gdecl-intro . 5)<br> (statement-block-intro . +)<br> )<br> c-buffer-is-cc-m=
ode &#39;c-mode<br> c-tab-always-indent t<br> c-syntactic-indentation t<br>=
 c-syntactic-indentation-in-macros t<br> c-ignore-auto-fill &#39;(string cp=
p code)<br> c-auto-align-backslashes t<br> c-backspace-function &#39;backwa=
rd-delete-char-untabify<br> c-delete-function &#39;delete-char<br> c-electr=
ic-pound-behavior nil<br> c-default-style &#39;((java-mode . &#34;java&#34;=
) (awk-mode . &#34;awk&#34;) (other . &#34;gnu&#34;))<br> c-enable-xemacs-p=
erformance-kludge-p nil<br> c-old-style-variable-behavior nil<br> defun-pro=
mpt-regexp nil<br> tab-width 8<br> comment-column 32<br> parse-sexp-ignore-=
comments t<br> parse-sexp-lookup-properties t<br> auto-fill-function nil<br=
> comment-multi-line t<br> comment-start-skip &#34;\\(//+\\|/\\*+\\)\\s *&#=
34;<br> fill-prefix nil<br> fill-column 70<br> paragraph-start &#34;[ ]*\\(=
//+\\|\\**\\)[ ]*$\\|^\f&#34;<br> adaptive-fill-mode t<br> adaptive-fill-re=
gexp &#34;[ ]*\\(//+\\|\\**\\)[ ]*\\([ ]*\\([-&#8211;!|#%;&#62;*&#183;&#822=
6;=E2=80=A3=E2=81=83=E2=97=A6]+[ ]*\\)*\\)&#34;<br> )<br></p></body></html>
=20
------=_Part_24633_1128978889.1486193294255--




Acknowledgement sent to Mohammed Sadiq <sadiq@HIDDEN>:
New bug report received and forwarded. Copy sent to help-debbugs@HIDDEN. Full text available.
Report forwarded to help-debbugs@HIDDEN:
bug#25616; Package debbugs.gnu.org. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 4 Feb 2017 17:45:01 UTC

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