[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23370: 25.0.92; (c-mode) align* defuns break when '[]' present in fu
From: |
Mohammed Sadik |
Subject: |
bug#23370: 25.0.92; (c-mode) align* defuns break when '[]' present in function arguments |
Date: |
Mon, 25 Apr 2016 13:17:26 +0530 |
align defuns don't work right when '[]' is present in arguments of
function definitions/declarations.
How to reproduce: create a file, say test.c with the following content:
int
main (int| argc,
char *argv[]);
Now try to align the content column wise using M-x align-current.
This fails to align the content right.
This may also be tested by selecting the whole buffer and using M-x
align, which doesn't work either.
When [] is replaced with *, it works right:
int
main (int| argc,
char **argv);
And do M-x align-current aligns the content right.
In GNU Emacs 25.0.92.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9)
of 2016-04-20 built on fedora.localdomain
Windowing system distributor 'Fedora Project', version 11.0.11800000
Configured features:
XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS
LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11
Important settings:
value of $LC_MONETARY: en_IN.UTF-8
value of $LC_NUMERIC: en_IN.UTF-8
value of $LC_TIME: en_IN.UTF-8
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=ibus
locale-coding-system: utf-8-unix
Major mode: C/l
Minor modes in effect:
tooltip-mode: t
global-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
abbrev-mode: t
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
main.c has auto save data; consider M-x recover-this-file
Making completion list... [2 times]
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec epg epg-config gnus-util mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils align cl-extra
help-mode cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles
cc-align cc-engine cc-vars cc-defs cl-loaddefs pcase cl-lib time-date
mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset
image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core 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 charscript case-table epa-hook
jka-cmpr-hook help simple abbrev 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 dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)
Memory information:
((conses 16 106496 4182)
(symbols 48 21678 0)
(miscs 40 76 132)
(strings 32 19923 4846)
(string-bytes 1 693312)
(vectors 16 14194)
(vector-slots 8 448033 5758)
(floats 8 169 14)
(intervals 56 220 1)
(buffers 976 13)
(heap 1024 46786 1031))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#23370: 25.0.92; (c-mode) align* defuns break when '[]' present in function arguments,
Mohammed Sadik <=