[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#60270: closed (29.0.60; c-ts-mode: Comments are not indented right o
From: |
GNU bug Tracking System |
Subject: |
bug#60270: closed (29.0.60; c-ts-mode: Comments are not indented right on auto indentation) |
Date: |
Sat, 14 Jan 2023 07:54:02 +0000 |
Your message dated Fri, 13 Jan 2023 23:53:21 -0800
with message-id <F9224D8B-E20D-49C6-B8B4-9073E59964C6@gmail.com>
and subject line Re: bug#60270: 29.0.60; c-ts-mode: Comments are not indented
right on auto indentation
has caused the debbugs.gnu.org bug report #60270,
regarding 29.0.60; c-ts-mode: Comments are not indented right on auto
indentation
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)
--
60270: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60270
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message ---
Subject: |
29.0.60; c-ts-mode: Comments are not indented right on auto indentation |
Date: |
Fri, 23 Dec 2022 15:00:40 +0530 |
In c-ts-mode, comments are indented wrong. Say for example, if a C
source file contains the following content:
/**
* @some_func:
* @arg1:
*/
and if I select all and indent with C-x h TAB, I get the following:
/**
* @some_func:
* @arg1:
*/
But I expect to get the following:
/**
* @some_func:
* @arg1:
*/
In GNU Emacs 29.0.60 (build 9, x86_64-pc-linux-gnu, GTK+ Version
3.24.35, cairo version 1.16.0) of 2022-12-23 built on purism
Repository revision: 5a34e7c86ca1bfd5bc6ae362ae25c02d21ec0315
Repository branch: emacs-29
Windowing system distributor 'The X.Org Foundation', version
11.0.12101004
System Description: Debian GNU/Linux bookworm/sid
Configured using:
'configure --prefix=/usr'
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB
Important settings:
value of $LANG: en_IN.UTF-8
value of $XMODIFIERS: @im=ibus
locale-coding-system: utf-8-unix
Major mode: C
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
show-paren-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
line-number-mode: t
indent-tabs-mode: t
transient-mark-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search time-date subr-x mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
cl-extra help-mode c-ts-mode treesit cl-seq cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric
uniquify ediff-hook vc-hooks lisp-float-type elisp-mode 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 lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process
emacs)
Memory information:
((conses 16 61243 10622)
(symbols 48 7256 0)
(strings 32 20401 1361)
(string-bytes 1 738706)
(vectors 16 13101)
(vector-slots 8 185051 13241)
(floats 8 28 214)
(intervals 56 274 0)
(buffers 984 11))
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#60270: 29.0.60; c-ts-mode: Comments are not indented right on auto indentation |
Date: |
Fri, 13 Jan 2023 23:53:21 -0800 |
Yuan Fu <casouri@gmail.com> writes:
>> On Jan 11, 2023, at 1:30 AM, Yuan Fu <casouri@gmail.com> wrote:
>>
>>
>>
>>> On Jan 10, 2023, at 2:13 AM, Mohammed Sadiq <sadiq@sadiqpk.org> wrote:
>>>
>>> On 2023-01-10 10:58, Yuan Fu wrote:
>>>> Ah, right. Now it’s fixed. Thanks!
>>>> Yuan
>>>
>>> This broke the following comment styles:
>>>
>>> /* some comment
>>> */
>>>
>>> indentation of above code gives:
>>>
>>> /* some comment
>>> */
>>>
>>>
>>> Also:
>>>
>>> /*
>>> * some comment
>>> */
>>>
>>> where I expect:
>>>
>>> /*
>>> * some comment
>>> */
>>
>> This is easy to fix, I’ll push a fix soon.
>
> I pushed the fix.
>
>>
>>>
>>> If there are ways to add automated tests, it would be nice so that
>>> these won't be broken when fixing something else.
>>
>> I agree. I have been busy fixing all sorts of bugs and haven’t go around to
>> it :-(
>
> I added the c-ts-mode tests you had in the patch.
I added some more indent and filling tests. Now I think this can be
closed, yay!
Yuan
--- End Message ---
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#60270: closed (29.0.60; c-ts-mode: Comments are not indented right on auto indentation),
GNU bug Tracking System <=