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.devel Subject: Re: Should yaml-ts-mode inherit from prog-mode? Date: Fri, 3 Mar 2023 13:58:28 -0800 Message-ID: References: <87o7pb1d5h.fsf@posteo.net> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5955"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Rudolf Schlatte Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 03 22:59:29 2023 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 1pYDR3-0001I7-3V for ged-emacs-devel@m.gmane-mx.org; Fri, 03 Mar 2023 22:59:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYDQM-0005gD-EG; Fri, 03 Mar 2023 16:58:46 -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 1pYDQK-0005g3-Up for emacs-devel@gnu.org; Fri, 03 Mar 2023 16:58:45 -0500 Original-Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYDQJ-0002GK-D3 for emacs-devel@gnu.org; Fri, 03 Mar 2023 16:58:44 -0500 Original-Received: by mail-pl1-x633.google.com with SMTP id a9so4190125plh.11 for ; Fri, 03 Mar 2023 13:58:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677880721; 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=TxRmjLwGxkF+O58D0TATQDP7pqmsQZwSurlBHSSb9k8=; b=qPtMkcCWvOfOs2jt2lnJLdl7kwjq30a3w5Eos3yAG2/Eba9xGux8SxSGd3ycJyG/3o am8OT/PJQjHhx219lwZq+aVAU9tIDuDHqZbdQ7ZaVHTiE7ud3CSj3WT5RB7QQhUVmU9C a3UogTWKSLG+nvqNztFsyHlW+D0EfffW+MK6X4aQRHYVn5kv3ECEs03xLFlDnPxPAA8b d8zRmQA/er97dsZCu+/6L1OWN+ybSv9INP6z+o2feMqztP73T0isj6V5I+zyhYT5cAZV LKDVl7+WTazX4Rn7W+jzNyP8H4/E71WojH6fMXn1gvzaUDixdE5L0lwx95VKaKn8KiVQ 4jDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677880721; 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=TxRmjLwGxkF+O58D0TATQDP7pqmsQZwSurlBHSSb9k8=; b=WDi7JNT5X8VOnhFHzgLafOs1otNwYLXvrJ4TxgoSMwZ8w8kMET4fRw4b2DqvCQaJJe krgy0LiGn7vWYLHhFUg9/qhsU3/HLcOEb57nYx8uO1akQgJskXC9Eu/529Vu8tO5O5qe Ab6IfUlR+Pm5i8QH4bF9KlN2mFoxnxEgoLxam7Vq95Kg4O2whxe9IRtnvT9hr8h2ERb8 2EC6YW54Yv4wPSLeOVyb8jnrsQryqRsMUndAput/8dM9N1/t1hsQcZuB3J8GgM0/dj5S o2+yrbnYLMfv3tTXopjSa8SEf+Jrlnzuw63jNRh4McEhXlsJ8YcNyITlU+cexV+7IdpM eh6Q== X-Gm-Message-State: AO0yUKXiaZxoKWvYV8F+7u+DBATqhPfxfPzizuUaTF7KztYiTqKbujV4 TkjbXBkLP6Tgohi1VaSI5gHPAGLPMbukMw== X-Google-Smtp-Source: AK7set/dc8s8O/BcJ9munD11SzTyrmN/o2d4KrwwQS17BrPwhdLMn2tR9lfQKpuUhHfdwQ6/71QYKw== X-Received: by 2002:a17:90b:1647:b0:234:67ef:304b with SMTP id il7-20020a17090b164700b0023467ef304bmr3001711pjb.37.1677880721348; Fri, 03 Mar 2023 13:58:41 -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 z10-20020a17090acb0a00b00230b8402760sm3834960pjt.38.2023.03.03.13.58.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Mar 2023 13:58:41 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3731.400.51.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=casouri@gmail.com; helo=mail-pl1-x633.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:303926 Archived-At: > On Mar 3, 2023, at 1:00 AM, Rudolf Schlatte = wrote: >=20 > Philip Kaludercic writes: >=20 >> Deriving from prog-mode or from text-mode doesn't mean much in = practice. >> I see it as less of a formal taxonomy of programming languages, and = more >> of a convenience measure to make changes that (vaguely speaking) "all >> programming modes" or "all text-related modes" have in common. E.g. = I >> have this in my init.el: >>=20 >> (add-hook 'text-mode-hook #'flyspell-mode) >> (add-hook 'prog-mode-hook #'flyspell-prog-mode) >=20 > Similarly, I use variable-width fonts for text mode buffers and fixed > width fonts for prog-mode buffers. Since in yaml indentation is > significant, it would be preferrable for me to have yaml-mode inherit > from prog-mode, if only for convenience's sake. >=20 >=20 Agreed. I think of prog-mode as =E2=80=9Cprogramming mode=E2=80=9D as = opposed to =E2=80=9Cprose mode=E2=80=9D, aka text-mode. In that sense, = deriving from prog-mode makes more sense to me. In text related to programming, one would assume monospace font, = flyspell-prog-mode, structured text, etc. Yuan=