From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.bugs Subject: bug#61245: 29.0.60; Should c-ts-mode-set-style be local by default? Date: Sat, 4 Feb 2023 15:34:14 -0800 Message-ID: References: <14710846-33B5-4CF6-8520-760BDEB9EE55@gmail.com> <83v8kjurfn.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32022"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61245@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 05 00:35:39 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pOS4I-00089D-Vv for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Feb 2023 00:35:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pOS3q-0007E3-N3; Sat, 04 Feb 2023 18:35:10 -0500 Original-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 ) id 1pOS3m-0007C6-Br for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2023 18:35:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pOS3i-0001Wa-U4 for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2023 18:35:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pOS3i-0001QG-2T for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2023 18:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Feb 2023 23:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61245 X-GNU-PR-Package: emacs Original-Received: via spool by 61245-submit@debbugs.gnu.org id=B61245.16755536765420 (code B ref 61245); Sat, 04 Feb 2023 23:35:02 +0000 Original-Received: (at 61245) by debbugs.gnu.org; 4 Feb 2023 23:34:36 +0000 Original-Received: from localhost ([127.0.0.1]:43602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOS3I-0001PM-Fy for submit@debbugs.gnu.org; Sat, 04 Feb 2023 18:34:36 -0500 Original-Received: from mail-pg1-f179.google.com ([209.85.215.179]:42985) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOS3E-0001P5-N8 for 61245@debbugs.gnu.org; Sat, 04 Feb 2023 18:34:35 -0500 Original-Received: by mail-pg1-f179.google.com with SMTP id n3so482084pgr.9 for <61245@debbugs.gnu.org>; Sat, 04 Feb 2023 15:34:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=3qOaE2N1bWfozq3zppCckGpqU+ZPyFHusjCVbZPYc+0=; b=WN+rIAoULe/x5M/Y4rrai5tGp7ddI1UIHuDQIxQpLM2inL5fRGi/K3Ola5iZR9N6zQ PlfIXJAJgs7lMV8jfNRozY0kOsnbKHTtNF2r6yP1NigSoOf05Cc8NfVJt1lgOYEVlgR2 cTXeviLpNXZQn8SOVuFKPBDayrd/9T2c4TFrnLWbMDHw3iTj81+5ccuPHWZ8EavWWEv5 v00Y35hmW8/v2v7xGwxTewIN8dFjuaecsz4gJm7p4sDARVN3dZNBYBpGYyFA2Pua97m/ KpjR/vFtHDY3qmij+8bpIxR8EQFNpWrjJy1DUu/GXdyM9pgFjB3NWpX9q3r3+cSGJmZG CAtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=3qOaE2N1bWfozq3zppCckGpqU+ZPyFHusjCVbZPYc+0=; b=YvGXh4rRlYIzLztMLfnVXKjDXHgZ8UeppEzmYGeU0jV/QPjLVkenDS+Z9j9QFeyfVF 7qJkiF8o2UFVK/vf+oVo++S+VJJe1Gj3XM/F0y1jp5YB3TNMmr23KhdbqO6EAMW+0IBN VKwPuR1ybqPiovJ9tPapQAb5B8lSo615JxbZGv/uEokjpOKfu9NacqrbGcd5LTw7yvm9 R2oL009DqLotlOPjou5vJUSRfhyv/MtAcMoWzI/dxRwQxX86BLrg7YD1tCdJfAhZNn7z Snhrq79DiEjxkDcJdPjeS5QkpkWWv9Css/Gv16Q21x9wB26zM22sqGazrfx0/ZZXmh8n 77Cw== X-Gm-Message-State: AO0yUKUXdJpad3jA7rveEUREm6QOo9MNNZx8BfdIX1xVOYSMU9XVddvu z9XZS35v64SzauSDnwr+UtIM8a3xWWc= X-Google-Smtp-Source: AK7set+JU9J4ywS05X0YrEoHvCslJy+84HLyA1q87pCI+o++qoP/kOL4qLHqbLMEZMSMu1awz/FqeQ== X-Received: by 2002:a05:6a00:1818:b0:58d:b8f8:5e2f with SMTP id y24-20020a056a00181800b0058db8f85e2fmr17837031pfa.10.1675553666421; Sat, 04 Feb 2023 15:34:26 -0800 (PST) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id r24-20020aa79638000000b00592d9d468e6sm4214704pfg.20.2023.02.04.15.34.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Feb 2023 15:34:26 -0800 (PST) In-Reply-To: <83v8kjurfn.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.300.101.1.3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254798 Archived-At: > On Feb 2, 2023, at 11:41 PM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Thu, 2 Feb 2023 18:45:31 -0800 >>=20 >> Normally this sort of function only affect the current buffer. >> c-set-style only sets the style for the current buffer, too. I wonder = if >> we should make c-ts-mode-set-style default to local, too? >=20 > Yes, the style is a buffer-local setting. Ok, I pushed a change that made c-ts-mode-set-style buffer-local, and = added c-ts-mode-set-global-style. Yuan=