From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#61177: 30.0.50; There should be an autoload cookie preceding (add-to-list 'auto-mode-alist '("\\.ya?ml\\'" . yaml-ts-mode)) Date: Sat, 2 Sep 2023 09:40:25 -0700 Message-ID: References: <87fsbsm54j.fsf@posteo.net> <83fsbs3pf9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26467"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Brian Leung , casouri@gmail.com, 61177-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 02 18:41:07 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 1qcTgJ-0006iy-B7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Sep 2023 18:41:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qcTg7-00020M-9s; Sat, 02 Sep 2023 12:40: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 1qcTg5-0001zc-D9 for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 12:40:53 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qcTg5-0006Zr-2t for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 12:40:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qcTgE-0001hb-SZ for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 12:41:02 -0400 Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Sep 2023 16:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 61177 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix notabug Mail-Followup-To: 61177@debbugs.gnu.org, stefankangas@gmail.com, leungbk@posteo.net Original-Received: via spool by 61177-done@debbugs.gnu.org id=D61177.16936728446491 (code D ref 61177); Sat, 02 Sep 2023 16:41:02 +0000 Original-Received: (at 61177-done) by debbugs.gnu.org; 2 Sep 2023 16:40:44 +0000 Original-Received: from localhost ([127.0.0.1]:38425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcTfv-0001gc-Kt for submit@debbugs.gnu.org; Sat, 02 Sep 2023 12:40:43 -0400 Original-Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:49577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcTfu-0001gN-3l for 61177-done@debbugs.gnu.org; Sat, 02 Sep 2023 12:40:42 -0400 Original-Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-500cd6261fdso241062e87.3 for <61177-done@debbugs.gnu.org>; Sat, 02 Sep 2023 09:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693672826; x=1694277626; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=gDc7zDkzHdCikoTpB6YjH4PF1ozdIOMSxLGZI8Jiaok=; b=cmoDGPYIv6WoiBFjFOiRP8R9N2EvnxoHriXMsYqgtHUBOVArG+JkjPrXntd5CCPKg3 CUd1G9goGUcVJtlw8j/NByXT9EzLGutf0nbE5xRNc09KgD9BQRbr9e2IblzwB+S7YgHR UvmedQjh/oQH+KUETyUUp+TAAI0vgxniiVyrcdszAS45ggo5ZabuxwZJdaDjhzcIbMwF Y6B6yMtfHIVVCEok+1l+ZYpcJUEtZutIIePGEhhU01wfgzPKg+4fWIkEsYHKzrqFGAm5 8ihIBZspPpHxJXDC7qOoUuxxjXtJLc1hmMZC7jSBCh/I8LUCzUaj+d2YJCzhY3FjZ9H+ uQKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693672826; x=1694277626; h=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=gDc7zDkzHdCikoTpB6YjH4PF1ozdIOMSxLGZI8Jiaok=; b=e1BOwgmAh2rW2R3tmpYu7PD8/qumcxwweOlHsy3/ZKILcclV7oN2MAVftFyPOVvmH7 riquIjuGZjxlX4uPlD5pSxjqMO7LsLAwGoSXdBugcbBk/vELO5YoNlTj8EbjoLJIih4u VNtgwl4j5VaaWhNEdHH7nl7x9slFmzN/G0crzPYU0WNiD50d+42rRHENXnploomSoI4Y iKDERpzZO9uSWiKjyhUJzHx6nbd+nWSLEDrNMA5zGle0Uhb5fKQI4qMjyYOaGZtIAtLt GoNeL9dzfr7MzYWXY5OdK91domxQSShZJvUo7cm7m9lWHd8vbhZLL57kzxLjaKFaOPlk mpIQ== X-Gm-Message-State: AOJu0YxGVl03TL2e4zwR8Z6RkMrjKcU9Omhtl1M+8j7FTOmO0meL3wEG NKmax/2Yqv5S81P/jnz8TLmpnxEDlpXJxrRC1Vg+J3k2A+g= X-Google-Smtp-Source: AGHT+IEqq3Gc2QleZ9wxaaCEICJL5YBcIbUc57G73ZcFUyXF6QcjXdtQiJc0Z4iozys1QT4TEaqkjjWjgFaJS+MDPHs= X-Received: by 2002:a05:6512:104b:b0:4fe:347d:7c4b with SMTP id c11-20020a056512104b00b004fe347d7c4bmr4574671lfb.7.1693672826078; Sat, 02 Sep 2023 09:40:26 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 2 Sep 2023 09:40:25 -0700 In-Reply-To: <83fsbs3pf9.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 30 Jan 2023 19:25:30 +0200") 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:269017 Archived-At: Eli Zaretskii writes: > tags 61177 notabug wontfix > thanks > >> Cc: casouri@gmail.com >> From: Brian Leung >> Date: Mon, 30 Jan 2023 15:09:00 +0000 >> >> >> When I open a yaml file from an "emacs -q" session, I would like to see >> it start up with yaml-ts-mode. However, since there is no autoload at >> https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/textmodes/yaml-ts-mode.el?h=c53952164fe54fee41343fd4008f610f7a284d26#n146, >> this does not occur, and the file instead starts up in fundamental-mode. >> >> I think each such tree-sitter-mode auto-mode-alist adjustment should be >> preceded by an autoload cookie. > > We deliberately decided not enable these modes by default, because > quite a few people still build Emacs without tree-sitter, and are > annoyed by warnings these modes emit when they discover that > tree-sitter is not available. Other people are used to editing yaml > and other files in some other modes or in Fundamental, and don't want > Emacs to decide that for them. > > So for now these modes are opt-in, and that's how it will stay until > we collect more user experience and until tree-sitter installation > will become much more widespread. If you have tree-sitter installed, > and want yaml-ts-mode to be turned on automatically in buffers > visiting yaml files, you can have that via simple customizations in > your init file. I'm therefore closing this bug report.