From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Geyslan G. Bem" Newsgroups: gmane.emacs.bugs Subject: bug#22369: 24.5; comment-style 'extra-line' doesn't correctly indent with tabs Date: Wed, 13 Jan 2016 22:44:52 -0300 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1452736407 20821 80.91.229.3 (14 Jan 2016 01:53:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Jan 2016 01:53:27 +0000 (UTC) To: 22369@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 14 02:53:16 2016 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 1aJX6B-0001f2-MX for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Jan 2016 02:53:16 +0100 Original-Received: from localhost ([::1]:39972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJX6B-0004CQ-9m for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jan 2016 20:53:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJX60-0003vT-4f for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2016 20:53:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJX5y-0000Sv-Pz for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2016 20:53:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJX5y-0000Sc-Mt for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2016 20:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aJX5y-0005wH-Fi for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2016 20:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Geyslan G. Bem" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jan 2016 01:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22369 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.145273635522772 (code B ref -1); Thu, 14 Jan 2016 01:53:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Jan 2016 01:52:35 +0000 Original-Received: from localhost ([127.0.0.1]:48672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJX5X-0005vE-F3 for submit@debbugs.gnu.org; Wed, 13 Jan 2016 20:52:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45841) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJWyD-0005k6-On for submit@debbugs.gnu.org; Wed, 13 Jan 2016 20:45:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJWy7-0007dV-Cp for submit@debbugs.gnu.org; Wed, 13 Jan 2016 20:44:56 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:34259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJWy7-0007dR-9U for submit@debbugs.gnu.org; Wed, 13 Jan 2016 20:44:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJWy6-00020h-52 for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2016 20:44:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJWy5-0007ci-3B for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2016 20:44:54 -0500 Original-Received: from mail-vk0-x22e.google.com ([2607:f8b0:400c:c05::22e]:35520) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJWy4-0007ce-T9 for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2016 20:44:53 -0500 Original-Received: by mail-vk0-x22e.google.com with SMTP id k1so272126773vkb.2 for ; Wed, 13 Jan 2016 17:44:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=wje+oViWhtxfE9nyDUjU5aCnU4KE74CPgvgb1Y/oKEM=; b=D/rr/xWZHU3/DTxubgwceYV9jcAjH8BSr1Subt9fN9EsDDAPF8uZCNedN0WLOyeuWP eAhU0rmczfpEHj86y9FPP+g5CARt2+IrT2YH4AFybx/CK49Ow8NISskvcZG6JTJ+KIZM C4Vr/lnoZ4hjsPTneHFCqxxR8MtfttEtzvRACFX41f30YWVojQRBMmMTKACGM2AwEPfI dfsq+t7dH7mg4VKrrB4yqtHNFEUcIpemV6fbnDiUtindZkEIdG7SJ+Sy1ICOFk0HuxyY Elfa1cwA8xF9ZZoXrIh6kZ+5Eho0i99/RqevQbKeV0C0qY7UhFfHLfJijB4TV97XZPhg FP8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=wje+oViWhtxfE9nyDUjU5aCnU4KE74CPgvgb1Y/oKEM=; b=m8x8X/MPZPyl8PzAtDiElHjmUwi3nY8K27gh+ZCrOJnMyTjTLMfa0V/y+W0+UHGl9S k/GDnm1Q0IiIRxkoy1mZ1EbSX9k0Oyh50dt84wMZqe/j4dNlPM6TdIJ+KIbSrPjBlrzj ZkkBmJHWBk8zz8Aj8IJflMAaBseN3BNE2/+1+XhDgGU7L3tfWkFbt4F5NJKvgDfdRVva uz1s1fQyxbNlcRA7oQFscmB/kzU85OFj+P35bPGj3z2WuoJXcxW4sB9r3vXROtXOwx3S 7+b2TWroWiQDymOkQNlqi4peLhmO+FJzAgzvZTZ/1cFoHatYYXXSQwN4YwXztlj8NYs/ CgEg== X-Gm-Message-State: ALoCoQlxUZGmBoYCTxn/s/xj7vUuu4KrHSwyoStbBD+mDbNPPbCQJ9r0fsuoX8R2gFQaLEhjw/M9O4bCitfxqUzSuxmTkDwslg== X-Received: by 10.31.12.77 with SMTP id 74mr851896vkm.28.1452735892232; Wed, 13 Jan 2016 17:44:52 -0800 (PST) Original-Received: by 10.31.47.130 with HTTP; Wed, 13 Jan 2016 17:44:52 -0800 (PST) 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-Mailman-Approved-At: Wed, 13 Jan 2016 20:52:35 -0500 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111602 Archived-At: (setq c-basic-offset 8 tab-width 8 indent-tabs-mode t comment-style 'extra-line) (c-set-style "linux") Using the above settings the comment-dwim (with region active) indent the second and last lines with spaces instead of tabs. /* * void main() * { * int i; * int b; * printf("format string"); * } */ For better comprehension check out this http://stackoverflow.com/questions/34710840/c-comment-in-emacs-linux-kernel-style-v2 May I suggest the addition of a new comment-style option that does like this? /* void main() * { * int i; * int b; * printf("format string"); * } */ In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.6) of 2015-09-09 on foutrelis Windowing system distributor `The X.Org Foundation', version 11.0.11800000 System Description: Arch Linux Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Important settings: value of $LC_CTYPE: pt_BR.UTF-8 value of $LC_MONETARY: pt_BR.UTF-8 value of $LC_NUMERIC: pt_BR.UTF-8 value of $LC_TIME: pt_BR.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: tooltip-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 Recent messages: Load-path shadows: /home/geyslan/.emacs.d/elpa/helm-20151106.2158/helm-multi-match hides /home/geyslan/.emacs.d/elpa/helm-core-20151104.0/helm-multi-match Features: (shadow sort gnus-util mail-extr emacsbug message idna format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils jka-compr find-func help-fns sregex re-builder debug tabify cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs help-mode go-mode-autoloads info easymenu package epg-config edmacro kmacro cl-loaddefs cl-lib time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 132515 7051) (symbols 48 21866 0) (miscs 40 226 747) (strings 32 23818 4361) (string-bytes 1 883190) (vectors 16 12839) (vector-slots 8 428611 6669) (floats 8 75 442) (intervals 56 799 191) (buffers 960 17) (heap 1024 45432 1517))