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 23:59:48 -0700 Message-ID: <87ed4ov3x7.fsf@debian-hx90.lan> References: <87plodsjsd.fsf@web.de> <865xq14dwp.fsf@gnu.org> <343c4d04-af53-4da2-9d1c-c616c74821e1@gutov.dev> <86plo8369c.fsf@gnu.org> <87r08ov8sn.fsf@debian-hx90.lan> <868quw31ns.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="6637"; 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: dmitry@gutov.dev, johan.myreen@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 10 09:00:33 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 1synA1-0001Ts-Dg for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Oct 2024 09:00:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1syn9P-0004uI-Ip; Thu, 10 Oct 2024 02:59:55 -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 1syn9N-0004tv-Ef for emacs-devel@gnu.org; Thu, 10 Oct 2024 02:59:53 -0400 Original-Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1syn9L-0004dT-TH; Thu, 10 Oct 2024 02:59:53 -0400 Original-Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-2e2a9733f00so1046379a91.1; Wed, 09 Oct 2024 23:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728543590; x=1729148390; 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=NE7EY/0dPMrxCw0mPaVMDY/N93SJx94d2oSciOptg20=; b=khCntNqLFz6uQjutbau/Tgn+cqWBOV4tmFYldylwv7rsEXiDffmbsHLfF5cgCEiZfT 9DKrK+Bk9C7xl9x/pwjFaIXAvYlbW4SyS7dCurviz2zMveBJiuyn2mm+GNYKU92FnWQ0 Lgq6Wiqz0i4UrjGsry5p1aa5X1F6Z9Ey/ay0YxPETk5401mJ6fjHOBwJ6vzorr+28No+ eWdTAKc9L9grq/KsKRVNmHK/arc8Ne5j9Fo3PkUMWuMNdrA+o6qUJK1M8EHo0mY2BclB 6tZ4QJVHUkJl2lFo5tR3+KuRyp/ovNMz0JgDG6n1a+BNy4co36q2/S1TTYjihQWQH2FS 3Q/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728543590; x=1729148390; 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=NE7EY/0dPMrxCw0mPaVMDY/N93SJx94d2oSciOptg20=; b=g64v/A4bMI+rYamcAPmfurD9kkWssJlTSERkMG5ZjDEJ2YhmSANn97cjfVeI5Q2i+R tYGvQaQfvM3TZV8xVteUIh90V2Fm7HhcvtgWvyZ2rKxWaORYqU5Tl8J2Vbf8P5OE4L6n 6Ej+hXkmd61NwyGR0ji64q8ttdOfr9jmrT1Mr6A1wLwYIKTGFWJzZ8MxAmT/q4R6/1YV cxDyrIdSi2DJ8hhcYSkoQqP8eOjn4JR3YFPgUQcEFU4bblOuOTZzTmGZcCrHOAtNqQqd 87jPszIGKiTgjyoHF/RSKXfYowlvcps/ohxNshZhDASlfpXVO1gUlZs3ljecOuM48why 4OEw== X-Forwarded-Encrypted: i=1; AJvYcCUbww2Nm585MzAJw0HcrThUGn3ppG1xSesBLOPPMnre6CwtnW9+3pYZePwcqn1Xd5LigPENyTUIK6bk4A==@gnu.org X-Gm-Message-State: AOJu0Yz1LaUHO9jxb+RZUGb0p4W9xfgqMnHTEIAodOxhnjQ3QWH1q20h ZPiwn76SXRcBhKSRP+My66AIq9KORJnfV/3xhAtiV8RcLG54d8wTbEXTnv4Q X-Google-Smtp-Source: AGHT+IFai/+0N+GEDpyhgfB4J/kJXp1mpWmSOdLgHAmTy1Fy+7z5S4OFycrc5qCqvQiZ+zJD1nbQPA== X-Received: by 2002:a17:90b:3657:b0:2e2:c744:2eea with SMTP id 98e67ed59e1d1-2e2c8074c63mr3507133a91.13.1728543589541; Wed, 09 Oct 2024 23:59:49 -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 98e67ed59e1d1-2e2d5fc5461sm548530a91.48.2024.10.09.23.59.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2024 23:59:49 -0700 (PDT) In-Reply-To: <868quw31ns.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=manphiz@gmail.com; helo=mail-pj1-x1030.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:324479 Archived-At: Eli Zaretskii writes: >> From: Xiyue Deng >> Cc: johan.myreen@gmail.com, emacs-devel@gnu.org >> Date: Wed, 09 Oct 2024 22:14:32 -0700 >> >> 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. > > If a required grammar library is not available, the user gets a > warning. So what is the problem here? Then a user doesn't really getting a useful major mode for editing Rust files or other programming files when using their *-ts-mode (without their grammar installed, that is). Other non-ts based modes, though less accurate, are readily usable after `M-x package-install', which IMHO is slightly more new user friendly. Of course, if Emacs provide a built-in way to install the grammar libraries automatically that would be better. -- Regards, Xiyue Deng