Received: (at 71205) by debbugs.gnu.org; 1 Mar 2025 02:18:56 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 28 21:18:56 2025 Received: from localhost ([127.0.0.1]:56108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1toCRL-0006Qk-LZ for submit <at> debbugs.gnu.org; Fri, 28 Feb 2025 21:18:56 -0500 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:42039) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1toCRI-0006Q1-Pw for 71205 <at> debbugs.gnu.org; Fri, 28 Feb 2025 21:18:53 -0500 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-5dccaaca646so5227502a12.0 for <71205 <at> debbugs.gnu.org>; Fri, 28 Feb 2025 18:18:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740795526; x=1741400326; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=8I9MF3TfajJBKNP87ydC/wCeUUaRxmEg75jSDEf/AtE=; b=aUqVNg8tI7LCJxrB2UK252vYAvvqo/bc2lYtp2BxF+upLXVIOkwsRC2xRbn01qYGR/ iAE+I4EzAiRrS1QC7B92B9wUJWXJ22z9CSMh0qoRAwCUuaUvLDGf4FygqxOIBf21JWam 9cVeWKO8iv7vxcYvrQ8LKCV4JaoViTDh+XRNICdfJ01vJWVNEKNWh3rBwk5X7oRIRbNl KHYS6HlpNnuAon3qW6e1y3pC/NV61nshBvPnASrnwnayLx57wCQmC4Es8G5OK7HDNRud kNfSff8AQuhDzNP1kk6fWIfL+SU7ausjTm30Tsz/o6yJx8tkUmVFsV5q0ZjbSUlxEtae xG4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740795526; x=1741400326; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=8I9MF3TfajJBKNP87ydC/wCeUUaRxmEg75jSDEf/AtE=; b=hY/TkTP3VtrEoe3Egi4F8SspLhfE3cLH61ZTTLF/sGqW4wSgVL0qJjQhrp/hH3JgPG j4GlMRQN22iOy4WZqK6qtYjAVs/UnDY7vCSxYAyVM/6jtXGSKabwcRLzq5KFIcJdCKc0 wt2SUHU+BcW5m5PNUCqkQWURcKQ2WCwEUgIJXPeRH3O8848YWQpLm7UKIhXH8ik0bOHq rBm1qAxcRL1PQKhrBPMSIwfcTuxn/rpKmm5fA7dmp0WavH5z0gn0loDtuIcnOwMBocXn PeO8qlccNrPRofA8q9WHDxlhgyhhKzPanddryvWa8tOoBwDM40WThB7++HH6v505kQKm ghsA== X-Forwarded-Encrypted: i=1; AJvYcCVZPPcr4LvKBIjcgfbRgQdIMlIKBndtZgmRJA1hCOmJM3fWgUy2ynodetqEreHIUxOYMqCzmQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxU1NF0BdEo706wKngQTWRtjom8TBEWZIPc/mFVE9FmfbjJ0LoR iBnoyMgb4nkFFtQzhZWZ8jERkHIa5R+OJC1dJ1Hhy+1CCWPMARgHmWmqW7qpSEweiKnzv50d+/3 joM7PHtLIDwCTbSVDyqIQhv2upd4+1YVI6AE= X-Gm-Gg: ASbGncvzET7ve8mEnqx+Y5ctoZiqUagCvFJD705v5IBRy1rQoU3Iufh8rdENWLTxrYB LGVp7DPpwS33A+z+HlWUYck3CTRDkvJy1hPvQ2cIAWDveAmiQI1k861KHQJtuT+GxInjyP5oDU5 hOrLlIf+gXHWNRbR6QPdEFQR6PxQ0= X-Google-Smtp-Source: AGHT+IH486sVX4u5dy81EDwQYbKaPbWQQ+QlEoR1esXl6yWbFPXKR9I1BUYgHO1M9qqPHpsRh0fP3WXkyqKZOwNrW2I= X-Received: by 2002:a05:6402:847:b0:5e4:95fc:d748 with SMTP id 4fb4d7f45d1cf-5e4bfaa5d3bmr9809451a12.5.1740795526367; Fri, 28 Feb 2025 18:18:46 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 28 Feb 2025 18:18:45 -0800 From: Stefan Kangas <stefankangas@HIDDEN> In-Reply-To: <8103A524-0785-4BEB-9744-F755A74B6B12@HIDDEN> References: <0cbf7e4d-7143-4d7b-82f9-f710110a092b@HIDDEN> <867cfhxa8o.fsf@HIDDEN> <8103A524-0785-4BEB-9744-F755A74B6B12@HIDDEN> MIME-Version: 1.0 Date: Fri, 28 Feb 2025 18:18:45 -0800 X-Gm-Features: AQ5f1JqA-j8GJQa98xJbkfNUaKqMkwydoxFfM3UmwDP5w520QDW3f04T-Sbm77Y Message-ID: <CADwFkmnbsoubLu0PFqh_4KpcxkHn0jUnEA08fnhixjKoPaVsMQ@HIDDEN> Subject: Re: bug#71205: 29.3; Automatic indentation of c-ts-mode doesn't work well for me. To: Yuan Fu <casouri@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 71205 Cc: Eli Zaretskii <eliz@HIDDEN>, =?UTF-8?B?5bed5pysIOeQouS6jChEci5TYy5LQVdBTU9UTywgVGFrdWppKQ==?= <kawamoto.takuji@HIDDEN>, 71205 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Yuan Fu <casouri@HIDDEN> writes: >> On May 26, 2024, at 1:12=E2=80=AFAM, Eli Zaretskii <eliz@HIDDEN> wrote: >> >>> Date: Sun, 26 May 2024 13:32:37 +0900 >>> From: =E5=B7=9D=E6=9C=AC =E7=90=A2=E4=BA=8C >>> (Dr.Sc.KAWAMOTO, Takuji) <kawamoto.takuji@HIDDEN> >>> >>> 1. Start emacs. >>> 2. Open the C source code file and write the following content. >>> >>> ----------- c source code file begins ------------- >>> void test(void) >>> { >>> do=F0=9F=94=B3 >>> ----------- c source code file ends --------------- >>> >>> 3. Place the cursor after `do` and press Return. >>> >>> Expected behaviour is automatic indentation. I want to move the cursor >>> to the 5th column of the next line. >>> However, the observed behavior is NOT indentation. The cursor moves to >>> the 1st column of the next line. >> >> I think this is because the above source code fails to parse. If you >> add a closing brace after the "do" line, and then repeat your recipe, >> the cursor goes to column 3. >> >> Yuan, can you please look into this? > > Thanks for your detailed report, Kawamoto san. Yes, this is due to the so= urce > code not being complete (missing closing brackets). For the moment, I sug= gest > turning on electric-pair-mode which automatically adds closing brackets. > > Yuan Should we therefore close this bug report, or is there more to do here? Thanks in advance.
bug-gnu-emacs@HIDDEN
:bug#71205
; Package emacs
.
Full text available.Received: (at 71205) by debbugs.gnu.org; 7 Jun 2024 03:50:39 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 06 23:50:38 2024 Received: from localhost ([127.0.0.1]:41987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sFQcg-0000kz-9S for submit <at> debbugs.gnu.org; Thu, 06 Jun 2024 23:50:38 -0400 Received: from mail-pg1-f181.google.com ([209.85.215.181]:42146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <kawamoto.takuji@HIDDEN>) id 1sFFRb-0002kW-CH for 71205 <at> debbugs.gnu.org; Thu, 06 Jun 2024 11:54:30 -0400 Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-6c55e3d2740so838586a12.0 for <71205 <at> debbugs.gnu.org>; Thu, 06 Jun 2024 08:54:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717689187; x=1718293987; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=N3JjjmkOTlFCs3ZSU9fniu03TSWWvotq79WuyhQhPN8=; b=Y6aUDEgPfLj/+yADiPbrrjz1VBPnZEYrZ3wcFMg/Dl5NdT35PFSzt9m4ujneCj3ux/ CyzNpHctiTYNr2AhAXEkdKx27XvMzKcftipyYKwg3hitTxyuyXmiNMs70EOfFSo74d3I N2I31zXtJSqje5+uJpSTuQASmdmVCMX7XiOpZ9xwu4nBY1Usfa5K1TOlL3JLVL7oH826 jU5BECzfPMGyW1vqQou/qexesxaI81RzXAb5vPRbMRfBkMkdFiE69V2iT5zG9SSlos7d WGF0Wv1L02YCY4oY3YaQOJlo8Pl18LIDuSw6uZed0iGUg35D8fUPf5sgTvT/AzH6QTFA picQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717689187; x=1718293987; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=N3JjjmkOTlFCs3ZSU9fniu03TSWWvotq79WuyhQhPN8=; b=IK7yKmXZYsQTESBcOsuMsEVX0IN8r6hMyyyAYGiCVArPvkplO8YIf3SS9vnUfIn2gc DZ6UUG6h4KLAq9bXd7BXJ+lBVbUEMUQeoUIgoIZY7kG6oVYreb4wvp2qVRX6Tww32OJw vrgTQbb57rcXUf2yeVraem5OHlCvhhL33owJfOGmw3PGQ/dbVBvsIJrsLVTvlKqo1mCA iWRfIUhkCtJprjDaI15JsbrXOWbaEEP7RtspsHFcxL09UnsOfrBje7you8RrZQTESMa0 NsV3PtsQQ/iPo7AdbK/pW0Xz0bM4c5zcDlTjmUnIGcloRtlD8AaNDCcgfFeNp842os4a eFFQ== X-Gm-Message-State: AOJu0Yw91SroVFFfb6MuRpB6lZOrIIbq4XnBJbZ5g9Lw7TVYZFH17QM3 pjDKZzFWsEPE69e7ULuJRP3n1wpm9XoZEhb/zch1TgOxzWYF7elp X-Google-Smtp-Source: AGHT+IHd3pta5nbFdHrfrunBNmsNUSEAlIShj/7T049u3ZgHr835PXIPOHflJPk7s6FGOPLUBKhrLQ== X-Received: by 2002:a17:90b:903:b0:2c1:a77c:33fb with SMTP id 98e67ed59e1d1-2c2b8991346mr115392a91.6.1717689186700; Thu, 06 Jun 2024 08:53:06 -0700 (PDT) Received: from [192.168.31.26] (160.245.232.153.ap.dti.ne.jp. [153.232.245.160]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c28067b118sm3711040a91.26.2024.06.06.08.53.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Jun 2024 08:53:06 -0700 (PDT) Message-ID: <c46d6cbf-57d7-4352-abd6-3aba2de028a1@HIDDEN> Date: Fri, 7 Jun 2024 00:53:02 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#71205: 29.3; Automatic indentation of c-ts-mode doesn't work well for me. To: Yuan Fu <casouri@HIDDEN>, Eli Zaretskii <eliz@HIDDEN> References: <0cbf7e4d-7143-4d7b-82f9-f710110a092b@HIDDEN> <867cfhxa8o.fsf@HIDDEN> <8103A524-0785-4BEB-9744-F755A74B6B12@HIDDEN> Content-Language: en-US From: =?UTF-8?B?5bed5pysIOeQouS6jCAoRHIuU2MuS0FXQU1PVE8sVGFrdWppKQ==?= <kawamoto.takuji@HIDDEN> In-Reply-To: <8103A524-0785-4BEB-9744-F755A74B6B12@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 71205 X-Mailman-Approved-At: Thu, 06 Jun 2024 23:50:36 -0400 Cc: 71205 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Thanks for your answer, Mr Yuan. This answer solved the original problem. Instead, I think a new problem has been revealed. What we should expect is for the cursor to move to column 5, because that's gnu style. But it actually moves to column 3. Thanks all. On 2024/06/06 14:25, Yuan Fu wrote: > >> On May 26, 2024, at 1:12 AM, Eli Zaretskii <eliz@HIDDEN> wrote: >> >>> Date: Sun, 26 May 2024 13:32:37 +0900 >>> From: 川本 琢二 >>> (Dr.Sc.KAWAMOTO, Takuji) <kawamoto.takuji@HIDDEN> >>> >>> 1. Start emacs. >>> 2. Open the C source code file and write the following content. >>> >>> ----------- c source code file begins ------------- >>> void test(void) >>> { >>> do🔳 >>> ----------- c source code file ends --------------- >>> >>> 3. Place the cursor after `do` and press Return. >>> >>> Expected behaviour is automatic indentation. I want to move the cursor >>> to the 5th column of the next line. >>> However, the observed behavior is NOT indentation. The cursor moves to >>> the 1st column of the next line. >> I think this is because the above source code fails to parse. If you >> add a closing brace after the "do" line, and then repeat your recipe, >> the cursor goes to column 3. >> >> Yuan, can you please look into this? > Thanks for your detailed report, Kawamoto san. Yes, this is due to the source code not being complete (missing closing brackets). For the moment, I suggest turning on electric-pair-mode which automatically adds closing brackets. > > Yuan
bug-gnu-emacs@HIDDEN
:bug#71205
; Package emacs
.
Full text available.Received: (at 71205) by debbugs.gnu.org; 6 Jun 2024 06:40:07 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 06 02:40:07 2024 Received: from localhost ([127.0.0.1]:42418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sF6n9-0001j0-5F for submit <at> debbugs.gnu.org; Thu, 06 Jun 2024 02:40:07 -0400 Received: from mail-qt1-f170.google.com ([209.85.160.170]:42063) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <casouri@HIDDEN>) id 1sF6n6-0001iL-Gs for 71205 <at> debbugs.gnu.org; Thu, 06 Jun 2024 02:40:05 -0400 Received: by mail-qt1-f170.google.com with SMTP id d75a77b69052e-4402066471cso4995431cf.0 for <71205 <at> debbugs.gnu.org>; Wed, 05 Jun 2024 23:39:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717655924; x=1718260724; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=x4YvfJA86gj0w4j7aWfGyPcLPUKJihtn5SIdJia9mS8=; b=JY47P08oIvtEDwDSDisdOoekNrjCl3O1W07QqOpMllpwYqk0VNy4xpWRBDT+Lpxo4e VzIM8DFhjXUEKvWCPMJf/FaN3qXIg7zexQ03HZH4xJ60UElXZBtYxh2HpWB7FT8N9gsr wHZEN2xE9aD36SUSmI3zsARZExJmea1+lLsvA/hc8AuC8EJaolrPnP2VHqt2Y5SjEDA9 2k6caTdSn6Q2J62ahHd514CYevh4hoAsQXYAfh9SDa+O6T4Njg1Ae5BSwe8e+BxMKKKc xsOuu+LdI+L9NoC8Tx8Ce7AbPo4rMFZB8tn4NjcpnDoEUYxf9bVedeMI6cNgeFDUsRgw 2PHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717655924; x=1718260724; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=x4YvfJA86gj0w4j7aWfGyPcLPUKJihtn5SIdJia9mS8=; b=n3PHmsQKGonpu3W+/3xip+Ls5IfKrjf0bxnJwivUiPgisrwyYxivu8S6xVel9P6xkM qMTSMX3xYEQSbYLS2hP8L9WKaE4mh2zrmleUHgnvMUQ8t8M8E52ghf1pf0xUHyhvLx7S soY0nNhWDe+vy2l0euSP9vJMO7m12x4YK3gxm9TKIlv9q2djP2ETmKBRjdBl+Hv8bV0j x2Zgc/SgeuCze0LLbIAvwPB7OiakP+ocx0bpLIiRHtsI0DNQiKH9soLZr7Iqx9yWtPCV rQuSy68MaqTIJtI9wLNLA5bGuVBGw/ke8P0HopnP68XzwkeWw0Cqx2fxEmjnRIxBt5Nh uG1g== X-Forwarded-Encrypted: i=1; AJvYcCXZq+sIOxUM+0B7JKCUovAmw+XWkfMqAE+84LwP14Gy590+Kae8fyuifNjedWDOdO9MkFEKfdV10tt5cgV+AeKHgSntT90= X-Gm-Message-State: AOJu0YxtKx7Ya8nfibBibfUkSGoGHwmFcwRB4pMGCMCHoBotgsWC4lNf n1mzrC6rYM9m79qZyH4H56X7K9LZCHzF5BcyN+1igmD2BOyVC95+SmkTjA== X-Google-Smtp-Source: AGHT+IFLdhoZc6eqF907IvwGfi7Y5lXNnS2Wla5IiW0CmjNdpZZf/bBv0rPZinWnupjGgtMPQbsO/w== X-Received: by 2002:a17:903:2444:b0:1f2:fe12:b7be with SMTP id d9443c01a7336-1f6b8f1c342mr23594425ad.32.1717651570367; Wed, 05 Jun 2024 22:26:10 -0700 (PDT) Received: from smtpclient.apple ([2601:646:8f81:f810:6d47:6e61:bc5f:51a3]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6bd7f4c61sm4892875ad.269.2024.06.05.22.26.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jun 2024 22:26:09 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: bug#71205: 29.3; Automatic indentation of c-ts-mode doesn't work well for me. From: Yuan Fu <casouri@HIDDEN> In-Reply-To: <867cfhxa8o.fsf@HIDDEN> Date: Wed, 5 Jun 2024 22:25:58 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <8103A524-0785-4BEB-9744-F755A74B6B12@HIDDEN> References: <0cbf7e4d-7143-4d7b-82f9-f710110a092b@HIDDEN> <867cfhxa8o.fsf@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> X-Mailer: Apple Mail (2.3774.600.62) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 71205 Cc: =?utf-8?B?IuW3neacrCDnkKLkuowoRHIuU2MuS0FXQU1PVE8sIFRha3VqaSki?= <kawamoto.takuji@HIDDEN>, 71205 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) > On May 26, 2024, at 1:12=E2=80=AFAM, Eli Zaretskii <eliz@HIDDEN> = wrote: >=20 >> Date: Sun, 26 May 2024 13:32:37 +0900 >> From: =E5=B7=9D=E6=9C=AC =E7=90=A2=E4=BA=8C >> (Dr.Sc.KAWAMOTO, Takuji) <kawamoto.takuji@HIDDEN> >>=20 >> 1. Start emacs. >> 2. Open the C source code file and write the following content. >>=20 >> ----------- c source code file begins ------------- >> void test(void) >> { >> do=F0=9F=94=B3 >> ----------- c source code file ends --------------- >>=20 >> 3. Place the cursor after `do` and press Return. >>=20 >> Expected behaviour is automatic indentation. I want to move the = cursor=20 >> to the 5th column of the next line. >> However, the observed behavior is NOT indentation. The cursor moves = to=20 >> the 1st column of the next line. >=20 > I think this is because the above source code fails to parse. If you > add a closing brace after the "do" line, and then repeat your recipe, > the cursor goes to column 3. >=20 > Yuan, can you please look into this? Thanks for your detailed report, Kawamoto san. Yes, this is due to the = source code not being complete (missing closing brackets). For the = moment, I suggest turning on electric-pair-mode which automatically adds = closing brackets. Yuan=
bug-gnu-emacs@HIDDEN
:bug#71205
; Package emacs
.
Full text available.Received: (at 71205) by debbugs.gnu.org; 26 May 2024 08:12:43 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 26 04:12:43 2024 Received: from localhost ([127.0.0.1]:38301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sB8zi-0007lq-Qt for submit <at> debbugs.gnu.org; Sun, 26 May 2024 04:12:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1sB8zf-0007lc-RN for 71205 <at> debbugs.gnu.org; Sun, 26 May 2024 04:12:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1sB8zS-0000Ld-2y; Sun, 26 May 2024 04:12:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=aIdWmajKqFG7gtt0WVtIsIAibsPQdZfXKc/rh1L9BkM=; b=KfHXZ9b30yYHkab1IZfm XfmFD64qTht8DRoJZqSblhSCOyfRhZu49kIhSQ0ooS/zToXLZDIBe3Axq1C19K0HCqoqfEV3nA/d8 pXQ1LU6TiDxfiMt0jd5QyupeX7QW4feNFYA4s+sn7DpXzcB9pGqMlT0CzrFIICCBaIDOZr/RCul9v aus5358r+coFeq1XzlLpndQWoHC92W1Ps86y2+GWOUSgUCBVxvwkNuJoYiFGa7t+kA147ha8sh1oj vscHQIeFJ5HcPu/hM4Ls6U7qEGWAySHwfoSvOFJTGM8QAY5DaIbmzD5Y108ZJdulAVaHrK3GjkjZ7 Kx3TIebCu/j42A==; Date: Sun, 26 May 2024 11:12:23 +0300 Message-Id: <867cfhxa8o.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: =?utf-8?Q?=E5=B7=9D=E6=9C=AC_=E7=90=A2=E4=BA=8C=28Dr=2ESc=2EKAWAMOTO?= =?utf-8?Q?=2C_Takuji=29?= <kawamoto.takuji@HIDDEN>, Yuan Fu <casouri@HIDDEN> In-Reply-To: <0cbf7e4d-7143-4d7b-82f9-f710110a092b@HIDDEN> (kawamoto.takuji@HIDDEN) Subject: Re: bug#71205: 29.3; Automatic indentation of c-ts-mode doesn't work well for me. References: <0cbf7e4d-7143-4d7b-82f9-f710110a092b@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71205 Cc: 71205 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Sun, 26 May 2024 13:32:37 +0900 > From: 川本 琢二 > (Dr.Sc.KAWAMOTO, Takuji) <kawamoto.takuji@HIDDEN> > > 1. Start emacs. > 2. Open the C source code file and write the following content. > > ----------- c source code file begins ------------- > void test(void) > { > do🔳 > ----------- c source code file ends --------------- > > 3. Place the cursor after `do` and press Return. > > Expected behaviour is automatic indentation. I want to move the cursor > to the 5th column of the next line. > However, the observed behavior is NOT indentation. The cursor moves to > the 1st column of the next line. I think this is because the above source code fails to parse. If you add a closing brace after the "do" line, and then repeat your recipe, the cursor goes to column 3. Yuan, can you please look into this?
bug-gnu-emacs@HIDDEN
:bug#71205
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 26 May 2024 07:37:33 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 26 03:37:33 2024 Received: from localhost ([127.0.0.1]:38245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sB8Rg-0006v3-HN for submit <at> debbugs.gnu.org; Sun, 26 May 2024 03:37:33 -0400 Received: from lists.gnu.org ([209.51.188.17]:46358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <kawamoto.takuji@HIDDEN>) id 1sB5ZD-00029h-LK for submit <at> debbugs.gnu.org; Sun, 26 May 2024 00:33:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <kawamoto.takuji@HIDDEN>) id 1sB5Z5-0003G0-Dp for bug-gnu-emacs@HIDDEN; Sun, 26 May 2024 00:32:59 -0400 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <kawamoto.takuji@HIDDEN>) id 1sB5Yp-0006oZ-Im for bug-gnu-emacs@HIDDEN; Sun, 26 May 2024 00:32:59 -0400 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1f480624d04so4051295ad.2 for <bug-gnu-emacs@HIDDEN>; Sat, 25 May 2024 21:32:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716697960; x=1717302760; darn=gnu.org; h=content-transfer-encoding:subject:to:from:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=B8kGLpAsGJvMrKTXMMq427a9xJg2OYpJbYdfnlJt9aI=; b=C8h8rC18JQtEn19eFHh5vVEqUjICa7EelyDLrPbWj6yTX3n9OXJE1hrBsRZozfsnXA ot/yQ40ih2rqIDcnb1uTJYXlJ7GjiRk1FdYAQwHEh3i+7SJQGGg/N9r+FbYdrFO7J/AY BZ/j6eh90o3XYLMSRq8JNMmsdUB+VpI6vLkIOIv+2HuJob3lUUtLkkYTyeqEjbLQCZft DFKOsF+NB6my1Dn7wWuQ8BTIz1n9/8mOIJA3hEanqvgvfbGZ4Q7jCQi7LfYKM9UilFEZ erLWBqMuLS+9Nvdym93hxax0EtUjkUb1vLovfWHiRFe8E5IkCCGU2Pxv7+0bOkDBgL98 1q8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716697960; x=1717302760; h=content-transfer-encoding:subject:to:from:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=B8kGLpAsGJvMrKTXMMq427a9xJg2OYpJbYdfnlJt9aI=; b=Ckw+WTSlmn0FG6FfrBKHitNYD9/QWycd6A6g2dfg1eybCmabBCiXW86MOj9Bmi7Xjh Lh6LRYk9ofe6TvMti9RHCVr2MJRL/OjDh/hmlMc+vmrYTwmQrI7Jec+AJ7xQRe1S7gFV hktPS9ukkH+dcl64K3ppnSR5Nn04i1qyE7XrJ6HJuSCpsIkCLO6rh7cTde5ajUZRMlm5 8Zjhb0bmTs0AYSrwKuaseOMRBaM4ok/t8pdcJjYnkdWH85vQra5V9831gwOWlKZjSUdT oUnI5zVJi53jUIMH+REY8KFOwykILccbU/3hV6tb2Y+D1gz4eWKuvYzsLbP3gqMyk4a8 WzaQ== X-Gm-Message-State: AOJu0YwPSF4yVheOSDhdkz9oqZaKsJPf6YlImlcJDaBGLjSoymmyyk11 Zjdr7CVNBukdKVdC5Q1hDb0IP7ki8f2rSROKtFAdnLWTLv10KyUt4xzx804s X-Google-Smtp-Source: AGHT+IG47jL+ZRVGTPoErux1eC8QpMu2gVj2K2c9uhERS4B2J4ieppFq9+Lcbvn33H8l/uesS+IIiA== X-Received: by 2002:a17:903:230a:b0:1f3:35ff:ad25 with SMTP id d9443c01a7336-1f449900e24mr92156075ad.63.1716697960082; Sat, 25 May 2024 21:32:40 -0700 (PDT) Received: from [192.168.31.26] (178.234.156.114.ap.dti.ne.jp. [114.156.234.178]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f44c9a4fadsm37440005ad.224.2024.05.25.21.32.38 for <bug-gnu-emacs@HIDDEN> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 25 May 2024 21:32:39 -0700 (PDT) Message-ID: <0cbf7e4d-7143-4d7b-82f9-f710110a092b@HIDDEN> Date: Sun, 26 May 2024 13:32:37 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: =?UTF-8?B?5bed5pysIOeQouS6jCAoRHIuU2MuS0FXQU1PVE8sVGFrdWppKQ==?= <kawamoto.takuji@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 29.3; Automatic indentation of c-ts-mode doesn't work well for me. Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=kawamoto.takuji@HIDDEN; helo=mail-pl1-x62c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 26 May 2024 03:37:31 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) Dear emacs-devel maintainers. Automatic indentation of c-ts-mode doesn't work well for me. I tried it in two environments, and neither worked properly. - homebrew cask emacs 29.3 on MacBookAir M1 2020 Sonoma 14.4.1 - emacs 29.1 on FreeBSD 13.2-RELEASE-p3 I have elpa package `~/.emacs.d/elpa/treesit-auto-20240511.1425` . I have the following language bundles in `~/.emacs.d/tree-sitter` on MacBookAir, -rwxr-xr-x 1 XXXXX staff 664K 5 23 17:41 libtree-sitter-c.dylib -rwxr-xr-x 1 XXXXX staff 3.8M 5 23 17:41 libtree-sitter-cpp.dylib -rwxr-xr-x 1 XXXXX staff 648K 5 23 17:44 libtree-sitter-python.dylib and on FreeBSD, -rwxr-xr-x 1 XXXXX XXXXX 618K May 23 23:12 libtree-sitter-c.so -rwxr-xr-x 1 XXXXX XXXXX 3.7M May 23 23:12 libtree-sitter-cpp.so I have a simple `~/.emacs.d/init.el` the follows, -------------- init.el begins --------------------- (use-package treesit :config (setq treesit-font-lock-level 4)) (use-package treesit-auto :ensure t :config (setq treesit-auto-install t) (global-treesit-auto-mode)) ---------------- init.el ends --------------------- The steps to reproduce are as follows. 1. Start emacs. 2. Open the C source code file and write the following content. ----------- c source code file begins ------------- void test(void) { do🔳 ----------- c source code file ends --------------- 3. Place the cursor after `do` and press Return. Expected behaviour is automatic indentation. I want to move the cursor to the 5th column of the next line. However, the observed behavior is NOT indentation. The cursor moves to the 1st column of the next line. For reference, the column position of `do` was moved correctly the 3rd column with automatic indentation. Thanx. In GNU Emacs 29.3 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.6.6 (Build 21G646)) of 2024-03-24 built on armbob.lan Windowing system distributor 'Apple', version 10.3.2487 System Description: macOS 14.4.1 Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules 'CFLAGS=-DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT' --with-x-toolkit=no' Configured features: ACL GLIB GMP GNUTLS JPEG JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=uim locale-coding-system: utf-8-unix Major mode: C/* Minor modes in effect: global-treesit-auto-mode: t 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: /Users/kawamoto/.emacs.d/elpa/transient-20230120.1559/transient hides /Applications/Emacs.app/Contents/Resources/lisp/transient /Users/kawamoto/.emacs.d/elpa/use-package-20210207.1926/use-package-jump hides /Applications/Emacs.app/Contents/Resources/lisp/use-package/use-package-jump /Users/kawamoto/.emacs.d/elpa/use-package-20210207.1926/use-package-ensure hides /Applications/Emacs.app/Contents/Resources/lisp/use-package/use-package-ensure /Users/kawamoto/.emacs.d/elpa/use-package-20210207.1926/use-package-core hides /Applications/Emacs.app/Contents/Resources/lisp/use-package/use-package-core /Users/kawamoto/.emacs.d/elpa/use-package-20210207.1926/use-package-delight hides /Applications/Emacs.app/Contents/Resources/lisp/use-package/use-package-delight /Users/kawamoto/.emacs.d/elpa/use-package-20210207.1926/use-package-diminish hides /Applications/Emacs.app/Contents/Resources/lisp/use-package/use-package-diminish /Users/kawamoto/.emacs.d/elpa/use-package-20210207.1926/use-package hides /Applications/Emacs.app/Contents/Resources/lisp/use-package/use-package /Users/kawamoto/.emacs.d/elpa/use-package-20210207.1926/use-package-bind-key hides /Applications/Emacs.app/Contents/Resources/lisp/use-package/use-package-bind-key /Users/kawamoto/.emacs.d/elpa/bind-key-20210210.1609/bind-key hides /Applications/Emacs.app/Contents/Resources/lisp/use-package/bind-key /Users/kawamoto/.emacs.d/elpa/use-package-20210207.1926/use-package-lint hides /Applications/Emacs.app/Contents/Resources/lisp/use-package/use-package-lint /Users/kawamoto/.emacs.d/elpa/csharp-mode-20210826.421/csharp-mode hides /Applications/Emacs.app/Contents/Resources/lisp/progmodes/csharp-mode /Users/kawamoto/.emacs.d/elpa/hierarchy-20190425.842/hierarchy hides /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/hierarchy Features: (shadow sort mail-extr emacsbug message yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils vc-dispatcher vc-svn c++-ts-mode c-ts-mode c-ts-common time-date treesit-auto use-package-ensure treesit cl-extra help-mode use-package-core ag-autoloads tex-site easy-mmode dap-mode-autoloads exec-path-from-shell-autoloads ggtags-autoloads gnuplot-autoloads helm-easymenu helpful-autoloads rx lsp-docker-autoloads lsp-treemacs-autoloads lsp-mode-autoloads markdown-preview-mode-autoloads multi-term-autoloads leaf-autoloads search-web-autoloads selected-autoloads tab-group-autoloads treemacs-all-the-icons-autoloads treemacs-evil-autoloads evil-autoloads goto-chg-autoloads treemacs-icons-dired-autoloads treemacs-magit-autoloads treemacs-persp-autoloads persp-mode-autoloads treemacs-projectile-autoloads treemacs-tab-bar-autoloads treemacs-autoloads treesit-auto-autoloads advice uuidgen-autoloads web-server-autoloads websocket-autoloads which-key-autoloads yaml-autoloads yasnippet-snippets-autoloads yasnippet-autoloads info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win 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 kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 97390 6196) (symbols 48 11132 0) (strings 32 36648 3094) (string-bytes 1 1326147) (vectors 16 17409) (vector-slots 8 243151 10031) (floats 8 35 24) (intervals 56 294 0) (buffers 984 12))
川本 琢二 (Dr.Sc.KAWAMOTO,Takuji) <kawamoto.takuji@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#71205
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.