From: Alan Mackenzie <acm@muc.de>
To: 22369@debbugs.gnu.org
Cc: "Geyslan G. Bem" <geyslan@gmail.com>
Subject: bug#22369: 24.5; comment-style 'extra-line' doesn't correctly indent with tabs
Date: 15 Jan 2016 12:42:31 -0000 [thread overview]
Message-ID: <20160115124231.67454.qmail__47542.5411169001$1452862130$gmane$org@mail.muc.de> (raw)
In-Reply-To: <mailman.2326.1452736388.843.bug-gnu-emacs@gnu.org>
Bug fixed in emacs-25 branch.
Bug report left open, due to a feature request in it.
--
Alan Mackenzie (Nuremberg, Germany).
In article <mailman.2326.1452736388.843.bug-gnu-emacs@gnu.org> you wrote:
> (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))
next prev parent reply other threads:[~2016-01-15 12:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-14 1:44 bug#22369: 24.5; comment-style 'extra-line' doesn't correctly indent with tabs Geyslan G. Bem
[not found] ` <mailman.2326.1452736388.843.bug-gnu-emacs@gnu.org>
2016-01-15 11:56 ` Alan Mackenzie
2016-01-15 12:11 ` Geyslan G. Bem
2020-09-17 17:38 ` Lars Ingebrigtsen
2020-09-17 19:21 ` Alan Mackenzie
2022-01-29 17:01 ` Lars Ingebrigtsen
2016-01-15 12:42 ` Alan Mackenzie [this message]
[not found] ` <20160115124231.67454.qmail@mail.muc.de>
2016-01-15 21:59 ` Geyslan G. Bem
[not found] ` <CAGG-pUQ8yN-VDKkfFq2-34PWfrpLtbSjRVXuJ_cQk8z-Edw=SQ@mail.gmail.com>
2016-01-18 11:14 ` Geyslan G. Bem
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='20160115124231.67454.qmail__47542.5411169001$1452862130$gmane$org@mail.muc.de' \
--to=acm@muc.de \
--cc=22369@debbugs.gnu.org \
--cc=geyslan@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.