From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Konstantin Kharlamov Newsgroups: gmane.emacs.bugs Subject: bug#29959: cc-mode: wrong indentation in absence of semicolon Date: Wed, 3 Jan 2018 09:02:19 +0300 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1514959280 25102 195.159.176.226 (3 Jan 2018 06:01:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 3 Jan 2018 06:01:20 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 To: 29959@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 03 07:01:16 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWc6t-0005mJ-7L for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Jan 2018 07:01:07 +0100 Original-Received: from localhost ([::1]:41133 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWc8s-0006fD-8A for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Jan 2018 01:03:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWc8l-0006eo-TG for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2018 01:03:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWc8k-0005nB-OP for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2018 01:03:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53298) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eWc8k-0005n3-K1 for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2018 01:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eWc8k-0002SC-95 for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2018 01:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Jan 2018 06:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29959 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15149593589399 (code B ref -1); Wed, 03 Jan 2018 06:03:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Jan 2018 06:02:38 +0000 Original-Received: from localhost ([127.0.0.1]:33746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWc8M-0002RX-66 for submit@debbugs.gnu.org; Wed, 03 Jan 2018 01:02:38 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38155) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWc8I-0002RJ-Tu for submit@debbugs.gnu.org; Wed, 03 Jan 2018 01:02:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWc8C-0005Qe-DO for submit@debbugs.gnu.org; Wed, 03 Jan 2018 01:02:29 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57619) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eWc8C-0005QW-9Y for submit@debbugs.gnu.org; Wed, 03 Jan 2018 01:02:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWc8A-0006Mk-Rh for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2018 01:02:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWc89-0005P0-LD for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2018 01:02:26 -0500 Original-Received: from forward102p.mail.yandex.net ([2a02:6b8:0:1472:2741:0:8b7:102]:38505) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eWc89-0005Il-6Q for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2018 01:02:25 -0500 Original-Received: from mxback9j.mail.yandex.net (mxback9j.mail.yandex.net [IPv6:2a02:6b8:0:1619::112]) by forward102p.mail.yandex.net (Yandex) with ESMTP id E59774301CAC for ; Wed, 3 Jan 2018 09:02:20 +0300 (MSK) Original-Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback9j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id hHaFCyllig-2K5GroNI; Wed, 03 Jan 2018 09:02:20 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1514959340; bh=w4oTCFNy9IQ1wqp+P2wRuw2v6IyoAjsJAVILAxQa3Js=; h=To:From:Subject:Message-ID:Date; b=jpQDKwH55PaOFNZ8PtGPWrZ/Qwgknbh3Z5KZ+WwZbF6OIIg2SXON818xl6yQs9pKA elvfmyW3BZm9A61lzZsmqqzISEYbSV/5iEpVTkBX0rifsWHUdVRQdZqwZP7/AupjfB vJc7yvEj2axE7Vy7SpIs27RvcuCnCeOcY4gimk1A= Original-Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id LIpj5G4z73-2KrG4hfJ; Wed, 03 Jan 2018 09:02:20 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1514959340; bh=w4oTCFNy9IQ1wqp+P2wRuw2v6IyoAjsJAVILAxQa3Js=; h=To:From:Subject:Message-ID:Date; b=jpQDKwH55PaOFNZ8PtGPWrZ/Qwgknbh3Z5KZ+WwZbF6OIIg2SXON818xl6yQs9pKA elvfmyW3BZm9A61lzZsmqqzISEYbSV/5iEpVTkBX0rifsWHUdVRQdZqwZP7/AupjfB vJc7yvEj2axE7Vy7SpIs27RvcuCnCeOcY4gimk1A= Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.ru Content-Language: ru-RU X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:141739 Archived-At: # Steps to reproduce: 1. Open emacs -Q test.c 2. Write the following: int main() { int a, } 3. put the caret after the comma symbol, and press enter, e.g. to continue writing variables on the new line. # Expected: the new line alignment stands out with regard to the prev. line. # Actual: the new line aligned to the beginning of the prev. line. # Workarounds: Typing the following text: int main() { int a,; } =E2=80=A6then pressing enter right after the comma works as expected. ------------ In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.26) of 2017-12-15 built on constantine-N61Ja Repository revision: 6c301afa70f6eac32ad1ce92412ea3cf6fcdeeca Windowing system distributor 'The X.Org Foundation', version 11.0.1190600= 0 System Description: Arch Linux Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localstatedir=3D/var --mandir=3D/usr/share/man --with-gameuser=3D:gam= es --with-sound=3Dalsa --with-xft --with-modules --with-x-toolkit=3Dgtk3 --without-gconf --without-gsettings --without-gpm --without-m17n-flt --without-imagemagick 'CFLAGS=3D-flto=3D2 -march=3Dnative -O3 -pipe -fno-stack-protector -fweb -fno-semantic-interposition -fmerge-all-constants' 'LDFLAGS=3D-flto=3D2 -O3 -march=3Dnative -fweb -fno-semantic-interposition -fmerge-all-constants -floop-nest-optimize -Wl,--sort-common,-z,relro -fuse-ld=3Dgold'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS NOTIFY ACL GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES LIBSYSTEMD JSON LCMS2 Important settings: value of $LC_CTYPE: ru_RU.UTF-8 value of $LC_TIME: ru_RU.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dnone locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair time-date mule-util cyril-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 95121 11339) (symbols 48 20190 1) (miscs 40 48 119) (strings 32 28421 1060) (string-bytes 1 750170) (vectors 16 14089) (vector-slots 8 494084 10026) (floats 8 49 212) (intervals 56 239 0) (buffers 992 11))