From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Xiyue Deng Newsgroups: gmane.emacs.devel Subject: Re: An anonymous IRC user's opinion Date: Wed, 09 Oct 2024 22:14:32 -0700 Message-ID: <87r08ov8sn.fsf@debian-hx90.lan> References: <87plodsjsd.fsf@web.de> <865xq14dwp.fsf@gnu.org> <343c4d04-af53-4da2-9d1c-c616c74821e1@gutov.dev> <86plo8369c.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8624"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Notmuch/0.38.3 (https://notmuchmail.org) Emacs/29.4 (x86_64-pc-linux-gnu) Cc: johan.myreen@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii , Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 10 07:15:36 2024 Return-path: Envelope-to: ged-emacs-devel@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 1sylWR-00024f-SA for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Oct 2024 07:15:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sylVi-0000Uh-I7; Thu, 10 Oct 2024 01:14:50 -0400 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 1sylVe-0000UP-QM for emacs-devel@gnu.org; Thu, 10 Oct 2024 01:14:47 -0400 Original-Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sylVc-0002HU-Vn; Thu, 10 Oct 2024 01:14:46 -0400 Original-Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-7e9f955cb97so255485a12.3; Wed, 09 Oct 2024 22:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728537275; x=1729142075; darn=gnu.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=kBHHCENYyaqX4Jagq42hLnz+VBKTDt82cEiVkVmcp8Q=; b=RGEhO9lrvg34hBzYf4yP92AZqOFx0eD2FrodJb0tPtgF+171xBPDgHFWPJ7Bt7PzSz Kr93IUeS4BPSZhFghIuijpS/EFEir6tAXK+ouw1Gl9HEz3hCY4njB8idU2vdUZWz8Khn fZccbPgnhomcWI3SpVrWGzlQ8maiHWCSUzv/T5fxPZI5kjZsgLjeLVM0Iq/wNQqMXjI1 F3QTs84KVfvszHcUIiax90wf+G+NDzUxEc/Z5Ha4J+e5nG+4QBrxL/pZLOXW1aUpUkb4 qAd3CNqN8ccEYdwvvls4J/mtylO7yO7XlZtaO6qBtpcSRLIzfj2X8EBszF9vREul05O7 ELKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728537275; x=1729142075; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kBHHCENYyaqX4Jagq42hLnz+VBKTDt82cEiVkVmcp8Q=; b=vpG6DWaivGhxPMRh9mMfThJqeG8WXwm9Nb0pegyc5iTegN7knHE0+vnC9Tn2A5r+SF nvz9urpMDV6l3tB34vFLrSVVsDL7H5nZEY7OiwP0L9Vf0O4EMtLG2n/hSgNPIWiKbQVE bFWMlmjq1QNwUq9akDGk3rymuy07WMSXr5kgYu9fmC8uhGSa7Yg045Bqnamha096LXtl mRkXoU4cPLRTA0i84NYPsGqu1CP4NH7bbIF5/ncuFl9oLrnTFrHcdAtqG5dp9mkDl9jS vkdWnoA/yF5L8DfUy3tCRtdi7oToKRi6Vn9KnAG6TL4E/YIa3PTgHbNwIY3Y+gFmqTAi elMA== X-Forwarded-Encrypted: i=1; AJvYcCUM9n069icelvRhsEN+4rNh2fHflO/e1+AaF3d1p7qnItGY8ZCLQcHEMiV36KPDVEMTah7uj/4zb5Q5aw==@gnu.org X-Gm-Message-State: AOJu0YyQVe1yqtjWDYvHTWSEl6QRMG4EPIU7vWKCWgw4RxwIcENNPHdm CXWnVQdo6zx6m2gOMll6KQ7ZW8oC5Z0FaheAs16b8yrNNucIuEwjJIpNCQ== X-Google-Smtp-Source: AGHT+IE9oSMukAGVCFljXh6zAVSXQ5n2yyvNazOluGjjrtb5bqyfu7px757eT9dnq5n4znM72W8TDg== X-Received: by 2002:a17:903:1103:b0:20b:8a93:ef04 with SMTP id d9443c01a7336-20c636e133bmr78901825ad.3.1728537275191; Wed, 09 Oct 2024 22:14:35 -0700 (PDT) Original-Received: from debian-hx90 (syn-076-094-249-045.res.spectrum.com. [76.94.249.45]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c8c3561e0sm2530315ad.291.2024.10.09.22.14.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2024 22:14:34 -0700 (PDT) In-Reply-To: <86plo8369c.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::52d; envelope-from=manphiz@gmail.com; helo=mail-pg1-x52d.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324472 Archived-At: Eli Zaretskii writes: >> Date: Thu, 10 Oct 2024 00:25:40 +0300 >> Cc: emacs-devel@gnu.org >> From: Dmitry Gutov >> >> On 09/10/2024 16:13, Eli Zaretskii wrote: >> > rust-ts-mode is part of >> > Emacs, and could be turned on automatically when a Rust file is >> > visited; we didn't do that because we are unsure whether users of an >> > unbundled Rust mode will protest >> >> That seems unlikely: as long as the auto-mode-alist configuration for >> rust-ts-mode is done early on in Emacs's startup, any installed 3rd >> party package such as rust-mode would add its config later, and thus >> have priority. > > I don't have objections to making Rust recognized automatically and > activating rust-ts-mode, if people think this danger is low or > non-existent, and if *.rs files are not commonly used for something > completely unrelated (e.g., I see on my Windows system quite a few > *.rs files that seem to be some kind of Windows data files). > One thing to be cautious is that all *-ts-modes require tree-sitter syntax libraries to be available to use, which are not shipped with Emacs. One can follow the instructions on masteringemacs[1], or install treesit-auto[2] to install tree-sitter syntax libraries, which are not a lot of trouble but may still be more work than a new comer would expect. [1] https://www.masteringemacs.org/article/how-to-get-started-tree-sitter [2] https://github.com/renzmann/treesit-auto -- Regards, Xiyue Deng